Package org.apache.hadoop.hbase.client
Class TableBuilderBase
java.lang.Object
org.apache.hadoop.hbase.client.TableBuilderBase
- All Implemented Interfaces:
TableBuilder
Base class for all table builders.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
protected final int
protected int
protected TableName
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetOperationTimeout
(int timeout) Set timeout for a whole operation such as get, put or delete.setReadRpcTimeout
(int timeout) Set timeout for each read(get, scan) rpc request.setRequestAttribute
(String key, byte[] value) Set a request attributesetRpcTimeout
(int timeout) Set timeout for each rpc request.setWriteRpcTimeout
(int timeout) Set timeout for each write(put, delete) rpc request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.client.TableBuilder
build
-
Field Details
-
tableName
-
operationTimeout
-
rpcTimeout
-
readRpcTimeout
-
writeRpcTimeout
-
scanReadRpcTimeout
-
scanTimeout
-
requestAttributes
-
-
Constructor Details
-
TableBuilderBase
TableBuilderBase(TableName tableName, ConnectionConfiguration connConf)
-
-
Method Details
-
setOperationTimeout
Description copied from interface:TableBuilder
Set timeout for a whole operation such as get, put or delete. Notice that scan will not be effected by this value, see scanTimeoutNs.Operation timeout and max attempt times(or max retry times) are both limitations for retrying, we will stop retrying when we reach any of the limitations.
- Specified by:
setOperationTimeout
in interfaceTableBuilder
-
setRpcTimeout
Description copied from interface:TableBuilder
Set timeout for each rpc request.Notice that this will NOT change the rpc timeout for read(get, scan) request and write request(put, delete).
- Specified by:
setRpcTimeout
in interfaceTableBuilder
-
setReadRpcTimeout
Description copied from interface:TableBuilder
Set timeout for each read(get, scan) rpc request.- Specified by:
setReadRpcTimeout
in interfaceTableBuilder
-
setWriteRpcTimeout
Description copied from interface:TableBuilder
Set timeout for each write(put, delete) rpc request.- Specified by:
setWriteRpcTimeout
in interfaceTableBuilder
-
setRequestAttribute
Description copied from interface:TableBuilder
Set a request attribute- Specified by:
setRequestAttribute
in interfaceTableBuilder
-