|
||||||||||
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<org.apache.hadoop.io.Text,HColumnDescriptor> |
families()
All the column families in this table. |
SortedMap<org.apache.hadoop.io.Text,HColumnDescriptor> |
getFamilies()
|
org.apache.hadoop.io.Text |
getName()
|
static org.apache.hadoop.fs.Path |
getTableDir(org.apache.hadoop.fs.Path rootdir,
org.apache.hadoop.io.Text tableName)
|
boolean |
hasFamily(org.apache.hadoop.io.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)
|
String |
toString()
|
void |
write(DataOutput 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 org.apache.hadoop.io.Text getName()
public void addFamily(HColumnDescriptor family)
family
- HColumnDescriptor of familyto add.public boolean hasFamily(org.apache.hadoop.io.Text family)
family
- - family name
public TreeMap<org.apache.hadoop.io.Text,HColumnDescriptor> families()
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 write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(Object o)
compareTo
in interface Comparable
public SortedMap<org.apache.hadoop.io.Text,HColumnDescriptor> getFamilies()
public static org.apache.hadoop.fs.Path getTableDir(org.apache.hadoop.fs.Path rootdir, org.apache.hadoop.io.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 |