@InterfaceAudience.Private @InterfaceStability.Stable public class ColdHTable extends LayeredHTable
Table.CheckAndMutateBuilder| 限定符和类型 | 字段和说明 |
|---|---|
protected LayeredHTable |
hotTable |
protected TableName |
hotTableName |
protected long |
hotTtl |
| 限定符 | 构造器和说明 |
|---|---|
protected |
ColdHTable(ClusterConnection connection,
org.apache.hadoop.hbase.client.TableBuilderBase builder,
RpcRetryingCallerFactory rpcCallerFactory,
RpcControllerFactory rpcControllerFactory,
ExecutorService pool,
TableName hotTableName,
long hotTtl)
Creates an object to access a HBase table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Result |
get(Get get,
boolean checkExistenceOnly) |
Result[] |
get(List<Get> gets)
Extracts specified cells from the given rows, as a batch.
|
ResultScanner |
getScanner(Scan scan)
The underlying
LayeredHTable must not be closed. |
getRawScanner, rawGet, rawGetappend, batch, batch, batchCallback, batchCoprocessorService, batchCoprocessorService, checkAndDelete, checkAndDelete, checkAndDelete, checkAndMutate, checkAndMutate, checkAndMutate, checkAndPut, checkAndPut, checkAndPut, clearRegionCache, close, coprocessorService, coprocessorService, coprocessorService, delete, delete, doBatchWithCallback, exists, exists, get, getConfiguration, getConnection, getDefaultExecutor, getDescriptor, getMaxKeyValueSize, getName, getOperationTimeout, getOperationTimeout, getReadRpcTimeout, getReadRpcTimeout, getRegionLocator, getRpcTimeout, getRpcTimeout, getScanner, getScanner, getTableDescriptor, getWriteRpcTimeout, getWriteRpcTimeout, increment, incrementColumnValue, incrementColumnValue, isAliHBaseUEEnabled, mutateRow, processBatchCallback, put, put, setOperationTimeout, setReadRpcTimeout, setRpcTimeout, setWriteRpcTimeout, toString, validatePut, validatePutprotected TableName hotTableName
protected LayeredHTable hotTable
protected long hotTtl
@InterfaceAudience.Private protected ColdHTable(ClusterConnection connection, org.apache.hadoop.hbase.client.TableBuilderBase builder, RpcRetryingCallerFactory rpcCallerFactory, RpcControllerFactory rpcControllerFactory, ExecutorService pool, TableName hotTableName, long hotTtl)
ConnectionFactory class comment for how to
get a Table instance (use Table instead of LayeredHTable).connection - Connection to be used.builder - The table builderrpcCallerFactory - The RPC caller factoryrpcControllerFactory - The RPC controller factorypool - ExecutorService to be used.public ResultScanner getScanner(Scan scan) throws IOException
LayeredHTable must not be closed.
Table.getScanner(Scan) has other usage details.getScanner 在接口中 TablegetScanner 在类中 HTablescan - A configured Scan object.IOException - if a remote or network exception occurs.protected Result get(Get get, boolean checkExistenceOnly) throws IOException
get 在类中 HTableIOExceptionpublic Result[] get(List<Get> gets) throws IOException
Tableget 在接口中 Tableget 在类中 HTablegets - The objects that specify what data to fetch and from which rows.Result instance returned won't contain any Cells, as indicated by Result.isEmpty(). If there are any
failures even after retries, there will be a null in the results' array for those
Gets, AND an exception will be thrown. The ordering of the Result array corresponds to the order
of the list of passed in Gets.IOException - if a remote or network exception occurs.Copyright © 2007–2019. All rights reserved.