public static class ThriftServerRunner.HBaseHandler extends Object implements Hbase.Iface
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.commons.logging.Log |
LOG |
protected int |
nextScannerId |
protected HashMap<Integer,ThriftServerRunner.ResultScannerWrapper> |
scannerMap |
| Modifier | Constructor and Description |
|---|---|
protected |
ThriftServerRunner.HBaseHandler(org.apache.hadoop.conf.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.
|
protected long |
atomicIncrement(ByteBuffer tableName,
ByteBuffer row,
byte[] family,
byte[] qualifier,
long amount) |
long |
atomicIncrement(ByteBuffer tableName,
ByteBuffer row,
ByteBuffer column,
long amount)
Deprecated.
|
void |
compact(ByteBuffer tableNameOrRegionName) |
void |
createTable(ByteBuffer in_tableName,
List<ColumnDescriptor> columnFamilies)
Create a table with the specified column families.
|
void |
deleteAll(ByteBuffer tableName,
ByteBuffer row,
ByteBuffer column,
Map<ByteBuffer,ByteBuffer> attributes)
Delete all cells that match the passed row and column.
|
void |
deleteAllRow(ByteBuffer tableName,
ByteBuffer row,
Map<ByteBuffer,ByteBuffer> attributes)
Completely delete the row's cells.
|
void |
deleteAllRowTs(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.
|
void |
deleteAllTs(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.
|
void |
deleteTable(ByteBuffer in_tableName)
Deletes a table
|
void |
disableTable(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(ByteBuffer tableName)
Brings a table on-line (enables it)
|
protected List<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<TCell> |
get(ByteBuffer tableName,
ByteBuffer row,
ByteBuffer column,
Map<ByteBuffer,ByteBuffer> attributes)
Deprecated.
|
Map<ByteBuffer,ColumnDescriptor> |
getColumnDescriptors(ByteBuffer tableName)
List all the column families assoicated with a table.
|
TRegionInfo |
getRegionInfo(ByteBuffer searchRow)
Get the regininfo for the specified row.
|
List<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<TCell> |
getRowOrBefore(ByteBuffer tableName,
ByteBuffer row,
ByteBuffer family)
Get the row just before the specified one.
|
List<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<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<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<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<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<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<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.
|
protected ThriftServerRunner.ResultScannerWrapper |
getScanner(int id)
Returns the scanner associated with the specified ID.
|
HTable |
getTable(byte[] tableName)
Creates and returns an HTable instance from a given table name.
|
HTable |
getTable(ByteBuffer tableName) |
List<ByteBuffer> |
getTableNames()
List all the userspace tables.
|
List<TRegionInfo> |
getTableRegions(ByteBuffer tableName)
List the regions associated with a table.
|
List<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<TCell> |
getVer(ByteBuffer tableName,
ByteBuffer row,
ByteBuffer column,
int numVersions,
Map<ByteBuffer,ByteBuffer> attributes)
Deprecated.
|
protected List<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<TCell> |
getVerTs(ByteBuffer tableName,
ByteBuffer row,
ByteBuffer column,
long timestamp,
int numVersions,
Map<ByteBuffer,ByteBuffer> attributes)
Deprecated.
|
void |
increment(TIncrement tincrement)
Increment a cell by the ammount.
|
void |
incrementRows(List<TIncrement> tincrements) |
boolean |
isTableEnabled(ByteBuffer tableName) |
void |
majorCompact(ByteBuffer tableNameOrRegionName) |
void |
mutateRow(ByteBuffer tableName,
ByteBuffer row,
List<Mutation> mutations,
Map<ByteBuffer,ByteBuffer> attributes)
Apply a series of mutations (updates/deletes) to a row in a
single transaction.
|
void |
mutateRows(ByteBuffer tableName,
List<BatchMutation> rowBatches,
Map<ByteBuffer,ByteBuffer> attributes)
Apply a series of batches (each a series of mutations on a single row)
in a single transaction.
|
void |
mutateRowsTs(ByteBuffer tableName,
List<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.
|
void |
mutateRowTs(ByteBuffer tableName,
ByteBuffer row,
List<Mutation> mutations,
long timestamp,
Map<ByteBuffer,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.
|
List<TRowResult> |
scannerGet(int id)
Returns the scanner's current row value and advances to the next
row in the table.
|
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(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.
|
int |
scannerOpenTs(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.
|
int |
scannerOpenWithPrefix(ByteBuffer tableName,
ByteBuffer startAndPrefix,
List<ByteBuffer> columns,
Map<ByteBuffer,ByteBuffer> attributes)
Open a scanner for a given prefix.
|
int |
scannerOpenWithScan(ByteBuffer tableName,
TScan tScan,
Map<ByteBuffer,ByteBuffer> attributes)
Get a scanner on the current table, using the Scan instance
for the scan parameters.
|
int |
scannerOpenWithStop(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.
|
int |
scannerOpenWithStopTs(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.
|
protected org.apache.hadoop.conf.Configuration conf
protected final org.apache.commons.logging.Log LOG
protected int nextScannerId
protected HashMap<Integer,ThriftServerRunner.ResultScannerWrapper> scannerMap
protected ThriftServerRunner.HBaseHandler(org.apache.hadoop.conf.Configuration c,
UserProvider userProvider)
throws IOException
IOExceptionpublic HTable getTable(byte[] tableName) throws IOException
tableName - name of tableIOExceptionIOErrorpublic HTable getTable(ByteBuffer tableName) throws IOException
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(ByteBuffer tableName) throws IOError
Hbase.IfaceenableTable in interface Hbase.IfacetableName - name of the tableIOErrorpublic void disableTable(ByteBuffer tableName) throws IOError
Hbase.IfacedisableTable in interface Hbase.IfacetableName - name of the tableIOErrorpublic boolean isTableEnabled(ByteBuffer tableName) throws IOError
isTableEnabled in interface Hbase.IfacetableName - name of the table to checkIOErrorpublic void compact(ByteBuffer tableNameOrRegionName) throws IOError
compact in interface Hbase.IfaceIOErrorpublic void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError
majorCompact in interface Hbase.IfaceIOErrorpublic List<ByteBuffer> getTableNames() throws IOError
Hbase.IfacegetTableNames in interface Hbase.IfaceIOErrorpublic List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError
Hbase.IfacegetTableRegions in interface Hbase.IfacetableName - table nameIOError@Deprecated public List<TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
Hbase.Ifaceget in interface Hbase.IfacetableName - name of tablerow - row keycolumn - column nameattributes - Get attributesIOErrorprotected List<TCell> get(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
get(ByteBuffer, ByteBuffer, ByteBuffer, Map)) interface IS consistent in that the
column is parse like normal.IOError@Deprecated public List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
Hbase.IfacegetVer in interface Hbase.IfacetableName - name of tablerow - row keycolumn - column namenumVersions - number of versions to retrieveattributes - Get attributesIOErrorpublic List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
getVer(ByteBuffer, ByteBuffer, ByteBuffer, int, Map) with a column value
that lacks a ':'.IOError@Deprecated public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,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 List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
getVerTs(ByteBuffer, ByteBuffer, ByteBuffer, long, int, Map)) interface IS
consistent in that the column is parse like normal.IOErrorpublic List<TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
Hbase.IfacegetRow in interface Hbase.IfacetableName - name of tablerow - row keyattributes - Get attributesIOErrorpublic List<TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,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 List<TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowTs in interface Hbase.IfacetableName - name of the tablerow - row keytimestamp - timestampattributes - Get attributesIOErrorpublic List<TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,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 List<TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
Hbase.IfacegetRows in interface Hbase.IfacetableName - name of tablerows - row keysattributes - Get attributesIOErrorpublic List<TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,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 List<TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
Hbase.IfacegetRowsTs in interface Hbase.IfacetableName - name of the tablerows - row keystimestamp - timestampattributes - Get attributesIOErrorpublic List<TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,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(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,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(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,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(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,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(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,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(ByteBuffer in_tableName, 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(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(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument
Hbase.IfacemutateRow in interface Hbase.IfacetableName - name of tablerow - row keymutations - list of mutation commandsattributes - Mutation attributesIOErrorIllegalArgumentpublic void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,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(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
Hbase.IfacemutateRows in interface Hbase.IfacetableName - name of tablerowBatches - list of row batchesattributes - Mutation attributesIOErrorIllegalArgumentorg.apache.thrift.TExceptionpublic void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
Hbase.IfacemutateRowsTs in interface Hbase.IfacetableName - name of tablerowBatches - list of row batchestimestamp - timestampattributes - Mutation attributesIOErrorIllegalArgumentorg.apache.thrift.TException@Deprecated public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long amount) throws IOError, IllegalArgument, org.apache.thrift.TException
Hbase.IfaceatomicIncrement in interface Hbase.IfacetableName - name of tablerow - row to incrementcolumn - name of columnamount - amount to increment byIOErrorIllegalArgumentorg.apache.thrift.TExceptionprotected long atomicIncrement(ByteBuffer tableName, ByteBuffer row, byte[] family, byte[] qualifier, long amount) throws IOError, IllegalArgument, org.apache.thrift.TException
IOErrorIllegalArgumentorg.apache.thrift.TExceptionpublic void scannerClose(int id)
throws IOError,
IllegalArgument
Hbase.IfacescannerClose in interface Hbase.Ifaceid - id of a scanner returned by scannerOpenIllegalArgument - if ScannerID is invalidIOErrorpublic 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 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(ByteBuffer tableName, TScan tScan, Map<ByteBuffer,ByteBuffer> attributes) throws IOError
Hbase.IfacescannerOpenWithScan in interface Hbase.IfacetableName - name of tabletScan - Scan instanceattributes - Scan attributesIOErrorpublic int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,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(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.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 attributesIOErrororg.apache.thrift.TExceptionpublic int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.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 attributesIOErrororg.apache.thrift.TExceptionpublic int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.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 attributesIOErrororg.apache.thrift.TExceptionpublic int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.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 attributesIOErrororg.apache.thrift.TExceptionpublic Map<ByteBuffer,ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
Hbase.IfacegetColumnDescriptors in interface Hbase.IfacetableName - table nameIOErrororg.apache.thrift.TExceptionpublic List<TCell> getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws IOError
Hbase.IfacegetRowOrBefore in interface Hbase.IfacetableName - name of tablerow - row keyfamily - column nameIOErrorpublic TRegionInfo getRegionInfo(ByteBuffer searchRow) throws IOError
Hbase.IfacegetRegionInfo in interface Hbase.IfacesearchRow - row keyIOErrorpublic void increment(TIncrement tincrement) throws IOError, org.apache.thrift.TException
Hbase.Ifaceincrement in interface Hbase.Ifacetincrement - The single increment to applyIOErrororg.apache.thrift.TExceptionpublic void incrementRows(List<TIncrement> tincrements) throws IOError, org.apache.thrift.TException
incrementRows in interface Hbase.IfaceIOErrororg.apache.thrift.TExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.