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
FieldsModifier and TypeFieldDescriptionprivate static final intThe default number of operations.private static final byte[]The name of the column family.private final AtomicReference<CompletableFuture<AsyncConnection>>private static final org.slf4j.Loggerprivate static final byte[]For the example we're just using one qualifier.private static final intThe size for thread pool. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CompletableFuture<Void>private CompletableFuture<AsyncConnection>getConn()private byte[]getKey(int i) static voidintMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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