|
||||||||||
| 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.
| Field Summary | |
|---|---|
static HTableDescriptor |
metaTableDesc
table descriptor for meta table |
static HTableDescriptor |
rootTableDesc
table descriptor for root table |
| 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()
|
static Path |
getTableDir(Path rootdir,
Text tableName)
|
boolean |
hasFamily(Text family)
Checks to see if this table contains the given column family |
int |
hashCode()
|
boolean |
isMetaRegion()
|
boolean |
isMetaTable()
|
boolean |
isRootRegion()
|
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 |
| Field Detail |
|---|
public static final HTableDescriptor rootTableDesc
public static final HTableDescriptor metaTableDesc
| Constructor Detail |
|---|
public HTableDescriptor()
HTableDescriptor(String)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 boolean isRootRegion()
public boolean isMetaTable()
public boolean isMetaRegion()
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()
public static Path getTableDir(Path rootdir,
Text tableName)
rootdir - qualified path of HBase root directorytableName - name of table
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||