@InterfaceAudience.Private public class ThriftHBaseServiceHandler extends HBaseServiceHandler implements org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
Modifier and Type | Class and Description |
---|---|
private static class |
ThriftHBaseServiceHandler.TIOErrorWithCause |
Modifier and Type | Field and Description |
---|---|
private static IOException |
ioe |
private boolean |
isReadOnly |
private static org.slf4j.Logger |
LOG |
private AtomicInteger |
nextScannerId |
private org.apache.hbase.thirdparty.com.google.common.cache.Cache<Integer,ResultScanner> |
scannerMap |
CLEANUP_INTERVAL, conf, connectionCache, MAX_IDLETIME, metrics
Constructor and Description |
---|
ThriftHBaseServiceHandler(org.apache.hadoop.conf.Configuration conf,
UserProvider userProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addColumnFamily(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName,
org.apache.hadoop.hbase.thrift2.generated.TColumnFamilyDescriptor column)
Add a column family to an existing table.
|
private int |
addScanner(ResultScanner scanner)
Assigns a unique ID to the scanner and adds the mapping to an internal HashMap.
|
org.apache.hadoop.hbase.thrift2.generated.TResult |
append(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TAppend append) |
boolean |
checkAndDelete(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
org.apache.hadoop.hbase.thrift2.generated.TDelete deleteSingle)
Atomically checks if a row/family/qualifier value matches the expected
value.
|
boolean |
checkAndMutate(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
org.apache.hadoop.hbase.thrift2.generated.TCompareOp compareOp,
ByteBuffer value,
org.apache.hadoop.hbase.thrift2.generated.TRowMutations rowMutations)
Atomically checks if a row/family/qualifier value matches the expected
value.
|
boolean |
checkAndPut(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
org.apache.hadoop.hbase.thrift2.generated.TPut put)
Atomically checks if a row/family/qualifier value matches the expected
value.
|
private void |
checkReadOnlyMode() |
List<Boolean> |
clearSlowLogResponses(Set<org.apache.hadoop.hbase.thrift2.generated.TServerName> tServerNames)
Clears online slow/large RPC logs from the provided list of
RegionServers
|
void |
closeScanner(int scannerId)
Closes the scanner.
|
private void |
closeTable(Table table) |
void |
createNamespace(org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor namespaceDesc)
Create a new namespace.
|
void |
createTable(org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor desc,
List<ByteBuffer> splitKeys)
Creates a new table with an initial set of empty regions defined by the specified split keys.
|
void |
deleteColumnFamily(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName,
ByteBuffer column)
Delete a column family from a table.
|
List<org.apache.hadoop.hbase.thrift2.generated.TDelete> |
deleteMultiple(ByteBuffer table,
List<org.apache.hadoop.hbase.thrift2.generated.TDelete> deletes)
Bulk commit a List of TDeletes to the table.
|
void |
deleteNamespace(String name)
Delete an existing namespace.
|
void |
deleteSingle(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TDelete deleteSingle)
Deletes as specified by the TDelete.
|
void |
deleteTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName)
Deletes a table.
|
void |
disableTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName)
Disable a table
|
void |
enableTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName)
Enalbe a table
|
boolean |
exists(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TGet get)
Test for the existence of columns in the table, as specified in the TGet.
|
List<Boolean> |
existsAll(ByteBuffer table,
List<org.apache.hadoop.hbase.thrift2.generated.TGet> gets)
Test for the existence of columns in the table, as specified by the TGets.
|
org.apache.hadoop.hbase.thrift2.generated.TResult |
get(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TGet get)
Method for getting data from a row.
|
List<org.apache.hadoop.hbase.thrift2.generated.THRegionLocation> |
getAllRegionLocations(ByteBuffer table)
Get all of the region locations for a given table.
|
String |
getClusterId()
Returns the cluster ID for this cluster.
|
private RegionLocator |
getLocator(ByteBuffer tableName) |
List<org.apache.hadoop.hbase.thrift2.generated.TResult> |
getMultiple(ByteBuffer table,
List<org.apache.hadoop.hbase.thrift2.generated.TGet> gets)
Method for getting multiple rows.
|
org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor |
getNamespaceDescriptor(String name)
Get a namespace descriptor by name.
|
org.apache.hadoop.hbase.thrift2.generated.THRegionLocation |
getRegionLocation(ByteBuffer table,
ByteBuffer row,
boolean reload)
Given a table and a row get the location of the region that
would contain the given row key.
|
private ResultScanner |
getScanner(int id)
Returns the Scanner associated with the specified Id.
|
List<org.apache.hadoop.hbase.thrift2.generated.TResult> |
getScannerResults(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TScan scan,
int numRows)
Get results for the provided TScan object.
|
List<org.apache.hadoop.hbase.thrift2.generated.TResult> |
getScannerRows(int scannerId,
int numRows)
Grabs multiple rows from a Scanner.
|
List<org.apache.hadoop.hbase.thrift2.generated.TOnlineLogRecord> |
getSlowLogResponses(Set<org.apache.hadoop.hbase.thrift2.generated.TServerName> tServerNames,
org.apache.hadoop.hbase.thrift2.generated.TLogQueryFilter tLogQueryFilter)
Retrieves online slow RPC logs from the provided list of
RegionServers
|
protected Table |
getTable(ByteBuffer tableName) |
org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor |
getTableDescriptor(org.apache.hadoop.hbase.thrift2.generated.TTableName table)
Get a table descriptor.
|
List<org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor> |
getTableDescriptors(List<org.apache.hadoop.hbase.thrift2.generated.TTableName> tables)
Get table descriptors of tables.
|
List<org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor> |
getTableDescriptorsByNamespace(String name)
Get table descriptors of tables in the given namespace
|
List<org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor> |
getTableDescriptorsByPattern(String regex,
boolean includeSysTables)
Get table descriptors of tables that match the given pattern
|
List<org.apache.hadoop.hbase.thrift2.generated.TTableName> |
getTableNamesByNamespace(String name)
Get table names of tables in the given namespace
|
List<org.apache.hadoop.hbase.thrift2.generated.TTableName> |
getTableNamesByPattern(String regex,
boolean includeSysTables)
Get table names of tables that match the given pattern
|
org.apache.hadoop.hbase.thrift2.generated.TThriftServerType |
getThriftServerType()
Get the type of this thrift server.
|
private org.apache.hadoop.hbase.thrift2.generated.TIOError |
getTIOError(IOException e) |
org.apache.hadoop.hbase.thrift2.generated.TResult |
increment(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TIncrement increment) |
private boolean |
isReadOnly() |
boolean |
isTableAvailable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) |
boolean |
isTableAvailableWithSplit(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName,
List<ByteBuffer> splitKeys)
* Use this api to check if the table has been created with the specified number of splitkeys
* which was used while creating the given table.
|
boolean |
isTableDisabled(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) |
boolean |
isTableEnabled(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) |
List<org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor> |
listNamespaceDescriptors() |
List<String> |
listNamespaces() |
void |
modifyColumnFamily(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName,
org.apache.hadoop.hbase.thrift2.generated.TColumnFamilyDescriptor column)
Modify an existing column family on a table.
|
void |
modifyNamespace(org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor namespaceDesc)
Modify an existing namespace.
|
void |
modifyTable(org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor desc)
Modify an existing table
|
void |
mutateRow(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TRowMutations rowMutations)
mutateRow performs multiple mutations atomically on a single row.
|
int |
openScanner(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TScan scan)
Get a Scanner for the provided TScan object.
|
void |
put(ByteBuffer table,
org.apache.hadoop.hbase.thrift2.generated.TPut put)
Commit a TPut to a table.
|
void |
putMultiple(ByteBuffer table,
List<org.apache.hadoop.hbase.thrift2.generated.TPut> puts)
Commit a List of Puts to the table.
|
protected void |
removeScanner(int id)
Removes the scanner associated with the specified ID from the internal HashMap.
|
boolean |
tableExists(org.apache.hadoop.hbase.thrift2.generated.TTableName tTableName) |
void |
truncateTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName,
boolean preserveSplits)
Truncate a table.
|
getAdmin, getTable, initMetrics, setEffectiveUser
private static final org.slf4j.Logger LOG
private final AtomicInteger nextScannerId
private final org.apache.hbase.thirdparty.com.google.common.cache.Cache<Integer,ResultScanner> scannerMap
private static final IOException ioe
private boolean isReadOnly
public ThriftHBaseServiceHandler(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) throws IOException
IOException
protected Table getTable(ByteBuffer tableName)
getTable
in class HBaseServiceHandler
private RegionLocator getLocator(ByteBuffer tableName)
private void closeTable(Table table) throws org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.hadoop.hbase.thrift2.generated.TIOError
private org.apache.hadoop.hbase.thrift2.generated.TIOError getTIOError(IOException e)
private int addScanner(ResultScanner scanner)
scanner
- to addprivate ResultScanner getScanner(int id)
id
- of the Scanner to getprotected void removeScanner(int id)
id
- of the Scanner to removepublic boolean exists(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TGet get) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
exists
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to check onget
- the TGet to check fororg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<Boolean> existsAll(ByteBuffer table, List<org.apache.hadoop.hbase.thrift2.generated.TGet> gets) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
existsAll
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to check ongets
- a list of TGets to check fororg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public org.apache.hadoop.hbase.thrift2.generated.TResult get(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TGet get) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
get
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to get fromget
- the TGet to fetchorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TResult> getMultiple(ByteBuffer table, List<org.apache.hadoop.hbase.thrift2.generated.TGet> gets) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getMultiple
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to get fromgets
- a list of TGets to fetch, the Result list
will have the Results at corresponding positions
or null if there was an errororg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void put(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TPut put) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
put
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to put data input
- the TPut to putorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean checkAndPut(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, org.apache.hadoop.hbase.thrift2.generated.TPut put) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
checkAndPut
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- to check in and put torow
- row to checkfamily
- column family to checkqualifier
- column qualifier to checkvalue
- the expected value, if not provided the
check is for the non-existence of the
column in questionput
- the TPut to put if the check succeedsorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void putMultiple(ByteBuffer table, List<org.apache.hadoop.hbase.thrift2.generated.TPut> puts) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
putMultiple
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to put data inputs
- a list of TPuts to commitorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void deleteSingle(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TDelete deleteSingle) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
deleteSingle
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to delete fromdeleteSingle
- the TDelete to deleteorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TDelete> deleteMultiple(ByteBuffer table, List<org.apache.hadoop.hbase.thrift2.generated.TDelete> deletes) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
deleteMultiple
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to delete fromdeletes
- list of TDeletes to deleteorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean checkAndMutate(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, org.apache.hadoop.hbase.thrift2.generated.TCompareOp compareOp, ByteBuffer value, org.apache.hadoop.hbase.thrift2.generated.TRowMutations rowMutations) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
checkAndMutate
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- to check in and delete fromrow
- row to checkfamily
- column family to checkqualifier
- column qualifier to checkcompareOp
- comparison to make on the valuevalue
- the expected value to be compared against, if not provided the
check is for the non-existence of the column in questionrowMutations
- row mutations to execute if the value matchesorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean checkAndDelete(ByteBuffer table, ByteBuffer row, ByteBuffer family, ByteBuffer qualifier, ByteBuffer value, org.apache.hadoop.hbase.thrift2.generated.TDelete deleteSingle) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
checkAndDelete
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- to check in and delete fromrow
- row to checkfamily
- column family to checkqualifier
- column qualifier to checkvalue
- the expected value, if not provided the
check is for the non-existence of the
column in questiondeleteSingle
- the TDelete to execute if the check succeedsorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public org.apache.hadoop.hbase.thrift2.generated.TResult increment(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TIncrement increment) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
increment
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public org.apache.hadoop.hbase.thrift2.generated.TResult append(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TAppend append) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
append
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public int openScanner(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TScan scan) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
openScanner
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to get the Scanner forscan
- the scan object to get a Scanner fororg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TResult> getScannerRows(int scannerId, int numRows) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.hadoop.hbase.thrift2.generated.TIllegalArgument, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getScannerRows
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
scannerId
- the Id of the Scanner to return rows from. This is an Id returned from the openScanner function.numRows
- number of rows to returnorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.hadoop.hbase.thrift2.generated.TIllegalArgument
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TResult> getScannerResults(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TScan scan, int numRows) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getScannerResults
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the table to get the Scanner forscan
- the scan object to get a Scanner fornumRows
- number of rows to returnorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void closeScanner(int scannerId) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.hadoop.hbase.thrift2.generated.TIllegalArgument, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
closeScanner
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
scannerId
- the Id of the Scanner to close *org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.hadoop.hbase.thrift2.generated.TIllegalArgument
org.apache.thrift.TException
public void mutateRow(ByteBuffer table, org.apache.hadoop.hbase.thrift2.generated.TRowMutations rowMutations) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
mutateRow
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- table to apply the mutationsrowMutations
- mutations to applyorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.THRegionLocation> getAllRegionLocations(ByteBuffer table) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getAllRegionLocations
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public org.apache.hadoop.hbase.thrift2.generated.THRegionLocation getRegionLocation(ByteBuffer table, ByteBuffer row, boolean reload) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getRegionLocation
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
private void checkReadOnlyMode() throws org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.hadoop.hbase.thrift2.generated.TIOError
private boolean isReadOnly()
public org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor getTableDescriptor(org.apache.hadoop.hbase.thrift2.generated.TTableName table) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getTableDescriptor
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
table
- the tablename of the table to get tableDescriptororg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor> getTableDescriptors(List<org.apache.hadoop.hbase.thrift2.generated.TTableName> tables) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getTableDescriptors
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tables
- the tablename list of the tables to get tableDescriptororg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean tableExists(org.apache.hadoop.hbase.thrift2.generated.TTableName tTableName) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
tableExists
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tTableName
- the tablename of the tables to checkorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor> getTableDescriptorsByPattern(String regex, boolean includeSysTables) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getTableDescriptorsByPattern
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
regex
- The regular expression to match againstincludeSysTables
- set to false if match only against userspace tablesorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor> getTableDescriptorsByNamespace(String name) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getTableDescriptorsByNamespace
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
name
- The namesapce's nameorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TTableName> getTableNamesByPattern(String regex, boolean includeSysTables) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getTableNamesByPattern
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
regex
- The regular expression to match againstincludeSysTables
- set to false if match only against userspace tablesorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TTableName> getTableNamesByNamespace(String name) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getTableNamesByNamespace
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
name
- The namesapce's nameorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void createTable(org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor desc, List<ByteBuffer> splitKeys) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
createTable
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
desc
- table descriptor for tablesplitKeys
- rray of split keys for the initial regions of the tableorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void deleteTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
deleteTable
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to deleteorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void truncateTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName, boolean preserveSplits) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
truncateTable
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to truncatepreserveSplits
- whether to preserve previous splitsorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void enableTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
enableTable
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to enableorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void disableTable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
disableTable
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to disableorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean isTableEnabled(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
isTableEnabled
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to checkorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean isTableDisabled(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
isTableDisabled
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to checkorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean isTableAvailable(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
isTableAvailable
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to checkorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public boolean isTableAvailableWithSplit(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName, List<ByteBuffer> splitKeys) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
THBaseService.Iface.isTableAvailable(TTableName tableName)
instead
*isTableAvailableWithSplit
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to checksplitKeys
- keys to check if the table has been created with all split keysorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void addColumnFamily(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName, org.apache.hadoop.hbase.thrift2.generated.TColumnFamilyDescriptor column) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
addColumnFamily
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to add column family tocolumn
- column family descriptor of column family to be addedorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void deleteColumnFamily(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName, ByteBuffer column) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
deleteColumnFamily
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to delete column family fromcolumn
- name of column family to be deletedorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void modifyColumnFamily(org.apache.hadoop.hbase.thrift2.generated.TTableName tableName, org.apache.hadoop.hbase.thrift2.generated.TColumnFamilyDescriptor column) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
modifyColumnFamily
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tableName
- the tablename to modify column familycolumn
- column family descriptor of column family to be modifiedorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void modifyTable(org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor desc) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
modifyTable
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
desc
- the descriptor of the table to modifyorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void createNamespace(org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor namespaceDesc) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
createNamespace
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
namespaceDesc
- descriptor which describes the new namespaceorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void modifyNamespace(org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor namespaceDesc) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
modifyNamespace
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
namespaceDesc
- descriptor which describes the new namespaceorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public void deleteNamespace(String name) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
deleteNamespace
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
name
- namespace nameorg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor getNamespaceDescriptor(String name) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getNamespaceDescriptor
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
name
- name of namespace descriptororg.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public List<String> listNamespaces() throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
listNamespaces
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
public org.apache.hadoop.hbase.thrift2.generated.TThriftServerType getThriftServerType()
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getThriftServerType
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
public String getClusterId() throws org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getClusterId
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
org.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TOnlineLogRecord> getSlowLogResponses(Set<org.apache.hadoop.hbase.thrift2.generated.TServerName> tServerNames, org.apache.hadoop.hbase.thrift2.generated.TLogQueryFilter tLogQueryFilter) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
getSlowLogResponses
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tServerNames
- @param serverNames Server names to get slowlog responses fromtLogQueryFilter
- @param logQueryFilter filter to be used if providedorg.apache.hadoop.hbase.thrift2.generated.TIOError
- if a remote or network exception occursorg.apache.thrift.TException
public List<Boolean> clearSlowLogResponses(Set<org.apache.hadoop.hbase.thrift2.generated.TServerName> tServerNames) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
clearSlowLogResponses
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
tServerNames
- @param serverNames Set of Server names to clean slowlog responses fromorg.apache.hadoop.hbase.thrift2.generated.TIOError
- if a remote or network exception occursorg.apache.thrift.TException
public List<org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor> listNamespaceDescriptors() throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
listNamespaceDescriptors
in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.thrift.TException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.