|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.HTableDescriptor
public class HTableDescriptor
HTableDescriptor contains the name of an HTable, and its column families.
| Constructor Summary | |
|---|---|
HTableDescriptor()
Constructs an empty object |
|
HTableDescriptor(String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addFamily(HColumnDescriptor family)
Adds a column family. |
int |
compareTo(Object o)
|
boolean |
equals(Object obj)
|
TreeMap<Text,HColumnDescriptor> |
families()
All the column families in this table. |
SortedMap<Text,HColumnDescriptor> |
getFamilies()
|
Text |
getName()
|
boolean |
hasFamily(Text family)
Checks to see if this table contains the given column family |
int |
hashCode()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
String |
toString()
|
void |
write(DataOutput out)
Serialize 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 HTableDescriptor()
public HTableDescriptor(String name)
name - Table name.
IllegalArgumentException - if passed a table name
that is made of other than 'word' characters: i.e.
[a-zA-Z_0-9]| Method Detail |
|---|
public Text getName()
public void addFamily(HColumnDescriptor family)
family - HColumnDescriptor of familyto add.public boolean hasFamily(Text family)
family - - family name
public TreeMap<Text,HColumnDescriptor> families()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void write(DataOutput out)
throws IOException
out.
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOExceptionpublic int compareTo(Object o)
compareTo in interface Comparablepublic SortedMap<Text,HColumnDescriptor> getFamilies()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||