Package org.apache.hadoop.hbase.client
Interface TableBuilder
- All Known Implementing Classes:
TableBuilderBase
For creating
Table
instance.
The implementation should have default configurations set before returning the builder to user. So users are free to only set the configurations they care about to create a new Table instance.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create theTable
instance.setOperationTimeout
(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.
-
Method Details
-
setOperationTimeout
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.
-
setRpcTimeout
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).
-
setReadRpcTimeout
Set timeout for each read(get, scan) rpc request. -
setWriteRpcTimeout
Set timeout for each write(put, delete) rpc request. -
setRequestAttribute
Set a request attribute -
build
Create theTable
instance.
-