Class AsyncClientExample
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.client.example.AsyncClientExample
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
@Private
public class AsyncClientExample
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
A simple example shows how to use asynchronous client.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
The default number of operations.private static final byte[]
The name of the column family.private final AtomicReference<CompletableFuture<AsyncConnection>>
private static final org.slf4j.Logger
private static final byte[]
For the example we're just using one qualifier.private static final int
The size for thread pool. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate CompletableFuture<Void>
private CompletableFuture<AsyncConnection>
getConn()
private byte[]
getKey
(int i) static void
int
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
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.conf.Configurable
getConf, setConf
-
Field Details
-
LOG
-
THREAD_POOL_SIZE
The size for thread pool.- See Also:
-
DEFAULT_NUM_OPS
The default number of operations.- See Also:
-
FAMILY
The name of the column family. d for default. -
QUAL
For the example we're just using one qualifier. -
future
-
-
Constructor Details
-
AsyncClientExample
public AsyncClientExample()
-
-
Method Details