public static class ThriftServerRunner.HBaseHandler extends java.lang.Object implements Hbase.Iface
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
conf |
protected Log |
LOG |
protected int |
nextScannerId |
protected java.util.HashMap<java.lang.Integer,ThriftServerRunner.ResultScannerWrapper> |
scannerMap |
| Modifier | Constructor and Description |
|---|---|
protected |
HBaseHandler(Configuration c,
UserProvider userProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addScanner(ResultScanner scanner,
boolean sortColumns)
Assigns a unique ID to the scanner and adds the mapping to an internal
hash-map.
|
java.util.List<TCell> |
append(TAppend tappend)
Appends values to one or more columns within a single row.
|
protected long |
atomicIncrement(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
byte[] family,
byte[] qualifier,
long amount) |
long |
atomicIncrement(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
long amount)
Deprecated.
|
boolean |
checkAndPut(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
java.nio.ByteBuffer value,
Mutation mput,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Atomically checks if a row/family/qualifier value matches the expected
value.
|
void |
compact(java.nio.ByteBuffer tableNameOrRegionName) |
void |
createTable(java.nio.ByteBuffer in_tableName,
java.util.List<ColumnDescriptor> columnFamilies)
Create a table with the specified column families.
|
void |
deleteAll(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Delete all cells that match the passed row and column.
|
void |
deleteAllRow(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Completely delete the row's cells.
|
void |
deleteAllRowTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Completely delete the row's cells marked with a timestamp
equal-to or older than the passed timestamp.
|
void |
deleteAllTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Delete all cells that match the passed row and column and whose
timestamp is equal-to or older than the passed timestamp.
|
void |
deleteTable(java.nio.ByteBuffer in_tableName)
Deletes a table
|
void |
disableTable(java.nio.ByteBuffer tableName)
Disables a table (takes it off-line) If it is being served, the master
will tell the servers to stop serving it.
|
void |
enableTable(java.nio.ByteBuffer tableName)
Brings a table on-line (enables it)
|
protected java.util.List<TCell> |
get(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
byte[] family,
byte[] qualifier,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Note: this internal interface is slightly different from public APIs in regard to handling
of the qualifier.
|
java.util.List<TCell> |
get(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Deprecated.
|
java.util.Map<java.nio.ByteBuffer,ColumnDescriptor> |
getColumnDescriptors(java.nio.ByteBuffer tableName)
List all the column families assoicated with a table.
|
TRegionInfo |
getRegionInfo(java.nio.ByteBuffer searchRow)
Get the regininfo for the specified row.
|
java.util.List<TRowResult> |
getRow(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get all the data for the specified table and row at the latest
timestamp.
|
java.util.List<TCell> |
getRowOrBefore(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer family)
Deprecated.
|
java.util.List<TRowResult> |
getRows(java.nio.ByteBuffer tableName,
java.util.List<java.nio.ByteBuffer> rows,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get all the data for the specified table and rows at the latest
timestamp.
|
java.util.List<TRowResult> |
getRowsTs(java.nio.ByteBuffer tableName,
java.util.List<java.nio.ByteBuffer> rows,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get all the data for the specified table and rows at the specified
timestamp.
|
java.util.List<TRowResult> |
getRowsWithColumns(java.nio.ByteBuffer tableName,
java.util.List<java.nio.ByteBuffer> rows,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get the specified columns for the specified table and rows at the latest
timestamp.
|
java.util.List<TRowResult> |
getRowsWithColumnsTs(java.nio.ByteBuffer tableName,
java.util.List<java.nio.ByteBuffer> rows,
java.util.List<java.nio.ByteBuffer> columns,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get the specified columns for the specified table and rows at the specified
timestamp.
|
java.util.List<TRowResult> |
getRowTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get all the data for the specified table and row at the specified
timestamp.
|
java.util.List<TRowResult> |
getRowWithColumns(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get the specified columns for the specified table and row at the latest
timestamp.
|
java.util.List<TRowResult> |
getRowWithColumnsTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.List<java.nio.ByteBuffer> columns,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get the specified columns for the specified table and row at the specified
timestamp.
|
protected ThriftServerRunner.ResultScannerWrapper |
getScanner(int id)
Returns the scanner associated with the specified ID.
|
Table |
getTable(byte[] tableName)
Creates and returns a Table instance from a given table name.
|
Table |
getTable(java.nio.ByteBuffer tableName) |
java.util.List<java.nio.ByteBuffer> |
getTableNames()
List all the userspace tables.
|
java.util.List<TRegionInfo> |
getTableRegions(java.nio.ByteBuffer tableName)
List the regions associated with a table.
|
java.util.List<TCell> |
getVer(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
byte[] family,
byte[] qualifier,
int numVersions,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Note: this public interface is slightly different from public Java APIs in regard to
handling of the qualifier.
|
java.util.List<TCell> |
getVer(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
int numVersions,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Deprecated.
|
protected java.util.List<TCell> |
getVerTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
byte[] family,
byte[] qualifier,
long timestamp,
int numVersions,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Note: this internal interface is slightly different from public APIs in regard to handling
of the qualifier.
|
java.util.List<TCell> |
getVerTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
long timestamp,
int numVersions,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Deprecated.
|
void |
increment(TIncrement tincrement)
Increment a cell by the ammount.
|
void |
incrementRows(java.util.List<TIncrement> tincrements) |
boolean |
isTableEnabled(java.nio.ByteBuffer tableName) |
void |
majorCompact(java.nio.ByteBuffer tableNameOrRegionName) |
void |
mutateRow(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.List<Mutation> mutations,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Apply a series of mutations (updates/deletes) to a row in a
single transaction.
|
void |
mutateRows(java.nio.ByteBuffer tableName,
java.util.List<BatchMutation> rowBatches,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Apply a series of batches (each a series of mutations on a single row)
in a single transaction.
|
void |
mutateRowsTs(java.nio.ByteBuffer tableName,
java.util.List<BatchMutation> rowBatches,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Apply a series of batches (each a series of mutations on a single row)
in a single transaction.
|
void |
mutateRowTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.List<Mutation> mutations,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Apply a series of mutations (updates/deletes) to a row in a
single transaction.
|
protected ThriftServerRunner.ResultScannerWrapper |
removeScanner(int id)
Removes the scanner associated with the specified ID from the internal
id->scanner hash-map.
|
void |
scannerClose(int id)
Closes the server-state associated with an open scanner.
|
java.util.List<TRowResult> |
scannerGet(int id)
Returns the scanner's current row value and advances to the next
row in the table.
|
java.util.List<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.
|
int |
scannerOpen(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get a scanner on the current table starting at the specified row and
ending at the last row in the table.
|
int |
scannerOpenTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.util.List<java.nio.ByteBuffer> columns,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get a scanner on the current table starting at the specified row and
ending at the last row in the table.
|
int |
scannerOpenWithPrefix(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startAndPrefix,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Open a scanner for a given prefix.
|
int |
scannerOpenWithScan(java.nio.ByteBuffer tableName,
TScan tScan,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get a scanner on the current table, using the Scan instance
for the scan parameters.
|
int |
scannerOpenWithStop(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.nio.ByteBuffer stopRow,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get a scanner on the current table starting and stopping at the
specified rows.
|
int |
scannerOpenWithStopTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.nio.ByteBuffer stopRow,
java.util.List<java.nio.ByteBuffer> columns,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
Get a scanner on the current table starting and stopping at the
specified rows.
|
protected Configuration conf
protected final Log LOG
protected int nextScannerId
protected java.util.HashMap<java.lang.Integer,ThriftServerRunner.ResultScannerWrapper> scannerMap
protected HBaseHandler(Configuration c,
UserProvider userProvider)
throws java.io.IOException
java.io.IOExceptionpublic Table getTable(byte[] tableName)
throws java.io.IOException
tableName - name of tablejava.io.IOExceptionIOErrorpublic Table getTable(java.nio.ByteBuffer tableName)
throws java.io.IOException
java.io.IOExceptionprotected int addScanner(ResultScanner scanner,
boolean sortColumns)
scanner - protected ThriftServerRunner.ResultScannerWrapper getScanner(int id)
id - protected ThriftServerRunner.ResultScannerWrapper removeScanner(int id)
id - public void enableTable(java.nio.ByteBuffer tableName)
throws IOError
Hbase.IfaceenableTable in interface Hbase.IfacetableName - name of the tableIOErrorpublic void disableTable(java.nio.ByteBuffer tableName)
throws IOError
Hbase.IfacedisableTable in interface Hbase.IfacetableName - name of the tableIOErrorpublic boolean isTableEnabled(java.nio.ByteBuffer tableName)
throws IOError
isTableEnabled in interface Hbase.IfacetableName - name of the table to checkIOErrorpublic void compact(java.nio.ByteBuffer tableNameOrRegionName)
throws IOError
compact in interface Hbase.IfaceIOErrorpublic void majorCompact(java.nio.ByteBuffer tableNameOrRegionName)
throws IOError
majorCompact in interface Hbase.IfaceIOErrorpublic java.util.List<java.nio.ByteBuffer> getTableNames()
throws IOError
Hbase.IfacegetTableNames in interface Hbase.IfaceIOErrorpublic java.util.List<TRegionInfo> getTableRegions(java.nio.ByteBuffer tableName) throws IOError
Hbase.IfacegetTableRegions in interface Hbase.IfacetableName - table nameIOError@Deprecated public java.util.List<TCell> get(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.Ifaceget in interface Hbase.IfacetableName - name of tablerow - row keycolumn - column nameattributes - Get attributesIOErrorprotected java.util.List<TCell> get(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, byte[] family, byte[] qualifier, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
get(ByteBuffer, ByteBuffer, ByteBuffer, Map)) interface IS consistent in that the
column is parse like normal.IOError@Deprecated public java.util.List<TCell> getVer(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, int numVersions, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetVer in interface Hbase.IfacetableName - name of tablerow - row keycolumn - column namenumVersions - number of versions to retrieveattributes - Get attributesIOErrorpublic java.util.List<TCell> getVer(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, byte[] family, byte[] qualifier, int numVersions, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
getVer(ByteBuffer, ByteBuffer, ByteBuffer, int, Map) with a column value
that lacks a ':'.IOError@Deprecated public java.util.List<TCell> getVerTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer column, long timestamp, int numVersions, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetVerTs in interface Hbase.IfacetableName - name of tablerow - row keycolumn - column nametimestamp - timestampnumVersions - number of versions to retrieveattributes - Get attributesIOErrorprotected java.util.List<TCell> getVerTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, byte[] family, byte[] qualifier, long timestamp, int numVersions, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
getVerTs(ByteBuffer, ByteBuffer, ByteBuffer, long, int, Map)) interface IS
consistent in that the column is parse like normal.IOErrorpublic java.util.List<TRowResult> getRow(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRow in interface Hbase.IfacetableName - name of tablerow - row keyattributes - Get attributesIOErrorpublic java.util.List<TRowResult> getRowWithColumns(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List<java.nio.ByteBuffer> columns, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowWithColumns in interface Hbase.IfacetableName - name of tablerow - row keycolumns - List of columns to return, null for all columnsattributes - Get attributesIOErrorpublic java.util.List<TRowResult> getRowTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, long timestamp, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowTs in interface Hbase.IfacetableName - name of the tablerow - row keytimestamp - timestampattributes - Get attributesIOErrorpublic java.util.List<TRowResult> getRowWithColumnsTs(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.util.List<java.nio.ByteBuffer> columns, long timestamp, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowWithColumnsTs in interface Hbase.IfacetableName - name of tablerow - row keycolumns - List of columns to return, null for all columnsattributes - Get attributesIOErrorpublic java.util.List<TRowResult> getRows(java.nio.ByteBuffer tableName, java.util.List<java.nio.ByteBuffer> rows, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRows in interface Hbase.IfacetableName - name of tablerows - row keysattributes - Get attributesIOErrorpublic java.util.List<TRowResult> getRowsWithColumns(java.nio.ByteBuffer tableName, java.util.List<java.nio.ByteBuffer> rows, java.util.List<java.nio.ByteBuffer> columns, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowsWithColumns in interface Hbase.IfacetableName - name of tablerows - row keyscolumns - List of columns to return, null for all columnsattributes - Get attributesIOErrorpublic java.util.List<TRowResult> getRowsTs(java.nio.ByteBuffer tableName, java.util.List<java.nio.ByteBuffer> rows, long timestamp, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowsTs in interface Hbase.IfacetableName - name of the tablerows - row keystimestamp - timestampattributes - Get attributesIOErrorpublic java.util.List<TRowResult> getRowsWithColumnsTs(java.nio.ByteBuffer tableName, java.util.List<java.nio.ByteBuffer> rows, java.util.List<java.nio.ByteBuffer> columns, long timestamp, java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowsWithColumnsTs in interface Hbase.IfacetableName - name of tablerows - row keyscolumns - List of columns to return, null for all columnsattributes - Get attributesIOErrorpublic void deleteAll(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError
Hbase.IfacedeleteAll in interface Hbase.IfacetableName - name of tablerow - Row to updatecolumn - name of column whose value is to be deletedattributes - Delete attributesIOErrorpublic void deleteAllTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError
Hbase.IfacedeleteAllTs in interface Hbase.IfacetableName - name of tablerow - Row to updatecolumn - name of column whose value is to be deletedtimestamp - timestampattributes - Delete attributesIOErrorpublic void deleteAllRow(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError
Hbase.IfacedeleteAllRow in interface Hbase.IfacetableName - name of tablerow - key of the row to be completely deleted.attributes - Delete attributesIOErrorpublic void deleteAllRowTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError
Hbase.IfacedeleteAllRowTs in interface Hbase.IfacetableName - name of tablerow - key of the row to be completely deleted.timestamp - timestampattributes - Delete attributesIOErrorpublic void createTable(java.nio.ByteBuffer in_tableName,
java.util.List<ColumnDescriptor> columnFamilies)
throws IOError,
IllegalArgument,
AlreadyExists
Hbase.IfacecreateTable in interface Hbase.Ifacein_tableName - name of table to createcolumnFamilies - list of column family descriptorsIllegalArgument - if an input parameter is invalidAlreadyExists - if the table name already existsIOErrorpublic void deleteTable(java.nio.ByteBuffer in_tableName)
throws IOError
Hbase.IfacedeleteTable in interface Hbase.Ifacein_tableName - name of table to deleteIOError - if table doesn't exist on server or there was some other
problempublic void mutateRow(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.List<Mutation> mutations,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
IllegalArgument
Hbase.IfacemutateRow in interface Hbase.IfacetableName - name of tablerow - row keymutations - list of mutation commandsattributes - Mutation attributesIOErrorIllegalArgumentpublic void mutateRowTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.util.List<Mutation> mutations,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
IllegalArgument
Hbase.IfacemutateRowTs in interface Hbase.IfacetableName - name of tablerow - row keymutations - list of mutation commandstimestamp - timestampattributes - Mutation attributesIOErrorIllegalArgumentpublic void mutateRows(java.nio.ByteBuffer tableName,
java.util.List<BatchMutation> rowBatches,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
IllegalArgument,
TException
Hbase.IfacemutateRows in interface Hbase.IfacetableName - name of tablerowBatches - list of row batchesattributes - Mutation attributesIOErrorIllegalArgumentTExceptionpublic void mutateRowsTs(java.nio.ByteBuffer tableName,
java.util.List<BatchMutation> rowBatches,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
IllegalArgument,
TException
Hbase.IfacemutateRowsTs in interface Hbase.IfacetableName - name of tablerowBatches - list of row batchestimestamp - timestampattributes - Mutation attributesIOErrorIllegalArgumentTException@Deprecated
public long atomicIncrement(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
long amount)
throws IOError,
IllegalArgument,
TException
Hbase.IfaceatomicIncrement in interface Hbase.IfacetableName - name of tablerow - row to incrementcolumn - name of columnamount - amount to increment byIOErrorIllegalArgumentTExceptionprotected long atomicIncrement(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
byte[] family,
byte[] qualifier,
long amount)
throws IOError,
IllegalArgument,
TException
IOErrorIllegalArgumentTExceptionpublic void scannerClose(int id)
throws IOError,
IllegalArgument
Hbase.IfacescannerClose in interface Hbase.Ifaceid - id of a scanner returned by scannerOpenIllegalArgument - if ScannerID is invalidIOErrorpublic java.util.List<TRowResult> scannerGetList(int id, int nbRows) throws IllegalArgument, IOError
Hbase.IfacescannerGetList in interface Hbase.Ifaceid - id of a scanner returned by scannerOpennbRows - number of results to returnIllegalArgument - if ScannerID is invalidIOErrorpublic java.util.List<TRowResult> scannerGet(int id) throws IllegalArgument, IOError
Hbase.IfacescannerGet in interface Hbase.Ifaceid - id of a scanner returned by scannerOpenIllegalArgument - if ScannerID is invalidIOErrorpublic int scannerOpenWithScan(java.nio.ByteBuffer tableName,
TScan tScan,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError
Hbase.IfacescannerOpenWithScan in interface Hbase.IfacetableName - name of tabletScan - Scan instanceattributes - Scan attributesIOErrorpublic int scannerOpen(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError
Hbase.IfacescannerOpen in interface Hbase.IfacetableName - 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 attributesIOErrorpublic int scannerOpenWithStop(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.nio.ByteBuffer stopRow,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
TException
Hbase.IfacescannerOpenWithStop in interface Hbase.IfacetableName - 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 attributesIOErrorTExceptionpublic int scannerOpenWithPrefix(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startAndPrefix,
java.util.List<java.nio.ByteBuffer> columns,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
TException
Hbase.IfacescannerOpenWithPrefix in interface Hbase.IfacetableName - name of tablestartAndPrefix - the prefix (and thus start row) of the keys you wantcolumns - the columns you want returnedattributes - Scan attributesIOErrorTExceptionpublic int scannerOpenTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.util.List<java.nio.ByteBuffer> columns,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
TException
Hbase.IfacescannerOpenTs in interface Hbase.IfacetableName - 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 attributesIOErrorTExceptionpublic int scannerOpenWithStopTs(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer startRow,
java.nio.ByteBuffer stopRow,
java.util.List<java.nio.ByteBuffer> columns,
long timestamp,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
TException
Hbase.IfacescannerOpenWithStopTs in interface Hbase.IfacetableName - 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 attributesIOErrorTExceptionpublic java.util.Map<java.nio.ByteBuffer,ColumnDescriptor> getColumnDescriptors(java.nio.ByteBuffer tableName) throws IOError, TException
Hbase.IfacegetColumnDescriptors in interface Hbase.IfacetableName - table nameIOErrorTException@Deprecated public java.util.List<TCell> getRowOrBefore(java.nio.ByteBuffer tableName, java.nio.ByteBuffer row, java.nio.ByteBuffer family) throws IOError
Hbase.IfacegetRowOrBefore in interface Hbase.IfacetableName - name of tablerow - row keyfamily - column nameIOErrorpublic TRegionInfo getRegionInfo(java.nio.ByteBuffer searchRow) throws IOError
Hbase.IfacegetRegionInfo in interface Hbase.IfacesearchRow - row keyIOErrorpublic void increment(TIncrement tincrement) throws IOError, TException
Hbase.Ifaceincrement in interface Hbase.Ifacetincrement - The single increment to applyIOErrorTExceptionpublic void incrementRows(java.util.List<TIncrement> tincrements) throws IOError, TException
incrementRows in interface Hbase.IfaceIOErrorTExceptionpublic java.util.List<TCell> append(TAppend tappend) throws IOError, TException
Hbase.Ifaceappend in interface Hbase.Ifacetappend - The single append operation to applyIOErrorTExceptionpublic boolean checkAndPut(java.nio.ByteBuffer tableName,
java.nio.ByteBuffer row,
java.nio.ByteBuffer column,
java.nio.ByteBuffer value,
Mutation mput,
java.util.Map<java.nio.ByteBuffer,java.nio.ByteBuffer> attributes)
throws IOError,
IllegalArgument,
TException
Hbase.IfacecheckAndPut in interface Hbase.IfacetableName - 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 attributesIOErrorIllegalArgumentTException