|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.thrift.generated.ColumnDescriptor
public class ColumnDescriptor
An HColumnDescriptor contains information about a column family such as the number of versions, compression settings, etc. It is used as input when creating a table or adding a column.
Nested Class Summary | |
---|---|
static class |
ColumnDescriptor._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
boolean |
blockCacheEnabled
|
int |
bloomFilterNbHashes
|
String |
bloomFilterType
|
int |
bloomFilterVectorSize
|
String |
compression
|
boolean |
inMemory
|
int |
maxVersions
|
static Map<ColumnDescriptor._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
byte[] |
name
|
int |
timeToLive
|
Constructor Summary | |
---|---|
ColumnDescriptor()
|
|
ColumnDescriptor(byte[] name,
int maxVersions,
String compression,
boolean inMemory,
String bloomFilterType,
int bloomFilterVectorSize,
int bloomFilterNbHashes,
boolean blockCacheEnabled,
int timeToLive)
|
|
ColumnDescriptor(ColumnDescriptor other)
Performs a deep copy on other. |
Method Summary | |
---|---|
ColumnDescriptor |
clone()
Deprecated. |
int |
compareTo(ColumnDescriptor other)
|
ColumnDescriptor |
deepCopy()
|
boolean |
equals(ColumnDescriptor that)
|
boolean |
equals(Object that)
|
int |
getBloomFilterNbHashes()
|
String |
getBloomFilterType()
|
int |
getBloomFilterVectorSize()
|
String |
getCompression()
|
Object |
getFieldValue(ColumnDescriptor._Fields field)
|
Object |
getFieldValue(int fieldId)
|
int |
getMaxVersions()
|
byte[] |
getName()
|
int |
getTimeToLive()
|
int |
hashCode()
|
boolean |
isBlockCacheEnabled()
|
boolean |
isInMemory()
|
boolean |
isSet(ColumnDescriptor._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise |
boolean |
isSet(int fieldID)
|
boolean |
isSetBlockCacheEnabled()
Returns true if field blockCacheEnabled is set (has been asigned a value) and false otherwise |
boolean |
isSetBloomFilterNbHashes()
Returns true if field bloomFilterNbHashes is set (has been asigned a value) and false otherwise |
boolean |
isSetBloomFilterType()
Returns true if field bloomFilterType is set (has been asigned a value) and false otherwise |
boolean |
isSetBloomFilterVectorSize()
Returns true if field bloomFilterVectorSize is set (has been asigned a value) and false otherwise |
boolean |
isSetCompression()
Returns true if field compression is set (has been asigned a value) and false otherwise |
boolean |
isSetInMemory()
Returns true if field inMemory is set (has been asigned a value) and false otherwise |
boolean |
isSetMaxVersions()
Returns true if field maxVersions is set (has been asigned a value) and false otherwise |
boolean |
isSetName()
Returns true if field name is set (has been asigned a value) and false otherwise |
boolean |
isSetTimeToLive()
Returns true if field timeToLive is set (has been asigned a value) and false otherwise |
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
ColumnDescriptor |
setBlockCacheEnabled(boolean blockCacheEnabled)
|
void |
setBlockCacheEnabledIsSet(boolean value)
|
ColumnDescriptor |
setBloomFilterNbHashes(int bloomFilterNbHashes)
|
void |
setBloomFilterNbHashesIsSet(boolean value)
|
ColumnDescriptor |
setBloomFilterType(String bloomFilterType)
|
void |
setBloomFilterTypeIsSet(boolean value)
|
ColumnDescriptor |
setBloomFilterVectorSize(int bloomFilterVectorSize)
|
void |
setBloomFilterVectorSizeIsSet(boolean value)
|
ColumnDescriptor |
setCompression(String compression)
|
void |
setCompressionIsSet(boolean value)
|
void |
setFieldValue(ColumnDescriptor._Fields field,
Object value)
|
void |
setFieldValue(int fieldID,
Object value)
|
ColumnDescriptor |
setInMemory(boolean inMemory)
|
void |
setInMemoryIsSet(boolean value)
|
ColumnDescriptor |
setMaxVersions(int maxVersions)
|
void |
setMaxVersionsIsSet(boolean value)
|
ColumnDescriptor |
setName(byte[] name)
|
void |
setNameIsSet(boolean value)
|
ColumnDescriptor |
setTimeToLive(int timeToLive)
|
void |
setTimeToLiveIsSet(boolean value)
|
String |
toString()
|
void |
unsetBlockCacheEnabled()
|
void |
unsetBloomFilterNbHashes()
|
void |
unsetBloomFilterType()
|
void |
unsetBloomFilterVectorSize()
|
void |
unsetCompression()
|
void |
unsetInMemory()
|
void |
unsetMaxVersions()
|
void |
unsetName()
|
void |
unsetTimeToLive()
|
void |
validate()
|
void |
write(org.apache.thrift.protocol.TProtocol oprot)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public byte[] name
public int maxVersions
public String compression
public boolean inMemory
public String bloomFilterType
public int bloomFilterVectorSize
public int bloomFilterNbHashes
public boolean blockCacheEnabled
public int timeToLive
public static final Map<ColumnDescriptor._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public ColumnDescriptor()
public ColumnDescriptor(byte[] name, int maxVersions, String compression, boolean inMemory, String bloomFilterType, int bloomFilterVectorSize, int bloomFilterNbHashes, boolean blockCacheEnabled, int timeToLive)
public ColumnDescriptor(ColumnDescriptor other)
Method Detail |
---|
public ColumnDescriptor deepCopy()
deepCopy
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
@Deprecated public ColumnDescriptor clone()
clone
in class Object
public byte[] getName()
public ColumnDescriptor setName(byte[] name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public int getMaxVersions()
public ColumnDescriptor setMaxVersions(int maxVersions)
public void unsetMaxVersions()
public boolean isSetMaxVersions()
public void setMaxVersionsIsSet(boolean value)
public String getCompression()
public ColumnDescriptor setCompression(String compression)
public void unsetCompression()
public boolean isSetCompression()
public void setCompressionIsSet(boolean value)
public boolean isInMemory()
public ColumnDescriptor setInMemory(boolean inMemory)
public void unsetInMemory()
public boolean isSetInMemory()
public void setInMemoryIsSet(boolean value)
public String getBloomFilterType()
public ColumnDescriptor setBloomFilterType(String bloomFilterType)
public void unsetBloomFilterType()
public boolean isSetBloomFilterType()
public void setBloomFilterTypeIsSet(boolean value)
public int getBloomFilterVectorSize()
public ColumnDescriptor setBloomFilterVectorSize(int bloomFilterVectorSize)
public void unsetBloomFilterVectorSize()
public boolean isSetBloomFilterVectorSize()
public void setBloomFilterVectorSizeIsSet(boolean value)
public int getBloomFilterNbHashes()
public ColumnDescriptor setBloomFilterNbHashes(int bloomFilterNbHashes)
public void unsetBloomFilterNbHashes()
public boolean isSetBloomFilterNbHashes()
public void setBloomFilterNbHashesIsSet(boolean value)
public boolean isBlockCacheEnabled()
public ColumnDescriptor setBlockCacheEnabled(boolean blockCacheEnabled)
public void unsetBlockCacheEnabled()
public boolean isSetBlockCacheEnabled()
public void setBlockCacheEnabledIsSet(boolean value)
public int getTimeToLive()
public ColumnDescriptor setTimeToLive(int timeToLive)
public void unsetTimeToLive()
public boolean isSetTimeToLive()
public void setTimeToLiveIsSet(boolean value)
public void setFieldValue(ColumnDescriptor._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
public void setFieldValue(int fieldID, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
public Object getFieldValue(ColumnDescriptor._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
public Object getFieldValue(int fieldId)
getFieldValue
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
public boolean isSet(ColumnDescriptor._Fields field)
isSet
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
public boolean isSet(int fieldID)
isSet
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(ColumnDescriptor that)
public int hashCode()
hashCode
in class Object
public int compareTo(ColumnDescriptor other)
compareTo
in interface Comparable<ColumnDescriptor>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<ColumnDescriptor._Fields>
org.apache.thrift.TException
public String toString()
toString
in class Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |