@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 Map<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.
|
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 ResultScanner |
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, setEffectiveUserprivate static final org.slf4j.Logger LOG
private final AtomicInteger nextScannerId
private final Map<Integer,ResultScanner> scannerMap
private static final IOException ioe
private boolean isReadOnly
public ThriftHBaseServiceHandler(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider) throws IOException
IOExceptionprotected Table getTable(ByteBuffer tableName)
getTable in class HBaseServiceHandlerprivate RegionLocator getLocator(ByteBuffer tableName)
private void closeTable(Table table) throws org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.hadoop.hbase.thrift2.generated.TIOErrorprivate 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 ResultScanner removeScanner(int id)
id - of the Scanner to removenull if the Id is invalidpublic 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.Ifaceexists in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to check onget - the TGet to check fororg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfaceexistsAll in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to check ongets - a list of TGets to check fororg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.Ifaceget in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to get fromget - the TGet to fetchorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetMultiple in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - 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.TIOErrororg.apache.thrift.TExceptionpublic 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.Ifaceput in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to put data input - the TPut to putorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacecheckAndPut in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - 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.TIOErrororg.apache.thrift.TExceptionpublic 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.IfaceputMultiple in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to put data inputs - a list of TPuts to commitorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacedeleteSingle in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to delete fromdeleteSingle - the TDelete to deleteorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacedeleteMultiple in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to delete fromdeletes - list of TDeletes to deleteorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacecheckAndMutate in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - 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.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacecheckAndDelete in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - 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.TIOErrororg.apache.thrift.TExceptionpublic 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.Ifaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.Ifaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfaceopenScanner in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the table to get the Scanner forscan - the scan object to get a Scanner fororg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetScannerRows in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacescannerId - 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.TIOErrororg.apache.hadoop.hbase.thrift2.generated.TIllegalArgumentorg.apache.thrift.TExceptionpublic 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.IfacegetScannerResults in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - 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.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacecloseScanner in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacescannerId - the Id of the Scanner to close *org.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.hadoop.hbase.thrift2.generated.TIllegalArgumentorg.apache.thrift.TExceptionpublic 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.IfacemutateRow in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - table to apply the mutationsrowMutations - mutations to applyorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetAllRegionLocations in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetRegionLocation in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionprivate void checkReadOnlyMode() throws org.apache.hadoop.hbase.thrift2.generated.TIOError
org.apache.hadoop.hbase.thrift2.generated.TIOErrorprivate 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.IfacegetTableDescriptor in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetable - the tablename of the table to get tableDescriptororg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetTableDescriptors in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacetables - the tablename list of the tables to get tableDescriptororg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacetTableName - the tablename of the tables to checkorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetTableDescriptorsByPattern in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifaceregex - The regular expression to match againstincludeSysTables - set to false if match only against userspace tablesorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetTableDescriptorsByNamespace in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacename - The namesapce's nameorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetTableNamesByPattern in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifaceregex - The regular expression to match againstincludeSysTables - set to false if match only against userspace tablesorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetTableNamesByNamespace in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacename - The namesapce's nameorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacecreateTable in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacedesc - table descriptor for tablesplitKeys - rray of split keys for the initial regions of the tableorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacedeleteTable in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to deleteorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacetruncateTable in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to truncatepreserveSplits - whether to preserve previous splitsorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfaceenableTable in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to enableorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacedisableTable in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to disableorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacetableName - the tablename to checkorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacetableName - the tablename to checkorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacetableName - the tablename to checkorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfaceTHBaseService.Iface.isTableAvailable(TTableName tableName) instead
*isTableAvailableWithSplit in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to checksplitKeys - keys to check if the table has been created with all split keysorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfaceaddColumnFamily in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to add column family tocolumn - column family descriptor of column family to be addedorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacedeleteColumnFamily in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to delete column family fromcolumn - name of column family to be deletedorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacemodifyColumnFamily in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetableName - the tablename to modify column familycolumn - column family descriptor of column family to be modifiedorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacemodifyTable in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacedesc - the descriptor of the table to modifyorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacecreateNamespace in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacenamespaceDesc - descriptor which describes the new namespaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacemodifyNamespace in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacenamespaceDesc - descriptor which describes the new namespaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic void deleteNamespace(String name) throws org.apache.hadoop.hbase.thrift2.generated.TIOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacedeleteNamespace in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacename - namespace nameorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.IfacegetNamespaceDescriptor in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacename - name of namespace descriptororg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic 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.Ifaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionpublic org.apache.hadoop.hbase.thrift2.generated.TThriftServerType getThriftServerType()
org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacegetThriftServerType in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.Ifacepublic 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.IfacegetSlowLogResponses in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetServerNames - @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.TExceptionpublic 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.IfaceclearSlowLogResponses in interface org.apache.hadoop.hbase.thrift2.generated.THBaseService.IfacetServerNames - @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.TExceptionpublic 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.Ifaceorg.apache.hadoop.hbase.thrift2.generated.TIOErrororg.apache.thrift.TExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.