|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.HTable
public class HTable
Used to communicate with a single HBase table
Nested Class Summary | |
---|---|
protected class |
HTable.ClientScanner
Implements the scanner interface for the HBase client. |
Field Summary | |
---|---|
protected int |
scannerCaching
|
protected int |
scannerTimeout
|
Constructor Summary | |
---|---|
HTable(byte[] tableName)
Creates an object to access a HBase table |
|
HTable(HBaseConfiguration conf,
byte[] tableName)
Creates an object to access a HBase table |
|
HTable(HBaseConfiguration conf,
String tableName)
Creates an object to access a HBase table |
|
HTable(String tableName)
Creates an object to access a HBase table |
Method Summary | |
---|---|
boolean |
checkAndSave(BatchUpdate batchUpdate,
HbaseMapWritable<byte[],byte[]> expectedValues,
RowLock rl)
Atomically checks if a row's values match the expectedValues. |
void |
close()
Release held resources |
void |
commit(BatchUpdate batchUpdate)
Commit a BatchUpdate to the table. |
void |
commit(BatchUpdate batchUpdate,
RowLock rl)
Commit a BatchUpdate to the table using existing row lock. |
void |
commit(List<BatchUpdate> batchUpdates)
Commit a List of BatchUpdate to the table. |
void |
deleteAll(byte[] row)
Completely delete the row's cells. |
void |
deleteAll(byte[] row,
byte[] column)
Completely delete the row's cells. |
void |
deleteAll(byte[] row,
byte[] column,
long ts)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp. |
void |
deleteAll(byte[] row,
byte[] column,
long ts,
RowLock rl)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp, using an existing row lock. |
void |
deleteAll(byte[] row,
long ts)
Completely delete the row's cells. |
void |
deleteAll(String row)
Completely delete the row's cells. |
void |
deleteAll(String row,
long ts)
Completely delete the row's cells. |
void |
deleteAll(String row,
String column)
Delete all cells that match the passed row and column. |
void |
deleteAll(String row,
String column,
long ts)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp. |
void |
deleteAllByRegex(byte[] row,
String colRegex,
long ts)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp. |
void |
deleteAllByRegex(byte[] row,
String colRegex,
long ts,
RowLock rl)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp, using an existing row lock. |
void |
deleteAllByRegex(String row,
String colRegex)
Delete all cells that match the passed row and column. |
void |
deleteAllByRegex(String row,
String colRegex,
long ts)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp. |
void |
deleteFamily(byte[] row,
byte[] family)
Delete all cells for a row with matching column family at all timestamps. |
void |
deleteFamily(byte[] row,
byte[] family,
long timestamp)
Delete all cells for a row with matching column family with timestamps less than or equal to timestamp. |
void |
deleteFamily(byte[] row,
byte[] family,
long timestamp,
RowLock rl)
Delete all cells for a row with matching column family with timestamps less than or equal to timestamp, using existing row lock. |
void |
deleteFamily(String row,
String family)
Delete all cells for a row with matching column family at all timestamps. |
void |
deleteFamily(String row,
String family,
long timestamp)
Delete all cells for a row with matching column family with timestamps less than or equal to timestamp. |
void |
deleteFamilyByRegex(byte[] row,
String familyRegex)
Delete all cells for a row with matching column family regex at all timestamps. |
void |
deleteFamilyByRegex(byte[] row,
String familyRegex,
long timestamp)
Delete all cells for a row with matching column family regex with timestamps less than or equal to timestamp. |
void |
deleteFamilyByRegex(byte[] row,
String familyRegex,
long timestamp,
RowLock r1)
Delete all cells for a row with matching column family regex with timestamps less than or equal to timestamp, using existing row lock. |
void |
deleteFamilyByRegex(String row,
String familyRegex)
Delete all cells for a row with matching column family regex at all timestamps. |
void |
deleteFamilyByRegex(String row,
String familyRegex,
long timestamp)
Delete all cells for a row with matching column family regex with timestamps less than or equal to timestamp. |
boolean |
exists(byte[] row)
Test for the existence of a row in the table. |
boolean |
exists(byte[] row,
byte[] column)
Test for the existence of a row and column in the table. |
boolean |
exists(byte[] row,
byte[] column,
long timestamp)
Test for the existence of a coordinate in the table. |
boolean |
exists(byte[] row,
byte[] column,
long timestamp,
RowLock rl)
Test for the existence of a coordinate in the table. |
void |
flushCommits()
Commit to the table the buffer of BatchUpdate. |
Cell |
get(byte[] row,
byte[] column)
Get a single value for the specified row and column |
Cell[] |
get(byte[] row,
byte[] column,
int numVersions)
Get the specified number of versions of the specified row and column |
Cell[] |
get(byte[] row,
byte[] column,
long timestamp,
int numVersions)
Get the specified number of versions of the specified row and column with the specified timestamp. |
Cell |
get(String row,
String column)
Get a single value for the specified row and column |
Cell[] |
get(String row,
String column,
int numVersions)
Get a single value for the specified row and column |
Cell[] |
get(String row,
String column,
long timestamp,
int numVersions)
Get the specified number of versions of the specified row and column with the specified timestamp. |
RowResult |
getClosestRowBefore(byte[] row,
byte[] columnFamily)
|
HConnection |
getConnection()
Used by unit tests and tools to do low-level manipulations. |
byte[][] |
getEndKeys()
Gets the ending row key for every region in the currently open table |
HRegionLocation |
getRegionLocation(byte[] row)
Find region location hosting passed row using cached info |
HRegionLocation |
getRegionLocation(String row)
Find region location hosting passed row using cached info |
Map<HRegionInfo,HServerAddress> |
getRegionsInfo()
Get all the regions and their address for this table |
RowResult |
getRow(byte[] row)
Get all the data for the specified row at the latest timestamp |
RowResult |
getRow(byte[] row,
byte[][] columns)
Get selected columns for the specified row at the latest timestamp |
RowResult |
getRow(byte[] row,
byte[][] columns,
int numVersions)
Get more than one version of selected columns for the specified row |
RowResult |
getRow(byte[] row,
byte[][] columns,
long ts)
Get selected columns for the specified row at a specified timestamp |
RowResult |
getRow(byte[] row,
byte[][] columns,
long ts,
int numVersions,
RowLock rl)
Get selected columns for the specified row at a specified timestamp using existing row lock. |
RowResult |
getRow(byte[] row,
int numVersions)
Get more than one version of all columns for the specified row |
RowResult |
getRow(byte[] row,
long ts)
Get all the data for the specified row at a specified timestamp |
RowResult |
getRow(byte[] row,
long timestamp,
int numVersions)
Get more than one version of all columns for the specified row at a specified timestamp |
RowResult |
getRow(String row)
Get all the data for the specified row at the latest timestamp |
RowResult |
getRow(String row,
int numVersions)
Get more than one version of all columns for the specified row |
RowResult |
getRow(String row,
long ts)
Get all the data for the specified row at a specified timestamp |
RowResult |
getRow(String row,
long ts,
int numVersions)
|
RowResult |
getRow(String row,
String[] columns)
Get selected columns for the specified row at the latest timestamp |
RowResult |
getRow(String row,
String[] columns,
int numVersions)
Get more than one version of selected columns for the specified row |
RowResult |
getRow(String row,
String[] columns,
long ts)
Get selected columns for the specified row at a specified timestamp |
RowResult |
getRow(String row,
String[] columns,
long timestamp,
int numVersions,
RowLock rowLock)
|
Scanner |
getScanner(byte[][] columns)
Get a scanner on the current table starting at first row. |
Scanner |
getScanner(byte[][] columns,
byte[] startRow)
Get a scanner on the current table starting at the specified row. |
Scanner |
getScanner(byte[][] columns,
byte[] startRow,
byte[] stopRow)
Get a scanner on the current table starting at the specified row and ending just before stopRow |
Scanner |
getScanner(byte[][] columns,
byte[] startRow,
byte[] stopRow,
long timestamp)
Get a scanner on the current table starting at the specified row and ending just before stopRow |
Scanner |
getScanner(byte[][] columns,
byte[] startRow,
long timestamp)
Get a scanner on the current table starting at the specified row. |
Scanner |
getScanner(byte[][] columns,
byte[] startRow,
long timestamp,
RowFilterInterface filter)
Get a scanner on the current table starting at the specified row. |
Scanner |
getScanner(byte[][] columns,
byte[] startRow,
RowFilterInterface filter)
Get a scanner on the current table starting at the specified row. |
Scanner |
getScanner(String[] columns)
Get a scanner on the current table starting at first row. |
Scanner |
getScanner(String[] columns,
String startRow)
Get a scanner on the current table starting at the specified row. |
Scanner |
getScanner(String[] columns,
String startRow,
long timestamp,
RowFilterInterface filter)
Get a scanner on the current table starting at the specified row. |
Scanner |
getScanner(String[] columns,
String startRow,
String stopRow,
long timestamp)
Get a scanner on the current table starting at the specified row and ending just before stopRow |
int |
getScannerCaching()
Get the number of rows for caching that will be passed to scanners |
Pair<byte[][],byte[][]> |
getStartEndKeys()
Gets the starting and ending row keys for every region in the currently open table |
byte[][] |
getStartKeys()
Gets the starting row key for every region in the currently open table |
HTableDescriptor |
getTableDescriptor()
|
byte[] |
getTableName()
|
ArrayList<BatchUpdate> |
getWriteBuffer()
Get the write buffer |
long |
getWriteBufferSize()
Get the maximum size in bytes of the write buffer for this HTable |
long |
incrementColumnValue(byte[] row,
byte[] column,
long amount)
|
boolean |
isAutoFlush()
Get the value of autoFlush. |
static boolean |
isTableEnabled(byte[] tableName)
|
static boolean |
isTableEnabled(HBaseConfiguration conf,
byte[] tableName)
|
static boolean |
isTableEnabled(HBaseConfiguration conf,
String tableName)
|
static boolean |
isTableEnabled(String tableName)
|
RowLock |
lockRow(byte[] row)
Obtain a row lock |
void |
setAutoFlush(boolean autoFlush)
Set if this instanciation of HTable will autoFlush |
void |
setScannerCaching(int scannerCaching)
Set the number of rows for caching that will be passed to scanners |
void |
setWriteBufferSize(long writeBufferSize)
Set the size of the buffer in bytes |
void |
unlockRow(RowLock rl)
Release a row lock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int scannerTimeout
protected int scannerCaching
Constructor Detail |
---|
public HTable(String tableName) throws IOException
tableName
- name of the table
IOException
public HTable(byte[] tableName) throws IOException
tableName
- name of the table
IOException
public HTable(HBaseConfiguration conf, String tableName) throws IOException
conf
- configuration objecttableName
- name of the table
IOException
public HTable(HBaseConfiguration conf, byte[] tableName) throws IOException
conf
- configuration objecttableName
- name of the table
IOException
Method Detail |
---|
public static boolean isTableEnabled(String tableName) throws IOException
tableName
- name of table to check
IOException
public static boolean isTableEnabled(byte[] tableName) throws IOException
tableName
- name of table to check
IOException
public static boolean isTableEnabled(HBaseConfiguration conf, String tableName) throws IOException
conf
- HBaseConfiguration objecttableName
- name of table to check
IOException
public static boolean isTableEnabled(HBaseConfiguration conf, byte[] tableName) throws IOException
conf
- HBaseConfiguration objecttableName
- name of table to check
IOException
public HRegionLocation getRegionLocation(String row) throws IOException
row
- Row to find.
IOException
public HRegionLocation getRegionLocation(byte[] row) throws IOException
row
- Row to find.
IOException
public byte[] getTableName()
public HConnection getConnection()
public int getScannerCaching()
public void setScannerCaching(int scannerCaching)
scannerCaching
- the number of rows for cachingpublic HTableDescriptor getTableDescriptor() throws IOException
IOException
public byte[][] getStartKeys() throws IOException
IOException
public byte[][] getEndKeys() throws IOException
IOException
public Pair<byte[][],byte[][]> getStartEndKeys() throws IOException
IOException
public Map<HRegionInfo,HServerAddress> getRegionsInfo() throws IOException
IOException
public Cell get(String row, String column) throws IOException
row
- row keycolumn
- column name
IOException
public Cell[] get(String row, String column, int numVersions) throws IOException
row
- row keycolumn
- column namenumVersions
- - number of versions to retrieve
IOException
public Cell get(byte[] row, byte[] column) throws IOException
row
- row keycolumn
- column name
IOException
public Cell[] get(byte[] row, byte[] column, int numVersions) throws IOException
row
- row keycolumn
- column namenumVersions
- number of versions to retrieve
IOException
public Cell[] get(String row, String column, long timestamp, int numVersions) throws IOException
row
- - row keycolumn
- - column nametimestamp
- - timestampnumVersions
- - number of versions to retrieve
IOException
public Cell[] get(byte[] row, byte[] column, long timestamp, int numVersions) throws IOException
row
- - row keycolumn
- - column nametimestamp
- - timestampnumVersions
- - number of versions to retrieve
IOException
public RowResult getRow(String row) throws IOException
row
- row key
null
if row does not exist.
IOException
public RowResult getRow(byte[] row) throws IOException
row
- row key
null
if row does not exist.
IOException
public RowResult getRow(String row, int numVersions) throws IOException
row
- row keynumVersions
- number of versions to return
null
if row does not exist.
IOException
public RowResult getRow(byte[] row, int numVersions) throws IOException
row
- row keynumVersions
- number of versions to return
null
if row does not exist.
IOException
public RowResult getRow(String row, long ts) throws IOException
row
- row keyts
- timestamp
null
if row does not exist.
IOException
public RowResult getRow(byte[] row, long ts) throws IOException
row
- row keyts
- timestamp
null
if row does not exist.
IOException
public RowResult getRow(String row, long ts, int numVersions) throws IOException
IOException
public RowResult getRow(byte[] row, long timestamp, int numVersions) throws IOException
row
- row keytimestamp
- timestampnumVersions
- number of versions to return
null
if row does not exist.
IOException
public RowResult getRow(String row, String[] columns) throws IOException
row
- row keycolumns
- Array of column names and families you want to retrieve.
null
if row does not exist.
IOException
public RowResult getRow(byte[] row, byte[][] columns) throws IOException
row
- row keycolumns
- Array of column names and families you want to retrieve.
null
if row does not exist.
IOException
public RowResult getRow(String row, String[] columns, int numVersions) throws IOException
row
- row keycolumns
- Array of column names and families you want to retrieve.numVersions
- number of versions to return
null
if row does not exist.
IOException
public RowResult getRow(byte[] row, byte[][] columns, int numVersions) throws IOException
row
- row keycolumns
- Array of column names and families you want to retrieve.numVersions
- number of versions to return
null
if row does not exist.
IOException
public RowResult getRow(String row, String[] columns, long ts) throws IOException
row
- row keycolumns
- Array of column names and families you want to retrieve.ts
- timestamp
null
if row does not exist.
IOException
public RowResult getRow(byte[] row, byte[][] columns, long ts) throws IOException
row
- row keycolumns
- Array of column names and families you want to retrieve.ts
- timestamp
null
if row does not exist.
IOException
public RowResult getRow(String row, String[] columns, long timestamp, int numVersions, RowLock rowLock) throws IOException
IOException
public RowResult getRow(byte[] row, byte[][] columns, long ts, int numVersions, RowLock rl) throws IOException
row
- row keycolumns
- Array of column names and families you want to retrieve.ts
- timestamprl
- row lock
null
if row does not exist.
IOException
public RowResult getClosestRowBefore(byte[] row, byte[] columnFamily) throws IOException
IOException
public Scanner getScanner(String[] columns) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.
IOException
public Scanner getScanner(String[] columns, String startRow) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scan
IOException
public Scanner getScanner(byte[][] columns) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.
IOException
public Scanner getScanner(byte[][] columns, byte[] startRow) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scan
IOException
public Scanner getScanner(byte[][] columns, byte[] startRow, long timestamp) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scantimestamp
- only return results whose timestamp <= this value
IOException
public Scanner getScanner(byte[][] columns, byte[] startRow, RowFilterInterface filter) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scanfilter
- a row filter using row-key regexp and/or column data filter.
IOException
public Scanner getScanner(byte[][] columns, byte[] startRow, byte[] stopRow) throws IOException
stopRow.
Return the specified columns.
- Parameters:
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scanstopRow
- Row to stop scanning on. Once we hit this row we stop
returning values; i.e. we return the row before this one but not the
stopRow
itself.
- Returns:
- scanner
- Throws:
IOException
public Scanner getScanner(String[] columns, String startRow, String stopRow, long timestamp) throws IOException
stopRow.
Return the specified columns.
- Parameters:
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scanstopRow
- Row to stop scanning on. Once we hit this row we stop
returning values; i.e. we return the row before this one but not the
stopRow
itself.timestamp
- only return results whose timestamp <= this value
- Returns:
- scanner
- Throws:
IOException
public Scanner getScanner(byte[][] columns, byte[] startRow, byte[] stopRow, long timestamp) throws IOException
stopRow.
Return the specified columns.
- Parameters:
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scanstopRow
- Row to stop scanning on. Once we hit this row we stop
returning values; i.e. we return the row before this one but not the
stopRow
itself.timestamp
- only return results whose timestamp <= this value
- Returns:
- scanner
- Throws:
IOException
public Scanner getScanner(String[] columns, String startRow, long timestamp, RowFilterInterface filter) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scantimestamp
- only return results whose timestamp <= this valuefilter
- a row filter using row-key regexp and/or column data filter.
IOException
public Scanner getScanner(byte[][] columns, byte[] startRow, long timestamp, RowFilterInterface filter) throws IOException
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. A column qualifier is judged to
be a regex if it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row in table to scantimestamp
- only return results whose timestamp <= this valuefilter
- a row filter using row-key regexp and/or column data filter.
IOException
public void deleteAll(byte[] row) throws IOException
row
- Key of the row you want to completely delete.
IOException
public void deleteAll(String row) throws IOException
row
- Key of the row you want to completely delete.
IOException
public void deleteAll(byte[] row, byte[] column) throws IOException
row
- Key of the row you want to completely delete.column
- column to be deleted
IOException
public void deleteAll(byte[] row, long ts) throws IOException
row
- Key of the row you want to completely delete.ts
- Delete all cells of the same timestamp or older.
IOException
public void deleteAll(String row, long ts) throws IOException
row
- Key of the row you want to completely delete.ts
- Delete all cells of the same timestamp or older.
IOException
public void deleteAll(String row, String column) throws IOException
row
- Row to updatecolumn
- name of column whose value is to be deleted
IOException
public void deleteAll(String row, String column, long ts) throws IOException
row
- Row to updatecolumn
- name of column whose value is to be deletedts
- Delete all cells of the same timestamp or older.
IOException
public void deleteAll(byte[] row, byte[] column, long ts) throws IOException
row
- Row to updatecolumn
- name of column whose value is to be deletedts
- Delete all cells of the same timestamp or older.
IOException
public void deleteAll(byte[] row, byte[] column, long ts, RowLock rl) throws IOException
row
- Row to updatecolumn
- name of column whose value is to be deletedts
- Delete all cells of the same timestamp or older.rl
- Existing row lock
IOException
public void deleteAllByRegex(String row, String colRegex) throws IOException
row
- Row to updatecolRegex
- column regex expression
IOException
public void deleteAllByRegex(String row, String colRegex, long ts) throws IOException
row
- Row to updatecolRegex
- Column Regex expressionts
- Delete all cells of the same timestamp or older.
IOException
public void deleteAllByRegex(byte[] row, String colRegex, long ts) throws IOException
row
- Row to updatecolRegex
- Column Regex expressionts
- Delete all cells of the same timestamp or older.
IOException
public void deleteAllByRegex(byte[] row, String colRegex, long ts, RowLock rl) throws IOException
row
- Row to updatecolRegex
- Column regex expressionts
- Delete all cells of the same timestamp or older.rl
- Existing row lock
IOException
public void deleteFamily(String row, String family) throws IOException
row
- The row to operate onfamily
- The column family to match
IOException
public void deleteFamily(byte[] row, byte[] family) throws IOException
row
- The row to operate onfamily
- The column family to match
IOException
public void deleteFamily(String row, String family, long timestamp) throws IOException
row
- The row to operate onfamily
- The column family to matchtimestamp
- Timestamp to match
IOException
public void deleteFamily(byte[] row, byte[] family, long timestamp) throws IOException
row
- The row to operate onfamily
- The column family to matchtimestamp
- Timestamp to match
IOException
public void deleteFamily(byte[] row, byte[] family, long timestamp, RowLock rl) throws IOException
row
- The row to operate onfamily
- The column family to matchtimestamp
- Timestamp to matchrl
- Existing row lock
IOException
public void deleteFamilyByRegex(String row, String familyRegex) throws IOException
row
- The row to operate onfamilyRegex
- Column family regex
IOException
public void deleteFamilyByRegex(byte[] row, String familyRegex) throws IOException
row
- The row to operate onfamilyRegex
- Column family regex
IOException
public void deleteFamilyByRegex(String row, String familyRegex, long timestamp) throws IOException
row
- The row to operate onfamilyRegex
- Column family regextimestamp
- Timestamp to match
IOException
public void deleteFamilyByRegex(byte[] row, String familyRegex, long timestamp) throws IOException
row
- The row to operate onfamilyRegex
- Column family regextimestamp
- Timestamp to match
IOException
public void deleteFamilyByRegex(byte[] row, String familyRegex, long timestamp, RowLock r1) throws IOException
row
- The row to operate onfamilyRegex
- Column Family Regextimestamp
- Timestamp to matchr1
- Existing row lock
IOException
public boolean exists(byte[] row) throws IOException
row
- The row
IOException
public boolean exists(byte[] row, byte[] column) throws IOException
row
- The rowcolumn
- The column
IOException
public boolean exists(byte[] row, byte[] column, long timestamp) throws IOException
row
- The rowcolumn
- The columntimestamp
- The timestamp
IOException
public boolean exists(byte[] row, byte[] column, long timestamp, RowLock rl) throws IOException
row
- The rowcolumn
- The columntimestamp
- The timestamprl
- Existing row lock
IOException
public void commit(BatchUpdate batchUpdate) throws IOException
batchUpdate
-
IOException
public void commit(BatchUpdate batchUpdate, RowLock rl) throws IOException
batchUpdate
- rl
- Existing row lock
IOException
public void commit(List<BatchUpdate> batchUpdates) throws IOException
batchUpdates
-
IOException
public boolean checkAndSave(BatchUpdate batchUpdate, HbaseMapWritable<byte[],byte[]> expectedValues, RowLock rl) throws IOException
batchUpdate
- batchupdate to apply if check is successfulexpectedValues
- values to checkrl
- rowlock
IOException
public void flushCommits() throws IOException
IOException
public void close() throws IOException
IOException
public RowLock lockRow(byte[] row) throws IOException
row
- The row to lock
IOException
public void unlockRow(RowLock rl) throws IOException
rl
- The row lock to release
IOException
public boolean isAutoFlush()
public void setAutoFlush(boolean autoFlush)
autoFlush
- public long getWriteBufferSize()
public void setWriteBufferSize(long writeBufferSize)
writeBufferSize
- public ArrayList<BatchUpdate> getWriteBuffer()
public long incrementColumnValue(byte[] row, byte[] column, long amount) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |