Package org.apache.hadoop.hbase.thrift
Class ThriftHBaseServiceHandler
java.lang.Object
org.apache.hadoop.hbase.thrift.HBaseServiceHandler
org.apache.hadoop.hbase.thrift.ThriftHBaseServiceHandler
- All Implemented Interfaces:
org.apache.hadoop.hbase.thrift.generated.Hbase.Iface
@Private
public class ThriftHBaseServiceHandler
extends HBaseServiceHandler
implements org.apache.hadoop.hbase.thrift.generated.Hbase.Iface
The HBaseServiceHandler is a glue object that connects Thrift RPC calls to the HBase client API
primarily defined in the Admin and Table objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) IncrementCoalescerstatic final intprivate static final org.slf4j.Loggerprivate intprivate org.apache.hbase.thirdparty.com.google.common.cache.Cache<Integer,ThriftHBaseServiceHandler.ResultScannerWrapper> Fields inherited from class org.apache.hadoop.hbase.thrift.HBaseServiceHandler
CLEANUP_INTERVAL, conf, connectionCache, MAX_IDLETIME, metrics -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThriftHBaseServiceHandler(org.apache.hadoop.conf.Configuration c, UserProvider userProvider) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddAttributes(OperationWithAttributes op, Map<ByteBuffer, ByteBuffer> attributes) Adds all the attributes into the Operation objectprotected intaddScanner(ResultScanner scanner, boolean sortColumns) Assigns a unique ID to the scanner and adds the mapping to an internal hash-map.List<org.apache.hadoop.hbase.thrift.generated.TCell>append(org.apache.hadoop.hbase.thrift.generated.TAppend tappend) Appends values to one or more columns within a single row.protected longatomicIncrement(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, long amount) longatomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long amount) Atomically increment the column value specified.booleancheckAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, org.apache.hadoop.hbase.thrift.generated.Mutation mput, Map<ByteBuffer, ByteBuffer> attributes) Atomically checks if a row/family/qualifier value matches the expected value.private voidcloseTable(Table table) voidcompact(ByteBuffer tableNameOrRegionName) voidcreateTable(ByteBuffer in_tableName, List<org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor> columnFamilies) Create a table with the specified column families.voiddeleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer, ByteBuffer> attributes) Delete all cells that match the passed row and column.voiddeleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer, ByteBuffer> attributes) Completely delete the row's cells.voiddeleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Completely delete the row's cells marked with a timestamp equal-to or older than the passed timestamp.voiddeleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp.voiddeleteTable(ByteBuffer in_tableName) Deletes a tablevoiddisableTable(ByteBuffer tableName) Disables a table (takes it off-line) If it is being served, the master will tell the servers to stop serving it.voidenableTable(ByteBuffer tableName) Brings a table on-line (enables it)protected List<org.apache.hadoop.hbase.thrift.generated.TCell>get(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, Map<ByteBuffer, ByteBuffer> attributes) Note: this internal interface is slightly different from public APIs in regard to handling of the qualifier.List<org.apache.hadoop.hbase.thrift.generated.TCell>get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer, ByteBuffer> attributes) Get a single TCell for the specified table, row, and column at the latest timestamp.(package private) byte[][]getAllColumns(Table table) Returns a list of all the column families for a given Table.Returns the cluster ID for this cluster.Map<ByteBuffer,org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) List all the column families assoicated with a table.private static org.apache.hadoop.hbase.thrift.generated.IOErrorgetIOError(Throwable throwable) org.apache.hadoop.hbase.thrift.generated.TRegionInfogetRegionInfo(ByteBuffer searchRow) Get the regininfo for the specified row.private ResultgetReverseScanResult(byte[] tableName, byte[] row, byte[] family) List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer, ByteBuffer> attributes) Get all the data for the specified table and row at the latest timestamp.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer, ByteBuffer> attributes) Get all the data for the specified table and rows at the latest timestamp.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Get all the data for the specified table and rows at the specified timestamp.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) Get the specified columns for the specified table and rows at the latest timestamp.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Get the specified columns for the specified table and rows at the specified timestamp.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Get all the data for the specified table and row at the specified timestamp.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) Get the specified columns for the specified table and row at the latest timestamp.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Get the specified columns for the specified table and row at the specified timestamp.getScanner(int id) Returns the scanner associated with the specified ID.private static TableNamegetTableName(ByteBuffer buffer) List all the userspace tables.List all the userspace tables and their enabled or disabled flags.List<org.apache.hadoop.hbase.thrift.generated.TRegionInfo>getTableRegions(ByteBuffer tableName) Returns the list of regions in the given table, or an empty list if the table does not existorg.apache.hadoop.hbase.thrift.generated.TThriftServerTypeGet the type of this thrift server.List<org.apache.hadoop.hbase.thrift.generated.TCell>getVer(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) Note: this public interface is slightly different from public Java APIs in regard to handling of the qualifier.List<org.apache.hadoop.hbase.thrift.generated.TCell>getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) Get the specified number of versions for the specified table, row, and column.protected List<org.apache.hadoop.hbase.thrift.generated.TCell>getVerTs(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, long timestamp, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) Note: this internal interface is slightly different from public APIs in regard to handling of the qualifier.List<org.apache.hadoop.hbase.thrift.generated.TCell>getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) Get the specified number of versions for the specified table, row, and column.booleangrant(org.apache.hadoop.hbase.thrift.generated.TAccessControlEntity info) Grant permissions in namespace or table level.voidincrement(org.apache.hadoop.hbase.thrift.generated.TIncrement tincrement) Increment a cell by the ammount.voidincrementRows(List<org.apache.hadoop.hbase.thrift.generated.TIncrement> tincrements) booleanisTableEnabled(ByteBuffer tableName) voidmajorCompact(ByteBuffer tableNameOrRegionName) voidmutateRow(ByteBuffer tableName, ByteBuffer row, List<org.apache.hadoop.hbase.thrift.generated.Mutation> mutations, Map<ByteBuffer, ByteBuffer> attributes) Apply a series of mutations (updates/deletes) to a row in a single transaction.voidmutateRows(ByteBuffer tableName, List<org.apache.hadoop.hbase.thrift.generated.BatchMutation> rowBatches, Map<ByteBuffer, ByteBuffer> attributes) Apply a series of batches (each a series of mutations on a single row) in a single transaction.voidmutateRowsTs(ByteBuffer tableName, List<org.apache.hadoop.hbase.thrift.generated.BatchMutation> rowBatches, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Apply a series of batches (each a series of mutations on a single row) in a single transaction.voidmutateRowTs(ByteBuffer tableName, ByteBuffer row, List<org.apache.hadoop.hbase.thrift.generated.Mutation> mutations, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Apply a series of mutations (updates/deletes) to a row in a single transaction.private voidremoveScanner(int id) Removes the scanner associated with the specified ID from the internal id->scanner hash-map.booleanrevoke(org.apache.hadoop.hbase.thrift.generated.TAccessControlEntity info) Revoke permissions in namespace or table level.voidscannerClose(int id) Closes the server-state associated with an open scanner.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>scannerGet(int id) Returns the scanner's current row value and advances to the next row in the table.List<org.apache.hadoop.hbase.thrift.generated.TRowResult>scannerGetList(int id, int nbRows) Returns, starting at the scanner's current row value nbRows worth of rows and advances to the next row in the table.intscannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) Get a scanner on the current table starting at the specified row and ending at the last row in the table.intscannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Get a scanner on the current table starting at the specified row and ending at the last row in the table.intscannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) Open a scanner for a given prefix.intscannerOpenWithScan(ByteBuffer tableName, org.apache.hadoop.hbase.thrift.generated.TScan tScan, Map<ByteBuffer, ByteBuffer> attributes) Get a scanner on the current table, using the Scan instance for the scan parameters.intscannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) Get a scanner on the current table starting and stopping at the specified rows.intscannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) Get a scanner on the current table starting and stopping at the specified rows.Methods inherited from class org.apache.hadoop.hbase.thrift.HBaseServiceHandler
getAdmin, getTable, getTable, initMetrics, setEffectiveUser
-
Field Details
-
LOG
-
HREGION_VERSION
- See Also:
-
nextScannerId
-
scannerMap
private org.apache.hbase.thirdparty.com.google.common.cache.Cache<Integer,ThriftHBaseServiceHandler.ResultScannerWrapper> scannerMap -
coalescer
-
-
Constructor Details
-
ThriftHBaseServiceHandler
protected ThriftHBaseServiceHandler(org.apache.hadoop.conf.Configuration c, UserProvider userProvider) throws IOException - Throws:
IOException
-
-
Method Details
-
getAllColumns
Returns a list of all the column families for a given Table.- Throws:
IOException
-
addScanner
Assigns a unique ID to the scanner and adds the mapping to an internal hash-map.- Parameters:
scanner- theResultScannerto add- Returns:
- integer scanner id
-
getScanner
Returns the scanner associated with the specified ID.- Parameters:
id- the ID of the scanner to get- Returns:
- a Scanner, or null if ID was invalid.
-
removeScanner
Removes the scanner associated with the specified ID from the internal id->scanner hash-map.- Parameters:
id- the ID of the scanner to remove
-
enableTable
public void enableTable(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceBrings a table on-line (enables it)- Specified by:
enableTablein interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of the table- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
disableTable
public void disableTable(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceDisables a table (takes it off-line) If it is being served, the master will tell the servers to stop serving it.- Specified by:
disableTablein interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of the table- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
isTableEnabled
public boolean isTableEnabled(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError - Specified by:
isTableEnabledin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of the table to check- Returns:
- true if table is on-line
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getTableNamesWithIsTableEnabled
public Map<ByteBuffer,Boolean> getTableNamesWithIsTableEnabled() throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceList all the userspace tables and their enabled or disabled flags.- Specified by:
getTableNamesWithIsTableEnabledin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Returns:
- list of tables with is enabled flags
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
compact
public void compact(ByteBuffer tableNameOrRegionName) throws org.apache.hadoop.hbase.thrift.generated.IOError - Specified by:
compactin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
majorCompact
public void majorCompact(ByteBuffer tableNameOrRegionName) throws org.apache.hadoop.hbase.thrift.generated.IOError - Specified by:
majorCompactin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getTableNames
Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceList all the userspace tables.- Specified by:
getTableNamesin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Returns:
- returns a list of names
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getTableRegions
public List<org.apache.hadoop.hbase.thrift.generated.TRegionInfo> getTableRegions(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError Returns the list of regions in the given table, or an empty list if the table does not exist- Specified by:
getTableRegionsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- table name- Returns:
- list of region descriptors
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
get
public List<org.apache.hadoop.hbase.thrift.generated.TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet a single TCell for the specified table, row, and column at the latest timestamp. Returns an empty list if no such value exists.- Specified by:
getin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keycolumn- column nameattributes- Get attributes- Returns:
- value for specified row/column
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
get
protected List<org.apache.hadoop.hbase.thrift.generated.TCell> get(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorNote: this internal interface is slightly different from public APIs in regard to handling of the qualifier. Here we differ from the public Java API in that null != byte[0]. Rather, we respect qual == null as a request for the entire column family. The caller (get(ByteBuffer, ByteBuffer, ByteBuffer, Map)) interface IS consistent in that the column is parse like normal.- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getVer
public List<org.apache.hadoop.hbase.thrift.generated.TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the specified number of versions for the specified table, row, and column.- Specified by:
getVerin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keycolumn- column namenumVersions- number of versions to retrieveattributes- Get attributes- Returns:
- list of cells for specified row/column
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getVer
public List<org.apache.hadoop.hbase.thrift.generated.TCell> getVer(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorNote: this public interface is slightly different from public Java APIs in regard to handling of the qualifier. Here we differ from the public Java API in that null != byte[0]. Rather, we respect qual == null as a request for the entire column family. If you want to access the entire column family, usegetVer(ByteBuffer, ByteBuffer, ByteBuffer, int, Map)with acolumnvalue that lacks a':'.- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getVerTs
public List<org.apache.hadoop.hbase.thrift.generated.TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the specified number of versions for the specified table, row, and column. Only versions less than or equal to the specified timestamp will be returned.- Specified by:
getVerTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keycolumn- column nametimestamp- timestampnumVersions- number of versions to retrieveattributes- Get attributes- Returns:
- list of cells for specified row/column
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getVerTs
protected List<org.apache.hadoop.hbase.thrift.generated.TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, long timestamp, int numVersions, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorNote: this internal interface is slightly different from public APIs in regard to handling of the qualifier. Here we differ from the public Java API in that null != byte[0]. Rather, we respect qual == null as a request for the entire column family. The caller (getVerTs(ByteBuffer, ByteBuffer, ByteBuffer, long, int, Map)) interface IS consistent in that the column is parse like normal.- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRow
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet all the data for the specified table and row at the latest timestamp. Returns an empty list if the row does not exist.- Specified by:
getRowin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keyattributes- Get attributes- Returns:
- TRowResult containing the row and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRowWithColumns
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the specified columns for the specified table and row at the latest timestamp. Returns an empty list if the row does not exist.- Specified by:
getRowWithColumnsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keycolumns- List of columns to return, null for all columnsattributes- Get attributes- Returns:
- TRowResult containing the row and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRowTs
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet all the data for the specified table and row at the specified timestamp. Returns an empty list if the row does not exist.- Specified by:
getRowTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of the tablerow- row keytimestamp- timestampattributes- Get attributes- Returns:
- TRowResult containing the row and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRowWithColumnsTs
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the specified columns for the specified table and row at the specified timestamp. Returns an empty list if the row does not exist.- Specified by:
getRowWithColumnsTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keycolumns- List of columns to return, null for all columnsattributes- Get attributes- Returns:
- TRowResult containing the row and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRows
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet all the data for the specified table and rows at the latest timestamp. Returns an empty list if no rows exist.- Specified by:
getRowsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerows- row keysattributes- Get attributes- Returns:
- TRowResult containing the rows and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRowsWithColumns
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the specified columns for the specified table and rows at the latest timestamp. Returns an empty list if no rows exist.- Specified by:
getRowsWithColumnsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerows- row keyscolumns- List of columns to return, null for all columnsattributes- Get attributes- Returns:
- TRowResult containing the rows and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRowsTs
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet all the data for the specified table and rows at the specified timestamp. Returns an empty list if no rows exist.- Specified by:
getRowsTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of the tablerows- row keystimestamp- timestampattributes- Get attributes- Returns:
- TRowResult containing the rows and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRowsWithColumnsTs
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the specified columns for the specified table and rows at the specified timestamp. Returns an empty list if no rows exist.- Specified by:
getRowsWithColumnsTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerows- row keyscolumns- List of columns to return, null for all columnsattributes- Get attributes- Returns:
- TRowResult containing the rows and map of columns to TCells
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
deleteAll
public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceDelete all cells that match the passed row and column.- Specified by:
deleteAllin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- Row to updatecolumn- name of column whose value is to be deletedattributes- Delete attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
deleteAllTs
public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceDelete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp.- Specified by:
deleteAllTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- Row to updatecolumn- name of column whose value is to be deletedtimestamp- timestampattributes- Delete attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
deleteAllRow
public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceCompletely delete the row's cells.- Specified by:
deleteAllRowin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- key of the row to be completely deleted.attributes- Delete attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
deleteAllRowTs
public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceCompletely delete the row's cells marked with a timestamp equal-to or older than the passed timestamp.- Specified by:
deleteAllRowTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- key of the row to be completely deleted.timestamp- timestampattributes- Delete attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
createTable
public void createTable(ByteBuffer in_tableName, List<org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor> columnFamilies) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.hadoop.hbase.thrift.generated.AlreadyExists Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceCreate a table with the specified column families. The name field for each ColumnDescriptor must be set and must end in a colon (:). All other fields are optional and will get default values if not explicitly specified.- Specified by:
createTablein interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
in_tableName- name of table to createcolumnFamilies- list of column family descriptors- Throws:
org.apache.hadoop.hbase.thrift.generated.IllegalArgument- if an input parameter is invalidorg.apache.hadoop.hbase.thrift.generated.AlreadyExists- if the table name already existsorg.apache.hadoop.hbase.thrift.generated.IOError
-
getTableName
-
deleteTable
public void deleteTable(ByteBuffer in_tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceDeletes a table- Specified by:
deleteTablein interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
in_tableName- name of table to delete- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError- if table doesn't exist on server or there was some other problem
-
mutateRow
public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<org.apache.hadoop.hbase.thrift.generated.Mutation> mutations, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgumentDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceApply a series of mutations (updates/deletes) to a row in a single transaction. If an exception is thrown, then the transaction is aborted. Default current timestamp is used, and all entries will have an identical timestamp.- Specified by:
mutateRowin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keymutations- list of mutation commandsattributes- Mutation attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgument
-
mutateRowTs
public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<org.apache.hadoop.hbase.thrift.generated.Mutation> mutations, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgumentDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceApply a series of mutations (updates/deletes) to a row in a single transaction. If an exception is thrown, then the transaction is aborted. The specified timestamp is used, and all entries will have an identical timestamp.- Specified by:
mutateRowTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keymutations- list of mutation commandstimestamp- timestampattributes- Mutation attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgument
-
mutateRows
public void mutateRows(ByteBuffer tableName, List<org.apache.hadoop.hbase.thrift.generated.BatchMutation> rowBatches, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.thrift.TExceptionDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceApply a series of batches (each a series of mutations on a single row) in a single transaction. If an exception is thrown, then the transaction is aborted. Default current timestamp is used, and all entries will have an identical timestamp.- Specified by:
mutateRowsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerowBatches- list of row batchesattributes- Mutation attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TException
-
mutateRowsTs
public void mutateRowsTs(ByteBuffer tableName, List<org.apache.hadoop.hbase.thrift.generated.BatchMutation> rowBatches, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.thrift.TExceptionDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceApply a series of batches (each a series of mutations on a single row) in a single transaction. If an exception is thrown, then the transaction is aborted. The specified timestamp is used, and all entries will have an identical timestamp.- Specified by:
mutateRowsTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerowBatches- list of row batchestimestamp- timestampattributes- Mutation attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TException
-
atomicIncrement
public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long amount) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.thrift.TException Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceAtomically increment the column value specified. Returns the next value post increment.- Specified by:
atomicIncrementin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row to incrementcolumn- name of columnamount- amount to increment by- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TException
-
atomicIncrement
protected long atomicIncrement(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, long amount) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.thrift.TException - Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TException
-
scannerClose
public void scannerClose(int id) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceCloses the server-state associated with an open scanner.- Specified by:
scannerClosein interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
id- id of a scanner returned by scannerOpen- Throws:
org.apache.hadoop.hbase.thrift.generated.IllegalArgument- if ScannerID is invalidorg.apache.hadoop.hbase.thrift.generated.IOError
-
scannerGetList
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> scannerGetList(int id, int nbRows) throws org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.hadoop.hbase.thrift.generated.IOError Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceReturns, starting at the scanner's current row value nbRows worth of rows and advances to the next row in the table. When there are no more rows in the table, or a key greater-than-or-equal-to the scanner's specified stopRow is reached, an empty list is returned.- Specified by:
scannerGetListin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
id- id of a scanner returned by scannerOpennbRows- number of results to return- Returns:
- a TRowResult containing the current row and a map of the columns to TCells.
- Throws:
org.apache.hadoop.hbase.thrift.generated.IllegalArgument- if ScannerID is invalidorg.apache.hadoop.hbase.thrift.generated.IOError
-
scannerGet
public List<org.apache.hadoop.hbase.thrift.generated.TRowResult> scannerGet(int id) throws org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.hadoop.hbase.thrift.generated.IOError Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceReturns the scanner's current row value and advances to the next row in the table. When there are no more rows in the table, or a key greater-than-or-equal-to the scanner's specified stopRow is reached, an empty list is returned.- Specified by:
scannerGetin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
id- id of a scanner returned by scannerOpen- Returns:
- a TRowResult containing the current row and a map of the columns to TCells.
- Throws:
org.apache.hadoop.hbase.thrift.generated.IllegalArgument- if ScannerID is invalidorg.apache.hadoop.hbase.thrift.generated.IOError
-
scannerOpenWithScan
public int scannerOpenWithScan(ByteBuffer tableName, org.apache.hadoop.hbase.thrift.generated.TScan tScan, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet a scanner on the current table, using the Scan instance for the scan parameters.- Specified by:
scannerOpenWithScanin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tabletScan- Scan instanceattributes- Scan attributes- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
scannerOpen
public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOErrorDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet a scanner on the current table starting at the specified row and ending at the last row in the table. Return the specified columns.- Specified by:
scannerOpenin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablestartRow- Starting row in table to scan. Send "" (empty string) to start at the first row.columns- columns to scan. If column name is a column family, all columns of the specified column family are returned. It's also possible to pass a regex in the column qualifier.attributes- Scan attributes- Returns:
- scanner id to be used with other scanner procedures
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
scannerOpenWithStop
public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TExceptionDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet a scanner on the current table starting and stopping at the specified rows. ending at the last row in the table. Return the specified columns.- Specified by:
scannerOpenWithStopin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablestartRow- Starting row in table to scan. Send "" (empty string) to start at the first row.stopRow- row to stop scanning on. This row is *not* included in the scanner's resultscolumns- columns to scan. If column name is a column family, all columns of the specified column family are returned. It's also possible to pass a regex in the column qualifier.attributes- Scan attributes- Returns:
- scanner id to be used with other scanner procedures
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
scannerOpenWithPrefix
public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TExceptionDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceOpen a scanner for a given prefix. That is all rows will have the specified prefix. No other rows will be returned.- Specified by:
scannerOpenWithPrefixin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablestartAndPrefix- the prefix (and thus start row) of the keys you wantcolumns- the columns you want returnedattributes- Scan attributes- Returns:
- scanner id to use with other scanner calls
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
scannerOpenTs
public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TExceptionDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet a scanner on the current table starting at the specified row and ending at the last row in the table. Return the specified columns. Only values with the specified timestamp are returned.- Specified by:
scannerOpenTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablestartRow- Starting row in table to scan. Send "" (empty string) to start at the first row.columns- columns to scan. If column name is a column family, all columns of the specified column family are returned. It's also possible to pass a regex in the column qualifier.timestamp- timestampattributes- Scan attributes- Returns:
- scanner id to be used with other scanner procedures
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
scannerOpenWithStopTs
public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TExceptionDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet a scanner on the current table starting and stopping at the specified rows. ending at the last row in the table. Return the specified columns. Only values with the specified timestamp are returned.- Specified by:
scannerOpenWithStopTsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablestartRow- Starting row in table to scan. Send "" (empty string) to start at the first row.stopRow- row to stop scanning on. This row is *not* included in the scanner's resultscolumns- columns to scan. If column name is a column family, all columns of the specified column family are returned. It's also possible to pass a regex in the column qualifier.timestamp- timestampattributes- Scan attributes- Returns:
- scanner id to be used with other scanner procedures
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
getColumnDescriptors
public Map<ByteBuffer,org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceList all the column families assoicated with a table.- Specified by:
getColumnDescriptorsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- table name- Returns:
- list of column family descriptors
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
closeTable
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getRegionInfo
public org.apache.hadoop.hbase.thrift.generated.TRegionInfo getRegionInfo(ByteBuffer searchRow) throws org.apache.hadoop.hbase.thrift.generated.IOError Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the regininfo for the specified row. It scans the metatable to find region's start and end keys.- Specified by:
getRegionInfoin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
searchRow- row key- Returns:
- value for specified row/column
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOError
-
getReverseScanResult
- Throws:
IOException
-
increment
public void increment(org.apache.hadoop.hbase.thrift.generated.TIncrement tincrement) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceIncrement a cell by the ammount. Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true. False is the default. Turn to true if you need the extra performance and can accept some data loss if a thrift server dies with increments still in the queue.- Specified by:
incrementin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tincrement- The single increment to apply- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
incrementRows
public void incrementRows(List<org.apache.hadoop.hbase.thrift.generated.TIncrement> tincrements) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException - Specified by:
incrementRowsin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
append
public List<org.apache.hadoop.hbase.thrift.generated.TCell> append(org.apache.hadoop.hbase.thrift.generated.TAppend tappend) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceAppends values to one or more columns within a single row.- Specified by:
appendin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tappend- The single append operation to apply- Returns:
- values of columns after the append operation.
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
checkAndPut
public boolean checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, org.apache.hadoop.hbase.thrift.generated.Mutation mput, Map<ByteBuffer, ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument, org.apache.thrift.TExceptionDescription copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceAtomically checks if a row/family/qualifier value matches the expected value. If it does, it adds the corresponding mutation operation for put.- Specified by:
checkAndPutin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Parameters:
tableName- name of tablerow- row keycolumn- column namevalue- the expected value for the column parameter, if not provided the check is for the non-existence of the column in questionmput- mutation for the putattributes- Mutation attributes- Returns:
- true if the new put was executed, false otherwise
- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TException
-
getThriftServerType
Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGet the type of this thrift server.- Specified by:
getThriftServerTypein interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Returns:
- the type of this thrift server
-
getClusterId
Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceReturns the cluster ID for this cluster.- Specified by:
getClusterIdin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Throws:
org.apache.thrift.TException
-
grant
public boolean grant(org.apache.hadoop.hbase.thrift.generated.TAccessControlEntity info) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceGrant permissions in namespace or table level.- Specified by:
grantin interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
revoke
public boolean revoke(org.apache.hadoop.hbase.thrift.generated.TAccessControlEntity info) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException Description copied from interface:org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceRevoke permissions in namespace or table level.- Specified by:
revokein interfaceorg.apache.hadoop.hbase.thrift.generated.Hbase.Iface- Throws:
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TException
-
getIOError
-
addAttributes
private static void addAttributes(OperationWithAttributes op, Map<ByteBuffer, ByteBuffer> attributes) Adds all the attributes into the Operation object
-