|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Hbase.Iface
Method Summary | |
---|---|
void |
createTable(byte[] tableName,
ArrayList<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 |
byte[] |
get(byte[] tableName,
byte[] row,
byte[] column)
Get a single value for the specified table, row, and column at the latest timestamp. |
AbstractMap<byte[],ColumnDescriptor> |
getColumnDescriptors(byte[] tableName)
List all the column families assoicated with a table. |
AbstractMap<byte[],byte[]> |
getRow(byte[] tableName,
byte[] row)
Get all the data for the specified table and row at the latest timestamp. |
AbstractMap<byte[],byte[]> |
getRowTs(byte[] tableName,
byte[] row,
long timestamp)
Get all the data for the specified table and row at the specified timestamp. |
ArrayList<byte[]> |
getTableNames()
List all the userspace tables. |
ArrayList<RegionDescriptor> |
getTableRegions(byte[] tableName)
List the regions associated with a table. |
ArrayList<byte[]> |
getVer(byte[] tableName,
byte[] row,
byte[] column,
int numVersions)
Get the specified number of versions for the specified table, row, and column. |
ArrayList<byte[]> |
getVerTs(byte[] tableName,
byte[] row,
byte[] column,
long timestamp,
int numVersions)
Get the specified number of versions for the specified table, row, and column. |
void |
mutateRow(byte[] tableName,
byte[] row,
ArrayList<Mutation> mutations)
Apply a series of mutations (updates/deletes) to a row in a single transaction. |
void |
mutateRows(byte[] tableName,
ArrayList<BatchMutation> rowBatches)
Apply a series of batches (each a series of mutations on a single row) in a single transaction. |
void |
mutateRowsTs(byte[] tableName,
ArrayList<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,
ArrayList<Mutation> mutations,
long timestamp)
Apply a series of mutations (updates/deletes) to a row in a single transaction. |
void |
put(byte[] tableName,
byte[] row,
byte[] column,
byte[] value)
Put a single value at the specified table, row, and column. |
void |
scannerClose(int id)
Closes the server-state associated with an open scanner. |
ScanEntry |
scannerGet(int id)
Returns the scanner's current row value and advances to the next row in the table. |
int |
scannerOpen(byte[] tableName,
byte[] startRow,
ArrayList<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,
ArrayList<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 |
scannerOpenWithStop(byte[] tableName,
byte[] startRow,
byte[] stopRow,
ArrayList<byte[]> columns)
Get a scanner on the current table starting and stopping at the specified rows. |
int |
scannerOpenWithStopTs(byte[] tableName,
byte[] startRow,
byte[] stopRow,
ArrayList<byte[]> columns,
long timestamp)
Get a scanner on the current table starting and stopping at the specified rows. |
Method Detail |
---|
ArrayList<byte[]> getTableNames() throws IOError, com.facebook.thrift.TException
IOError
com.facebook.thrift.TException
AbstractMap<byte[],ColumnDescriptor> getColumnDescriptors(byte[] tableName) throws IOError, com.facebook.thrift.TException
tableName
- table name
IOError
com.facebook.thrift.TException
ArrayList<RegionDescriptor> getTableRegions(byte[] tableName) throws IOError, com.facebook.thrift.TException
tableName
- table name
IOError
com.facebook.thrift.TException
void createTable(byte[] tableName, ArrayList<ColumnDescriptor> columnFamilies) throws IOError, IllegalArgument, AlreadyExists, com.facebook.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
com.facebook.thrift.TException
void deleteTable(byte[] tableName) throws IOError, NotFound, com.facebook.thrift.TException
tableName
- name of table to delete
NotFound
- if table doesn't exist on server
IOError
com.facebook.thrift.TException
byte[] get(byte[] tableName, byte[] row, byte[] column) throws IOError, NotFound, com.facebook.thrift.TException
tableName
- name of tablerow
- row keycolumn
- column name
IOError
NotFound
com.facebook.thrift.TException
ArrayList<byte[]> getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, com.facebook.thrift.TException
tableName
- name of tablerow
- row keycolumn
- column namenumVersions
- number of versions to retrieve
IOError
NotFound
com.facebook.thrift.TException
ArrayList<byte[]> getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, com.facebook.thrift.TException
tableName
- name of tablerow
- row keycolumn
- column nametimestamp
- timestampnumVersions
- number of versions to retrieve
IOError
NotFound
com.facebook.thrift.TException
AbstractMap<byte[],byte[]> getRow(byte[] tableName, byte[] row) throws IOError, com.facebook.thrift.TException
tableName
- name of tablerow
- row key
IOError
com.facebook.thrift.TException
AbstractMap<byte[],byte[]> getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, com.facebook.thrift.TException
tableName
- of tablerow
- row keytimestamp
- timestamp
IOError
com.facebook.thrift.TException
void put(byte[] tableName, byte[] row, byte[] column, byte[] value) throws IOError, IllegalArgument, com.facebook.thrift.TException
mutateRow(byte[], byte[], java.util.ArrayList)
and/or
mutateRowTs(byte[], byte[], java.util.ArrayList, long)
tableName
- name of tablerow
- row keycolumn
- column name
IOError
IllegalArgument
com.facebook.thrift.TException
void mutateRow(byte[] tableName, byte[] row, ArrayList<Mutation> mutations) throws IOError, IllegalArgument, com.facebook.thrift.TException
tableName
- name of tablerow
- row keymutations
- list of mutation commands
IOError
IllegalArgument
com.facebook.thrift.TException
void mutateRowTs(byte[] tableName, byte[] row, ArrayList<Mutation> mutations, long timestamp) throws IOError, IllegalArgument, com.facebook.thrift.TException
tableName
- name of tablerow
- row keymutations
- list of mutation commandstimestamp
- timestamp
IOError
IllegalArgument
com.facebook.thrift.TException
void mutateRows(byte[] tableName, ArrayList<BatchMutation> rowBatches) throws IOError, IllegalArgument, com.facebook.thrift.TException
tableName
- name of tablerowBatches
- list of row batches
IOError
IllegalArgument
com.facebook.thrift.TException
void mutateRowsTs(byte[] tableName, ArrayList<BatchMutation> rowBatches, long timestamp) throws IOError, IllegalArgument, com.facebook.thrift.TException
tableName
- name of tablerowBatches
- list of row batchestimestamp
- timestamp
IOError
IllegalArgument
com.facebook.thrift.TException
void deleteAll(byte[] tableName, byte[] row, byte[] column) throws IOError, com.facebook.thrift.TException
tableName
- name of tablerow
- Row to updatecolumn
- name of column whose value is to be deleted
IOError
com.facebook.thrift.TException
void deleteAllTs(byte[] tableName, byte[] row, byte[] column, long timestamp) throws IOError, com.facebook.thrift.TException
tableName
- name of tablerow
- Row to updatecolumn
- name of column whose value is to be deletedtimestamp
- timestamp
IOError
com.facebook.thrift.TException
void deleteAllRow(byte[] tableName, byte[] row) throws IOError, com.facebook.thrift.TException
tableName
- name of tablerow
- key of the row to be completely deleted.
IOError
com.facebook.thrift.TException
void deleteAllRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, com.facebook.thrift.TException
tableName
- name of tablerow
- key of the row to be completely deleted.timestamp
- timestamp
IOError
com.facebook.thrift.TException
int scannerOpen(byte[] tableName, byte[] startRow, ArrayList<byte[]> columns) throws IOError, com.facebook.thrift.TException
columns
- columns to scan. If column name is a column family, all
columns of the specified column family are returned. Its also possible
to pass a regex in the column qualifier.tableName
- name of tablestartRow
- starting row in table to scan. send "" (empty string) to
start at the first row.
IOError
com.facebook.thrift.TException
int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList<byte[]> columns) throws IOError, com.facebook.thrift.TException
columns
- columns to scan. If column name is a column family, all
columns of the specified column family are returned. Its also possible
to pass a regex in the column qualifier.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 results
IOError
com.facebook.thrift.TException
int scannerOpenTs(byte[] tableName, byte[] startRow, ArrayList<byte[]> columns, long timestamp) throws IOError, com.facebook.thrift.TException
columns
- columns to scan. If column name is a column family, all
columns of the specified column family are returned. Its also possible
to pass a regex in the column qualifier.tableName
- name of tablestartRow
- starting row in table to scan. send "" (empty string) to
start at the first row.timestamp
- timestamp
IOError
com.facebook.thrift.TException
int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList<byte[]> columns, long timestamp) throws IOError, com.facebook.thrift.TException
columns
- columns to scan. If column name is a column family, all
columns of the specified column family are returned. Its also possible
to pass a regex in the column qualifier.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 resultstimestamp
- timestamp
IOError
com.facebook.thrift.TException
ScanEntry scannerGet(int id) throws IOError, IllegalArgument, NotFound, com.facebook.thrift.TException
id
- id of a scanner returned by scannerOpen
IllegalArgument
- if ScannerID is invalid
NotFound
- when the scanner reaches the end
IOError
com.facebook.thrift.TException
void scannerClose(int id) throws IOError, IllegalArgument, com.facebook.thrift.TException
id
- id of a scanner returned by scannerOpen
IllegalArgument
- if ScannerID is invalid
IOError
com.facebook.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |