Class ColumnSchemaModel

java.lang.Object
org.apache.hadoop.hbase.rest.model.ColumnSchemaModel
All Implemented Interfaces:
Serializable

@Private public class ColumnSchemaModel extends Object implements Serializable
Representation of a column family schema.
 <complexType name="ColumnSchema">
   <attribute name="name" type="string"></attribute>
   <anyAttribute></anyAttribute>
 </complexType>
 
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Add an attribute to the column family schema
      Parameters:
      name - the attribute name
      value - the attribute value
    • getAttribute

      public String getAttribute(String name)
      Parameters:
      name - the attribute name
      Returns:
      the attribute value
    • getName

      public String getName()
      Returns the column name
    • getAny

      public Map<QName,Object> getAny()
      Returns the map for holding unspecified (user) attributes
    • setName

      public void setName(String name)
      Parameters:
      name - the table name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • __getBlockcache

      public boolean __getBlockcache()
      Returns true if the BLOCKCACHE attribute is present and true
    • __getBlocksize

      public int __getBlocksize()
      Returns the value of the BLOCKSIZE attribute or its default if it is unset
    • __getBloomfilter

      Returns the value of the BLOOMFILTER attribute or its default if unset
    • __getCompression

      Returns the value of the COMPRESSION attribute or its default if unset
    • __getInMemory

      public boolean __getInMemory()
      Returns true if the IN_MEMORY attribute is present and true
    • __getTTL

      public int __getTTL()
      Returns the value of the TTL attribute or its default if it is unset
    • __getVersions

      public int __getVersions()
      Returns the value of the VERSIONS attribute or its default if it is unset
    • __setBlocksize

      public void __setBlocksize(int value)
      Parameters:
      value - the desired value of the BLOCKSIZE attribute
    • __setBlockcache

      public void __setBlockcache(boolean value)
      Parameters:
      value - the desired value of the BLOCKCACHE attribute
    • __setBloomfilter

      public void __setBloomfilter(String value)
    • __setCompression

      public void __setCompression(String value)
      Parameters:
      value - the desired value of the COMPRESSION attribute
    • __setInMemory

      public void __setInMemory(boolean value)
      Parameters:
      value - the desired value of the IN_MEMORY attribute
    • __setTTL

      public void __setTTL(int value)
      Parameters:
      value - the desired value of the TTL attribute
    • __setVersions

      public void __setVersions(int value)
      Parameters:
      value - the desired value of the VERSIONS attribute