@InterfaceAudience.Private public class ThriftHBaseServiceHandler extends HBaseServiceHandler implements org.apache.hadoop.hbase.thrift.generated.Hbase.Iface
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ThriftHBaseServiceHandler.IOErrorWithCause  | 
protected static class  | 
ThriftHBaseServiceHandler.ResultScannerWrapper  | 
| Modifier and Type | Field and Description | 
|---|---|
(package private) IncrementCoalescer | 
coalescer  | 
static int | 
HREGION_VERSION  | 
private static org.slf4j.Logger | 
LOG  | 
private int | 
nextScannerId  | 
private HashMap<Integer,ThriftHBaseServiceHandler.ResultScannerWrapper> | 
scannerMap  | 
CLEANUP_INTERVAL, conf, connectionCache, MAX_IDLETIME, metrics| Modifier | Constructor and Description | 
|---|---|
protected  | 
ThriftHBaseServiceHandler(org.apache.hadoop.conf.Configuration c,
                         UserProvider userProvider)  | 
| Modifier and Type | Method and Description | 
|---|---|
private static void | 
addAttributes(OperationWithAttributes op,
             Map<ByteBuffer,ByteBuffer> attributes)
Adds all the attributes into the Operation object 
 | 
protected int | 
addScanner(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 long | 
atomicIncrement(ByteBuffer tableName,
               ByteBuffer row,
               byte[] family,
               byte[] qualifier,
               long amount)  | 
long | 
atomicIncrement(ByteBuffer tableName,
               ByteBuffer row,
               ByteBuffer column,
               long amount)
Atomically increment the column value specified. 
 | 
boolean | 
checkAndPut(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 void | 
closeTable(Table table)  | 
void | 
compact(ByteBuffer tableNameOrRegionName)  | 
void | 
createTable(ByteBuffer in_tableName,
           List<org.apache.hadoop.hbase.thrift.generated.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<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. 
 | 
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.IOError | 
getIOError(Throwable throwable)  | 
org.apache.hadoop.hbase.thrift.generated.TRegionInfo | 
getRegionInfo(ByteBuffer searchRow)
Get the regininfo for the specified row. 
 | 
private Result | 
getReverseScanResult(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. 
 | 
private ThriftHBaseServiceHandler.ResultScannerWrapper | 
getScanner(int id)
Returns the scanner associated with the specified ID. 
 | 
private static TableName | 
getTableName(ByteBuffer buffer)  | 
List<ByteBuffer> | 
getTableNames()
List all the userspace tables. 
 | 
List<org.apache.hadoop.hbase.thrift.generated.TRegionInfo> | 
getTableRegions(ByteBuffer tableName)
List the regions associated with a table. 
 | 
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. 
 | 
void | 
increment(org.apache.hadoop.hbase.thrift.generated.TIncrement tincrement)
Increment a cell by the ammount. 
 | 
void | 
incrementRows(List<org.apache.hadoop.hbase.thrift.generated.TIncrement> tincrements)  | 
boolean | 
isTableEnabled(ByteBuffer tableName)  | 
void | 
majorCompact(ByteBuffer tableNameOrRegionName)  | 
void | 
mutateRow(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. 
 | 
void | 
mutateRows(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. 
 | 
void | 
mutateRowsTs(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. 
 | 
void | 
mutateRowTs(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 ThriftHBaseServiceHandler.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<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. 
 | 
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,
                   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. 
 | 
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. 
 | 
getAdmin, getTable, getTable, initMetrics, setEffectiveUserprivate static final org.slf4j.Logger LOG
public static final int HREGION_VERSION
private int nextScannerId
private HashMap<Integer,ThriftHBaseServiceHandler.ResultScannerWrapper> scannerMap
IncrementCoalescer coalescer
protected ThriftHBaseServiceHandler(org.apache.hadoop.conf.Configuration c, UserProvider userProvider) throws IOException
IOExceptionbyte[][] getAllColumns(Table table) throws IOException
table - tableIOExceptionprotected int addScanner(ResultScanner scanner, boolean sortColumns)
scanner - the ResultScanner to addprivate ThriftHBaseServiceHandler.ResultScannerWrapper getScanner(int id)
id - the ID of the scanner to getprivate ThriftHBaseServiceHandler.ResultScannerWrapper removeScanner(int id)
id - the ID of the scanner to removepublic void enableTable(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceenableTable in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of the tableorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic void disableTable(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacedisableTable in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of the tableorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic boolean isTableEnabled(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError
isTableEnabled in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of the table to checkorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic void compact(ByteBuffer tableNameOrRegionName) throws org.apache.hadoop.hbase.thrift.generated.IOError
compact in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic void majorCompact(ByteBuffer tableNameOrRegionName) throws org.apache.hadoop.hbase.thrift.generated.IOError
majorCompact in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic List<ByteBuffer> getTableNames() throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetTableNames in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic List<org.apache.hadoop.hbase.thrift.generated.TRegionInfo> getTableRegions(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetTableRegions in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - table nameorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceget in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keycolumn - column nameattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorprotected 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.IOError
get(ByteBuffer, ByteBuffer, ByteBuffer, Map)) interface IS consistent in that the
 column is parse like normal.org.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetVer in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keycolumn - column namenumVersions - number of versions to retrieveattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
getVer(ByteBuffer, ByteBuffer, ByteBuffer, int, Map) with a column value
 that lacks a ':'.org.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetVerTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keycolumn - column nametimestamp - timestampnumVersions - number of versions to retrieveattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorprotected 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.IOError
getVerTs(ByteBuffer, ByteBuffer, ByteBuffer, long, int, Map)) interface IS
 consistent in that the column is parse like normal.org.apache.hadoop.hbase.thrift.generated.IOErrorpublic List<org.apache.hadoop.hbase.thrift.generated.TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRow in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keyattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRowWithColumns in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keycolumns - List of columns to return, null for all columnsattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRowTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of the tablerow - row keytimestamp - timestampattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRowWithColumnsTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keycolumns - List of columns to return, null for all columnsattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRows in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerows - row keysattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRowsWithColumns in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerows - row keyscolumns - List of columns to return, null for all columnsattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRowsTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of the tablerows - row keystimestamp - timestampattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRowsWithColumnsTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerows - row keyscolumns - List of columns to return, null for all columnsattributes - Get attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacedeleteAll in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - Row to updatecolumn - name of column whose value is to be deletedattributes - Delete attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacedeleteAllTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - Row to updatecolumn - name of column whose value is to be deletedtimestamp - timestampattributes - Delete attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacedeleteAllRow in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - key of the row to be completely deleted.attributes - Delete attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacedeleteAllRowTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - key of the row to be completely deleted.timestamp - timestampattributes - Delete attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacecreateTable in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifacein_tableName - name of table to createcolumnFamilies - list of column family descriptorsorg.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.IOErrorprivate static TableName getTableName(ByteBuffer buffer)
public void deleteTable(ByteBuffer in_tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacedeleteTable in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifacein_tableName - name of table to deleteorg.apache.hadoop.hbase.thrift.generated.IOError - if table doesn't exist on server or there was some other
 problempublic 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.IllegalArgument
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacemutateRow in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keymutations - list of mutation commandsattributes - Mutation attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentpublic 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.IllegalArgument
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacemutateRowTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row keymutations - list of mutation commandstimestamp - timestampattributes - Mutation attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentpublic 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.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacemutateRows in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerowBatches - list of row batchesattributes - Mutation attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TExceptionpublic 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.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacemutateRowsTs in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerowBatches - list of row batchestimestamp - timestampattributes - Mutation attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TExceptionpublic 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
org.apache.hadoop.hbase.thrift.generated.Hbase.IfaceatomicIncrement in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablerow - row to incrementcolumn - name of columnamount - amount to increment byorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TExceptionprotected 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
org.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TExceptionpublic void scannerClose(int id) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.hadoop.hbase.thrift.generated.IllegalArgument
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerClose in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceid - id of a scanner returned by scannerOpenorg.apache.hadoop.hbase.thrift.generated.IllegalArgument - if ScannerID is invalidorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerGetList in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceid - id of a scanner returned by scannerOpennbRows - number of results to returnorg.apache.hadoop.hbase.thrift.generated.IllegalArgument - if ScannerID is invalidorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerGet in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceid - id of a scanner returned by scannerOpenorg.apache.hadoop.hbase.thrift.generated.IllegalArgument - if ScannerID is invalidorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic int scannerOpenWithScan(ByteBuffer tableName, org.apache.hadoop.hbase.thrift.generated.TScan tScan, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerOpenWithScan in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tabletScan - Scan instanceattributes - Scan attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerOpen in interface org.apache.hadoop.hbase.thrift.generated.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 attributesorg.apache.hadoop.hbase.thrift.generated.IOErrorpublic 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.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerOpenWithStop in interface org.apache.hadoop.hbase.thrift.generated.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 attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionpublic int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerOpenWithPrefix in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - name of tablestartAndPrefix - the prefix (and thus start row) of the keys you wantcolumns - the columns you want returnedattributes - Scan attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionpublic 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.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerOpenTs in interface org.apache.hadoop.hbase.thrift.generated.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 attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionpublic 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.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacescannerOpenWithStopTs in interface org.apache.hadoop.hbase.thrift.generated.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 attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionpublic Map<ByteBuffer,org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetColumnDescriptors in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacetableName - table nameorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionprivate void closeTable(Table table) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.IOErrorpublic org.apache.hadoop.hbase.thrift.generated.TRegionInfo getRegionInfo(ByteBuffer searchRow) throws org.apache.hadoop.hbase.thrift.generated.IOError
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacegetRegionInfo in interface org.apache.hadoop.hbase.thrift.generated.Hbase.IfacesearchRow - row keyorg.apache.hadoop.hbase.thrift.generated.IOErrorprivate Result getReverseScanResult(byte[] tableName, byte[] row, byte[] family) throws IOException
IOExceptionpublic void increment(org.apache.hadoop.hbase.thrift.generated.TIncrement tincrement) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceincrement in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifacetincrement - The single increment to applyorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionpublic void incrementRows(List<org.apache.hadoop.hbase.thrift.generated.TIncrement> tincrements) throws org.apache.hadoop.hbase.thrift.generated.IOError, org.apache.thrift.TException
incrementRows in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionpublic 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
org.apache.hadoop.hbase.thrift.generated.Hbase.Ifaceappend in interface org.apache.hadoop.hbase.thrift.generated.Hbase.Ifacetappend - The single append operation to applyorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.thrift.TExceptionpublic 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.TException
org.apache.hadoop.hbase.thrift.generated.Hbase.IfacecheckAndPut in interface org.apache.hadoop.hbase.thrift.generated.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 attributesorg.apache.hadoop.hbase.thrift.generated.IOErrororg.apache.hadoop.hbase.thrift.generated.IllegalArgumentorg.apache.thrift.TExceptionprivate static org.apache.hadoop.hbase.thrift.generated.IOError getIOError(Throwable throwable)
private static void addAttributes(OperationWithAttributes op, Map<ByteBuffer,ByteBuffer> attributes)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.