Class ColumnSchemaModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.ColumnSchemaModel
- All Implemented Interfaces:
Serializable
Representation of a column family schema.
<complexType name="ColumnSchema"> <attribute name="name" type="string"></attribute> <anyAttribute></anyAttribute> </complexType>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the BLOCKCACHE attribute is present and trueintReturns the value of the BLOCKSIZE attribute or its default if it is unsetReturns the value of the BLOOMFILTER attribute or its default if unsetReturns the value of the COMPRESSION attribute or its default if unsetbooleanReturns true if the IN_MEMORY attribute is present and trueint__getTTL()Returns the value of the TTL attribute or its default if it is unsetintReturns the value of the VERSIONS attribute or its default if it is unsetvoid__setBlockcache(boolean value) void__setBlocksize(int value) void__setBloomfilter(String value) void__setCompression(String value) void__setInMemory(boolean value) void__setTTL(int value) void__setVersions(int value) voidaddAttribute(String name, Object value) Add an attribute to the column family schemagetAny()Returns the map for holding unspecified (user) attributesgetAttribute(String name) getName()Returns the column namevoidtoString()
-
Field Details
-
serialVersionUID
- See Also:
-
BLOCKCACHE
-
BLOCKSIZE
-
BLOOMFILTER
-
COMPRESSION
-
IN_MEMORY
-
TTL
-
VERSIONS
-
name
-
attrs
-
-
Constructor Details
-
ColumnSchemaModel
public ColumnSchemaModel()Default constructor
-
-
Method Details
-
addAttribute
Add an attribute to the column family schema- Parameters:
name- the attribute namevalue- the attribute value
-
getAttribute
- Parameters:
name- the attribute name- Returns:
- the attribute value
-
getName
Returns the column name -
getAny
Returns the map for holding unspecified (user) attributes -
setName
- Parameters:
name- the table name
-
toString
-
__getBlockcache
Returns true if the BLOCKCACHE attribute is present and true -
__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
Returns true if the IN_MEMORY attribute is present and true -
__getTTL
Returns the value of the TTL attribute or its default if it is unset -
__getVersions
Returns the value of the VERSIONS attribute or its default if it is unset -
__setBlocksize
- Parameters:
value- the desired value of the BLOCKSIZE attribute
-
__setBlockcache
- Parameters:
value- the desired value of the BLOCKCACHE attribute
-
__setBloomfilter
-
__setCompression
- Parameters:
value- the desired value of the COMPRESSION attribute
-
__setInMemory
- Parameters:
value- the desired value of the IN_MEMORY attribute
-
__setTTL
- Parameters:
value- the desired value of the TTL attribute
-
__setVersions
- Parameters:
value- the desired value of the VERSIONS attribute
-