public class DelegateHTable extends Object implements HTableInterface
Modifier and Type | Field and Description |
---|---|
protected HTableInterface |
delegate |
Constructor and Description |
---|
DelegateHTable(HTableInterface delegate) |
Modifier and Type | Method and Description |
---|---|
Result |
append(Append append) |
Object[] |
batch(List<? extends Row> actions) |
void |
batch(List<? extends Row> actions,
Object[] results) |
<R> Object[] |
batchCallback(List<? extends Row> actions,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) |
<R> void |
batchCallback(List<? extends Row> actions,
Object[] results,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) |
<R extends Message> |
batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor,
Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype) |
<R extends Message> |
batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor,
Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) |
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Delete delete) |
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Delete delete) |
boolean |
checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
RowMutations mutation) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Put put) |
void |
close() |
CoprocessorRpcChannel |
coprocessorService(byte[] row) |
<T extends Service,R> |
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable) |
<T extends Service,R> |
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) |
void |
delete(Delete delete) |
void |
delete(List<Delete> deletes) |
boolean |
exists(Get get) |
Boolean[] |
exists(List<Get> gets) |
boolean[] |
existsAll(List<Get> gets) |
void |
flushCommits() |
Result |
get(Get get) |
Result[] |
get(List<Get> gets) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
TableName |
getName() |
int |
getOperationTimeout() |
Result |
getRowOrBefore(byte[] row,
byte[] family) |
int |
getRpcTimeout() |
ResultScanner |
getScanner(byte[] family) |
ResultScanner |
getScanner(byte[] family,
byte[] qualifier) |
ResultScanner |
getScanner(Scan scan) |
HTableDescriptor |
getTableDescriptor() |
byte[] |
getTableName() |
long |
getWriteBufferSize() |
Result |
increment(Increment increment) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
Durability durability) |
boolean |
isAutoFlush() |
void |
mutateRow(RowMutations rm) |
void |
put(List<Put> puts) |
void |
put(Put put) |
void |
setAutoFlush(boolean autoFlush) |
void |
setAutoFlush(boolean autoFlush,
boolean clearBufferOnFail) |
void |
setAutoFlushTo(boolean autoFlush) |
void |
setOperationTimeout(int i) |
void |
setRpcTimeout(int i) |
void |
setWriteBufferSize(long writeBufferSize) |
protected final HTableInterface delegate
public DelegateHTable(HTableInterface delegate)
public byte[] getTableName()
getTableName
in interface HTableInterface
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface Table
public HTableDescriptor getTableDescriptor() throws IOException
getTableDescriptor
in interface Table
IOException
public boolean exists(Get get) throws IOException
exists
in interface Table
IOException
public Boolean[] exists(List<Get> gets) throws IOException
exists
in interface HTableInterface
IOException
public void batch(List<? extends Row> actions, Object[] results) throws IOException, InterruptedException
batch
in interface Table
IOException
InterruptedException
public Object[] batch(List<? extends Row> actions) throws IOException, InterruptedException
batch
in interface Table
IOException
InterruptedException
public <R> void batchCallback(List<? extends Row> actions, Object[] results, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback
in interface Table
IOException
InterruptedException
public <R> Object[] batchCallback(List<? extends Row> actions, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback
in interface Table
IOException
InterruptedException
public Result get(Get get) throws IOException
get
in interface Table
IOException
public Result[] get(List<Get> gets) throws IOException
get
in interface Table
IOException
public Result getRowOrBefore(byte[] row, byte[] family) throws IOException
getRowOrBefore
in interface HTableInterface
IOException
public ResultScanner getScanner(Scan scan) throws IOException
getScanner
in interface Table
IOException
public ResultScanner getScanner(byte[] family) throws IOException
getScanner
in interface Table
IOException
public ResultScanner getScanner(byte[] family, byte[] qualifier) throws IOException
getScanner
in interface Table
IOException
public void put(Put put) throws IOException
put
in interface Table
IOException
public void put(List<Put> puts) throws IOException
put
in interface Table
IOException
public boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier, byte[] value, Put put) throws IOException
checkAndPut
in interface Table
IOException
public void delete(Delete delete) throws IOException
delete
in interface Table
IOException
public void delete(List<Delete> deletes) throws IOException
delete
in interface Table
IOException
public boolean checkAndDelete(byte[] row, byte[] family, byte[] qualifier, byte[] value, Delete delete) throws IOException
checkAndDelete
in interface Table
IOException
public void mutateRow(RowMutations rm) throws IOException
mutateRow
in interface Table
IOException
public Result append(Append append) throws IOException
append
in interface Table
IOException
public Result increment(Increment increment) throws IOException
increment
in interface Table
IOException
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount) throws IOException
incrementColumnValue
in interface Table
IOException
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount, Durability durability) throws IOException
incrementColumnValue
in interface Table
IOException
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount, boolean writeToWAL) throws IOException
incrementColumnValue
in interface HTableInterface
IOException
public boolean isAutoFlush()
isAutoFlush
in interface HTableInterface
public void flushCommits() throws IOException
flushCommits
in interface HTableInterface
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Table
IOException
public CoprocessorRpcChannel coprocessorService(byte[] row)
coprocessorService
in interface Table
public <T extends Service,R> Map<byte[],R> coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable) throws ServiceException, Throwable
coprocessorService
in interface Table
ServiceException
Throwable
public <T extends Service,R> void coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws ServiceException, Throwable
coprocessorService
in interface Table
ServiceException
Throwable
public void setAutoFlush(boolean autoFlush)
setAutoFlush
in interface HTableInterface
public void setAutoFlush(boolean autoFlush, boolean clearBufferOnFail)
setAutoFlush
in interface HTableInterface
public void setAutoFlushTo(boolean autoFlush)
setAutoFlushTo
in interface HTableInterface
public long getWriteBufferSize()
getWriteBufferSize
in interface HTableInterface
getWriteBufferSize
in interface Table
public void setWriteBufferSize(long writeBufferSize) throws IOException
setWriteBufferSize
in interface HTableInterface
setWriteBufferSize
in interface Table
IOException
public <R extends Message> Map<byte[],R> batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor, Message request, byte[] startKey, byte[] endKey, R responsePrototype) throws ServiceException, Throwable
batchCoprocessorService
in interface Table
ServiceException
Throwable
public <R extends Message> void batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor, Message request, byte[] startKey, byte[] endKey, R responsePrototype, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws ServiceException, Throwable
batchCoprocessorService
in interface Table
ServiceException
Throwable
public boolean checkAndMutate(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, RowMutations mutation) throws IOException
checkAndMutate
in interface Table
IOException
public void setOperationTimeout(int i)
setOperationTimeout
in interface Table
public int getOperationTimeout()
getOperationTimeout
in interface Table
public void setRpcTimeout(int i)
setRpcTimeout
in interface Table
public int getRpcTimeout()
getRpcTimeout
in interface Table
public boolean[] existsAll(List<Get> gets) throws IOException
existsAll
in interface Table
IOException
public boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, Put put) throws IOException
checkAndPut
in interface Table
IOException
public boolean checkAndDelete(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, Delete delete) throws IOException
checkAndDelete
in interface Table
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.