public class TableIteratorOptions extends ReadOptions
KVStoreConfig.| Constructor | Description |
|---|---|
TableIteratorOptions(Direction direction,
Consistency consistency,
long timeout,
java.util.concurrent.TimeUnit timeoutUnit) |
Creates a
TableIteratorOptions with the specified parameters. |
TableIteratorOptions(Direction direction,
Consistency consistency,
long timeout,
java.util.concurrent.TimeUnit timeoutUnit,
int maxConcurrentRequests,
int batchResultsSize) |
Creates a
TableIteratorOptions with the specified parameters,
including maxConcurrentRequests and batchResultsSize
values. |
TableIteratorOptions(Direction direction,
Consistency consistency,
long timeout,
java.util.concurrent.TimeUnit timeoutUnit,
int maxConcurrentRequests,
int batchResultsSize,
int maxResultsBatches) |
Deprecated.
since 3.4, no longer supported.
|
| Modifier and Type | Method | Description |
|---|---|---|
Direction |
getDirection() |
Returns the direction.
|
int |
getMaxConcurrentRequests() |
Returns the maximum number of concurrent requests, or
0 if no
maximum was specified. |
int |
getMaxResultsBatches() |
Deprecated.
since 3.4, no longer supported.
|
int |
getResultsBatchSize() |
Returns the number of results per request, or
0 if no value was
specified. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConsistency, getTimeout, getTimeoutUnitpublic TableIteratorOptions(Direction direction, Consistency consistency, long timeout, java.util.concurrent.TimeUnit timeoutUnit)
TableIteratorOptions with the specified parameters.
Equivalent to
TableIteratorOptions(direction, consistency, timeout,
timeoutUnit, 0, 0).direction - a directionconsistency - the read consistency or nulltimeout - the request timeout or 0timeoutUnit - the TimeUnit for the timeout
parameter or nulljava.lang.IllegalArgumentException - if direction is null, the timeout
is negative, or timeout is > 0 and timeoutUnit is nullpublic TableIteratorOptions(Direction direction, Consistency consistency, long timeout, java.util.concurrent.TimeUnit timeoutUnit, int maxConcurrentRequests, int batchResultsSize)
TableIteratorOptions with the specified parameters,
including maxConcurrentRequests and batchResultsSize
values.
If consistency is null, the
default consistency
is used. If timeout is zero the
default request timeout is used.
maxConcurrentRequests specifies the maximum degree of
parallelism to be used when running an iteration. Setting
maxConcurrentRequests to 1 causes the iteration to be performed using
only a single thread. Setting it to 0 lets the KV Client determine the
degree of concurrency based on topology information (up to a maximum of
the number of available processors as returned by
java.lang.Runtime.availableProcessors()). Values less than 0 cause an
IllegalArgumentException to be thrown.
direction - a directionconsistency - the read consistency or nulltimeout - the request timeout or 0timeoutUnit - the TimeUnit for the timeout
parameter or nullmaxConcurrentRequests - the maximum number of concurrent requestsbatchResultsSize - the number of results per requestjava.lang.IllegalArgumentException - if direction is null, the timeout is
negative, timeout is > 0 and timeoutUnit is null, or
maxConcurrentRequests or batchResultsSize is less than 0@Deprecated public TableIteratorOptions(Direction direction, Consistency consistency, long timeout, java.util.concurrent.TimeUnit timeoutUnit, int maxConcurrentRequests, int batchResultsSize, int maxResultsBatches)
TableIteratorOptions(Direction, Consistency, long,
TimeUnit, int, int)public Direction getDirection()
public int getMaxConcurrentRequests()
0 if no
maximum was specified.0public int getResultsBatchSize()
0 if no value was
specified.0@Deprecated public int getMaxResultsBatches()
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.