Package com.yahoo.ycsb.db
Class HBaseAdminClient
- java.lang.Object
-
- org.apache.hadoop.conf.Configured
-
- com.yahoo.ycsb.db.HBaseAdminClient
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class HBaseAdminClient extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHBaseAdminClient.Operation
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringfamily_protected java.lang.Stringkey_prefix_protected intnum_splits_protected HBaseAdminClient.Operationoperation_protected org.apache.hadoop.hbase.TableNametablename_protected java.lang.Stringtype_
-
Constructor Summary
Constructors Constructor Description HBaseAdminClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcreateTable()protected intdisableTable()protected intdropTable()protected intenableTable()protected byte[][]getSplits()static voidmain(java.lang.String[] args)intrun(java.lang.String[] args)protected intrun0()protected voidusage()
-
-
-
Field Detail
-
num_splits_
protected int num_splits_
-
tablename_
protected org.apache.hadoop.hbase.TableName tablename_
-
family_
protected java.lang.String family_
-
type_
protected java.lang.String type_
-
key_prefix_
protected java.lang.String key_prefix_
-
operation_
protected HBaseAdminClient.Operation operation_
-
-
Method Detail
-
run
public int run(java.lang.String[] args) throws java.lang.Exception- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
java.lang.Exception
-
run0
protected int run0() throws java.io.IOException- Throws:
java.io.IOException
-
disableTable
protected int disableTable() throws java.io.IOException- Throws:
java.io.IOException
-
enableTable
protected int enableTable() throws java.io.IOException- Throws:
java.io.IOException
-
dropTable
protected int dropTable() throws java.io.IOException- Throws:
java.io.IOException
-
createTable
protected int createTable() throws java.io.IOException- Throws:
java.io.IOException
-
usage
protected void usage()
-
getSplits
protected byte[][] getSplits()
-
main
public static void main(java.lang.String[] args) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.lang.Exception- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.lang.Exception
-
-