|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.client.RemoteAdmin
public class RemoteAdmin
Constructor Summary | |
---|---|
RemoteAdmin(Client client,
org.apache.hadoop.conf.Configuration conf)
Constructor |
|
RemoteAdmin(Client client,
org.apache.hadoop.conf.Configuration conf,
String accessToken)
Constructor |
Method Summary | |
---|---|
void |
createTable(HTableDescriptor desc)
Creates a new table. |
void |
deleteTable(byte[] tableName)
Deletes a table. |
void |
deleteTable(String tableName)
Deletes a table. |
boolean |
isTableAvailable(byte[] tableName)
|
boolean |
isTableAvailable(String tableName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteAdmin(Client client, org.apache.hadoop.conf.Configuration conf)
client
- conf
- public RemoteAdmin(Client client, org.apache.hadoop.conf.Configuration conf, String accessToken)
client
- conf
- accessToken
- Method Detail |
---|
public boolean isTableAvailable(String tableName) throws IOException
tableName
- name of table to check
IOException
- if a remote or network exception occurspublic boolean isTableAvailable(byte[] tableName) throws IOException
tableName
- name of table to check
IOException
- if a remote or network exception occurspublic void createTable(HTableDescriptor desc) throws IOException
desc
- table descriptor for table
IOException
- if a remote or network exception occurspublic void deleteTable(String tableName) throws IOException
tableName
- name of table to delete
IOException
- if a remote or network exception occurspublic void deleteTable(byte[] tableName) throws IOException
tableName
- name of table to delete
IOException
- if a remote or network exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |