@InterfaceAudience.Private public class ColumnSchemaModel extends Object implements Serializable
<complexType name="ColumnSchema"> <attribute name="name" type="string"></attribute> <anyAttribute></anyAttribute> </complexType>
Modifier and Type | Field and Description |
---|---|
private Map<QName,Object> |
attrs |
private static QName |
BLOCKCACHE |
private static QName |
BLOCKSIZE |
private static QName |
BLOOMFILTER |
private static QName |
COMPRESSION |
private static QName |
IN_MEMORY |
private String |
name |
private static long |
serialVersionUID |
private static QName |
TTL |
private static QName |
VERSIONS |
Constructor and Description |
---|
ColumnSchemaModel()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
__getBlockcache()
Returns true if the BLOCKCACHE attribute is present and true
|
int |
__getBlocksize()
Returns the value of the BLOCKSIZE attribute or its default if it is unset
|
String |
__getBloomfilter()
Returns the value of the BLOOMFILTER attribute or its default if unset
|
String |
__getCompression()
Returns the value of the COMPRESSION attribute or its default if unset
|
boolean |
__getInMemory()
Returns true if the IN_MEMORY attribute is present and true
|
int |
__getTTL()
Returns the value of the TTL attribute or its default if it is unset
|
int |
__getVersions()
Returns the value of the VERSIONS attribute or its default if it is unset
|
void |
__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 schema
|
Map<QName,Object> |
getAny()
Returns the map for holding unspecified (user) attributes
|
String |
getAttribute(String name) |
String |
getName()
Returns the column name
|
void |
setName(String name) |
String |
toString() |
private static final long serialVersionUID
private static QName BLOCKCACHE
private static QName BLOOMFILTER
private static QName COMPRESSION
public ColumnSchemaModel()
public void addAttribute(String name, Object value)
name
- the attribute namevalue
- the attribute valuepublic String getAttribute(String name)
name
- the attribute namepublic boolean __getBlockcache()
public int __getBlocksize()
public String __getBloomfilter()
public String __getCompression()
public boolean __getInMemory()
public int __getTTL()
public int __getVersions()
public void __setBlocksize(int value)
value
- the desired value of the BLOCKSIZE attributepublic void __setBlockcache(boolean value)
value
- the desired value of the BLOCKCACHE attributepublic void __setBloomfilter(String value)
public void __setCompression(String value)
value
- the desired value of the COMPRESSION attributepublic void __setInMemory(boolean value)
value
- the desired value of the IN_MEMORY attributepublic void __setTTL(int value)
value
- the desired value of the TTL attributepublic void __setVersions(int value)
value
- the desired value of the VERSIONS attributeCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.