Table
instead@Deprecated @InterfaceAudience.Private @InterfaceStability.Stable public interface HTableInterface extends Table
HConnection
.Modifier and Type | Method and Description |
---|---|
Boolean[] |
exists(List<Get> gets)
Deprecated.
Use
Table.existsAll(java.util.List) instead. |
Result |
getRowOrBefore(byte[] row,
byte[] family)
Deprecated.
As of version 0.92 this method is deprecated without
replacement. Since version 0.96+, you can use reversed scan.
getRowOrBefore is used internally to find entries in hbase:meta and makes
various assumptions about the table (which are true for hbase:meta but not
in general) to be efficient.
|
byte[] |
getTableName()
Deprecated.
Use
Table.getName() instead |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
|
void |
setAutoFlush(boolean autoFlush)
Deprecated.
in 0.96. When called with setAutoFlush(false), this function also
set clearBufferOnFail to true, which is unexpected but kept for historical reasons.
Replace it with setAutoFlush(false, false) if this is exactly what you want, or by
Table.setAutoFlushTo(boolean) for all other cases. |
void |
setAutoFlush(boolean autoFlush,
boolean clearBufferOnFail)
Deprecated.
in 0.99 since setting clearBufferOnFail is deprecated. Use
Table.setAutoFlushTo(boolean) } instead. |
append, batch, batch, batchCallback, batchCallback, batchCoprocessorService, batchCoprocessorService, checkAndDelete, checkAndDelete, checkAndMutate, checkAndPut, checkAndPut, close, coprocessorService, coprocessorService, coprocessorService, delete, delete, exists, existsAll, flushCommits, get, get, getConfiguration, getName, getScanner, getScanner, getScanner, getTableDescriptor, getWriteBufferSize, increment, incrementColumnValue, incrementColumnValue, isAutoFlush, mutateRow, put, put, setAutoFlushTo, setWriteBufferSize
@Deprecated byte[] getTableName()
Table.getName()
instead@Deprecated long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount, boolean writeToWAL) throws IOException
IOException
@Deprecated Boolean[] exists(List<Get> gets) throws IOException
Table.existsAll(java.util.List)
instead.IOException
@Deprecated void setAutoFlush(boolean autoFlush)
Table.setAutoFlushTo(boolean)
for all other cases.autoFlush
- Whether or not to enable 'auto-flush'.@Deprecated void setAutoFlush(boolean autoFlush, boolean clearBufferOnFail)
Table.setAutoFlushTo(boolean)
} instead.
When enabled (default), Put
operations don't get buffered/delayed
and are immediately executed. Failed operations are not retried. This is
slower but safer.
Turning off #autoFlush
means that multiple Put
s will be
accepted before any RPC is actually sent to do the write operations. If the
application dies before pending writes get flushed to HBase, data will be
lost.
When you turn #autoFlush
off, you should also consider the
#clearBufferOnFail
option. By default, asynchronous Put
requests will be retried on failure until successful. However, this can
pollute the writeBuffer and slow down batching performance. Additionally,
you may want to issue a number of Put requests and call
Table.flushCommits()
as a barrier. In both use cases, consider setting
clearBufferOnFail to true to erase the buffer after Table.flushCommits()
has been called, regardless of success.
In other words, if you call #setAutoFlush(false)
; HBase will retry N time for each
flushCommit, including the last one when closing the table. This is NOT recommended,
most of the time you want to call #setAutoFlush(false, true)
.
autoFlush
- Whether or not to enable 'auto-flush'.clearBufferOnFail
- Whether to keep Put failures in the writeBuffer. If autoFlush is true, then
the value of this parameter is ignored and clearBufferOnFail is set to true.
Setting clearBufferOnFail to false is deprecated since 0.96.Table.flushCommits()
@Deprecated Result getRowOrBefore(byte[] row, byte[] family) throws IOException
row
- A row key.family
- Column family to include in the Result
.IOException
- if a remote or network exception occurs.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.