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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the BLOCKCACHE attribute is present and trueint
Returns 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 unsetboolean
Returns true if the IN_MEMORY attribute is present and trueint
__getTTL()
Returns the value of the TTL attribute or its default if it is unsetint
Returns 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) void
addAttribute
(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 namevoid
toString()
-
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
-