|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.HColumnDescriptor
public class HColumnDescriptor
A HColumnDescriptor contains information about a column family such as the number of versions, compression settings, etc.
Nested Class Summary | |
---|---|
static class |
HColumnDescriptor.CompressionType
The type of compression. |
Constructor Summary | |
---|---|
HColumnDescriptor()
Default constructor. |
|
HColumnDescriptor(String columnName)
Construct a column descriptor specifying only the family name The other attributes are defaulted. |
|
HColumnDescriptor(Text name,
int maxVersions,
HColumnDescriptor.CompressionType compression,
boolean inMemory,
int maxValueLength,
BloomFilterDescriptor bloomFilter)
Constructor - specify all parameters. |
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object obj)
|
HColumnDescriptor.CompressionType |
getCompression()
|
int |
getMaxVersions()
|
Text |
getName()
|
int |
hashCode()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HColumnDescriptor()
public HColumnDescriptor(String columnName)
columnName
- - column family namepublic HColumnDescriptor(Text name, int maxVersions, HColumnDescriptor.CompressionType compression, boolean inMemory, int maxValueLength, BloomFilterDescriptor bloomFilter)
name
- - Column family namemaxVersions
- - Maximum number of versions to keepcompression
- - Compression typeinMemory
- - If true, column data should be kept in a
HRegionServer's cachemaxValueLength
- - Restrict values to <= this valuebloomFilter
- - Enable the specified bloom filter for this column
IllegalArgumentException
- if passed a family name that is made of
other than 'word' characters: i.e. [a-zA-Z_0-9]
and does not
end in a :
IllegalArgumentException
- if the number of versions is <= 0Method Detail |
---|
public Text getName()
public HColumnDescriptor.CompressionType getCompression()
public int getMaxVersions()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |