|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface Hbase.Iface
| Method Summary | |
|---|---|
long |
atomicIncrement(byte[] tableName,
byte[] row,
byte[] column,
long value)
Atomically increment the column value specified. |
void |
compact(byte[] tableNameOrRegionName)
|
void |
createTable(byte[] tableName,
List<ColumnDescriptor> columnFamilies)
Create a table with the specified column families. |
void |
deleteAll(byte[] tableName,
byte[] row,
byte[] column)
Delete all cells that match the passed row and column. |
void |
deleteAllRow(byte[] tableName,
byte[] row)
Completely delete the row's cells. |
void |
deleteAllRowTs(byte[] tableName,
byte[] row,
long timestamp)
Completely delete the row's cells marked with a timestamp equal-to or older than the passed timestamp. |
void |
deleteAllTs(byte[] tableName,
byte[] row,
byte[] column,
long timestamp)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp. |
void |
deleteTable(byte[] tableName)
Deletes a table |
void |
disableTable(byte[] 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(byte[] tableName)
Brings a table on-line (enables it) |
List<TCell> |
get(byte[] tableName,
byte[] row,
byte[] column)
Get a single TCell for the specified table, row, and column at the latest timestamp. |
Map<byte[],ColumnDescriptor> |
getColumnDescriptors(byte[] tableName)
List all the column families assoicated with a table. |
List<TRowResult> |
getRow(byte[] tableName,
byte[] row)
Get all the data for the specified table and row at the latest timestamp. |
List<TRowResult> |
getRowTs(byte[] tableName,
byte[] row,
long timestamp)
Get all the data for the specified table and row at the specified timestamp. |
List<TRowResult> |
getRowWithColumns(byte[] tableName,
byte[] row,
List<byte[]> columns)
Get the specified columns for the specified table and row at the latest timestamp. |
List<TRowResult> |
getRowWithColumnsTs(byte[] tableName,
byte[] row,
List<byte[]> columns,
long timestamp)
Get the specified columns for the specified table and row at the specified timestamp. |
List<byte[]> |
getTableNames()
List all the userspace tables. |
List<TRegionInfo> |
getTableRegions(byte[] tableName)
List the regions associated with a table. |
List<TCell> |
getVer(byte[] tableName,
byte[] row,
byte[] column,
int numVersions)
Get the specified number of versions for the specified table, row, and column. |
List<TCell> |
getVerTs(byte[] tableName,
byte[] row,
byte[] column,
long timestamp,
int numVersions)
Get the specified number of versions for the specified table, row, and column. |
boolean |
isTableEnabled(byte[] tableName)
|
void |
majorCompact(byte[] tableNameOrRegionName)
|
void |
mutateRow(byte[] tableName,
byte[] row,
List<Mutation> mutations)
Apply a series of mutations (updates/deletes) to a row in a single transaction. |
void |
mutateRows(byte[] tableName,
List<BatchMutation> rowBatches)
Apply a series of batches (each a series of mutations on a single row) in a single transaction. |
void |
mutateRowsTs(byte[] tableName,
List<BatchMutation> rowBatches,
long timestamp)
Apply a series of batches (each a series of mutations on a single row) in a single transaction. |
void |
mutateRowTs(byte[] tableName,
byte[] row,
List<Mutation> mutations,
long timestamp)
Apply a series of mutations (updates/deletes) to a row in a single transaction. |
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(byte[] tableName,
byte[] startRow,
List<byte[]> columns)
Get a scanner on the current table starting at the specified row and ending at the last row in the table. |
int |
scannerOpenTs(byte[] tableName,
byte[] startRow,
List<byte[]> columns,
long timestamp)
Get a scanner on the current table starting at the specified row and ending at the last row in the table. |
int |
scannerOpenWithPrefix(byte[] tableName,
byte[] startAndPrefix,
List<byte[]> columns)
Open a scanner for a given prefix. |
int |
scannerOpenWithStop(byte[] tableName,
byte[] startRow,
byte[] stopRow,
List<byte[]> columns)
Get a scanner on the current table starting and stopping at the specified rows. |
int |
scannerOpenWithStopTs(byte[] tableName,
byte[] startRow,
byte[] stopRow,
List<byte[]> columns,
long timestamp)
Get a scanner on the current table starting and stopping at the specified rows. |
| Method Detail |
|---|
void enableTable(byte[] tableName)
throws IOError,
org.apache.thrift.TException
tableName - name of the table
IOError
org.apache.thrift.TException
void disableTable(byte[] tableName)
throws IOError,
org.apache.thrift.TException
tableName - name of the table
IOError
org.apache.thrift.TException
boolean isTableEnabled(byte[] tableName)
throws IOError,
org.apache.thrift.TException
tableName - name of the table to check
IOError
org.apache.thrift.TException
void compact(byte[] tableNameOrRegionName)
throws IOError,
org.apache.thrift.TException
IOError
org.apache.thrift.TException
void majorCompact(byte[] tableNameOrRegionName)
throws IOError,
org.apache.thrift.TException
IOError
org.apache.thrift.TException
List<byte[]> getTableNames()
throws IOError,
org.apache.thrift.TException
IOError
org.apache.thrift.TException
Map<byte[],ColumnDescriptor> getColumnDescriptors(byte[] tableName)
throws IOError,
org.apache.thrift.TException
tableName - table name
IOError
org.apache.thrift.TException
List<TRegionInfo> getTableRegions(byte[] tableName)
throws IOError,
org.apache.thrift.TException
tableName - table name
IOError
org.apache.thrift.TException
void createTable(byte[] tableName,
List<ColumnDescriptor> columnFamilies)
throws IOError,
IllegalArgument,
AlreadyExists,
org.apache.thrift.TException
tableName - name of table to createcolumnFamilies - list of column family descriptors
IllegalArgument - if an input parameter is invalid
AlreadyExists - if the table name already exists
IOError
org.apache.thrift.TException
void deleteTable(byte[] tableName)
throws IOError,
org.apache.thrift.TException
tableName - name of table to delete
IOError - if table doesn't exist on server or there was some other
problem
org.apache.thrift.TException
List<TCell> get(byte[] tableName,
byte[] row,
byte[] column)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - row keycolumn - column name
IOError
org.apache.thrift.TException
List<TCell> getVer(byte[] tableName,
byte[] row,
byte[] column,
int numVersions)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - row keycolumn - column namenumVersions - number of versions to retrieve
IOError
org.apache.thrift.TException
List<TCell> getVerTs(byte[] tableName,
byte[] row,
byte[] column,
long timestamp,
int numVersions)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - row keycolumn - column nametimestamp - timestampnumVersions - number of versions to retrieve
IOError
org.apache.thrift.TException
List<TRowResult> getRow(byte[] tableName,
byte[] row)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - row key
IOError
org.apache.thrift.TException
List<TRowResult> getRowWithColumns(byte[] tableName,
byte[] row,
List<byte[]> columns)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - row keycolumns - List of columns to return, null for all columns
IOError
org.apache.thrift.TException
List<TRowResult> getRowTs(byte[] tableName,
byte[] row,
long timestamp)
throws IOError,
org.apache.thrift.TException
tableName - name of the tablerow - row keytimestamp - timestamp
IOError
org.apache.thrift.TException
List<TRowResult> getRowWithColumnsTs(byte[] tableName,
byte[] row,
List<byte[]> columns,
long timestamp)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - row keycolumns - List of columns to return, null for all columnstimestamp -
IOError
org.apache.thrift.TException
void mutateRow(byte[] tableName,
byte[] row,
List<Mutation> mutations)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
tableName - name of tablerow - row keymutations - list of mutation commands
IOError
IllegalArgument
org.apache.thrift.TException
void mutateRowTs(byte[] tableName,
byte[] row,
List<Mutation> mutations,
long timestamp)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
tableName - name of tablerow - row keymutations - list of mutation commandstimestamp - timestamp
IOError
IllegalArgument
org.apache.thrift.TException
void mutateRows(byte[] tableName,
List<BatchMutation> rowBatches)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
tableName - name of tablerowBatches - list of row batches
IOError
IllegalArgument
org.apache.thrift.TException
void mutateRowsTs(byte[] tableName,
List<BatchMutation> rowBatches,
long timestamp)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
tableName - name of tablerowBatches - list of row batchestimestamp - timestamp
IOError
IllegalArgument
org.apache.thrift.TException
long atomicIncrement(byte[] tableName,
byte[] row,
byte[] column,
long value)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
tableName - name of tablerow - row to incrementcolumn - name of columnvalue - amount to increment by
IOError
IllegalArgument
org.apache.thrift.TException
void deleteAll(byte[] tableName,
byte[] row,
byte[] column)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - Row to updatecolumn - name of column whose value is to be deleted
IOError
org.apache.thrift.TException
void deleteAllTs(byte[] tableName,
byte[] row,
byte[] column,
long timestamp)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - Row to updatecolumn - name of column whose value is to be deletedtimestamp - timestamp
IOError
org.apache.thrift.TException
void deleteAllRow(byte[] tableName,
byte[] row)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - key of the row to be completely deleted.
IOError
org.apache.thrift.TException
void deleteAllRowTs(byte[] tableName,
byte[] row,
long timestamp)
throws IOError,
org.apache.thrift.TException
tableName - name of tablerow - key of the row to be completely deleted.timestamp - timestamp
IOError
org.apache.thrift.TException
int scannerOpen(byte[] tableName,
byte[] startRow,
List<byte[]> columns)
throws IOError,
org.apache.thrift.TException
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.
IOError
org.apache.thrift.TException
int scannerOpenWithStop(byte[] tableName,
byte[] startRow,
byte[] stopRow,
List<byte[]> columns)
throws IOError,
org.apache.thrift.TException
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.
IOError
org.apache.thrift.TException
int scannerOpenWithPrefix(byte[] tableName,
byte[] startAndPrefix,
List<byte[]> columns)
throws IOError,
org.apache.thrift.TException
tableName - name of tablestartAndPrefix - the prefix (and thus start row) of the keys you wantcolumns - the columns you want returned
IOError
org.apache.thrift.TException
int scannerOpenTs(byte[] tableName,
byte[] startRow,
List<byte[]> columns,
long timestamp)
throws IOError,
org.apache.thrift.TException
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 - timestamp
IOError
org.apache.thrift.TException
int scannerOpenWithStopTs(byte[] tableName,
byte[] startRow,
byte[] stopRow,
List<byte[]> columns,
long timestamp)
throws IOError,
org.apache.thrift.TException
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 - timestamp
IOError
org.apache.thrift.TException
List<TRowResult> scannerGet(int id)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
id - id of a scanner returned by scannerOpen
IllegalArgument - if ScannerID is invalid
NotFound - when the scanner reaches the end
IOError
org.apache.thrift.TException
List<TRowResult> scannerGetList(int id,
int nbRows)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
id - id of a scanner returned by scannerOpennbRows - number of results to return
IllegalArgument - if ScannerID is invalid
NotFound - when the scanner reaches the end
IOError
org.apache.thrift.TException
void scannerClose(int id)
throws IOError,
IllegalArgument,
org.apache.thrift.TException
id - id of a scanner returned by scannerOpen
IllegalArgument - if ScannerID is invalid
IOError
org.apache.thrift.TException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||