@InterfaceAudience.Public @InterfaceStability.Unstable public static class KuduScanToken.KuduScanTokenBuilder extends AbstractKuduScannerBuilder<KuduScanToken.KuduScanTokenBuilder,List<KuduScanToken>>
Modifier and Type | Method and Description |
---|---|
List<KuduScanToken> |
build() |
KuduScanToken.KuduScanTokenBuilder |
includeTableMetadata(boolean includeMetadata)
If the table metadata is included on the scan token a GetTableSchema
RPC call to the master can be avoided when deserializing each scan token
into a scanner.
|
KuduScanToken.KuduScanTokenBuilder |
includeTabletMetadata(boolean includeMetadata)
If the tablet metadata is included on the scan token a GetTableLocations
RPC call to the master can be avoided when scanning with a scanner constructed
from a scan token.
|
KuduScanToken.KuduScanTokenBuilder |
setSplitSizeBytes(long splitSizeBytes)
Sets the data size of key range.
|
KuduScanToken.KuduScanTokenBuilder |
setTimeout(long timeoutMs)
Sets a timeout value to use when building the list of scan tokens.
|
addColumnRangePredicate, addColumnRangePredicatesRaw, addPredicate, batchSizeBytes, cacheBlocks, exclusiveUpperBound, exclusiveUpperBoundRaw, keepAlivePeriodMs, limit, lowerBound, lowerBoundRaw, prefetching, readMode, replicaSelection, scanRequestTimeout, setFaultTolerant, setProjectedColumnIndexes, setProjectedColumnNames, snapshotTimestampMicros
public KuduScanToken.KuduScanTokenBuilder setTimeout(long timeoutMs)
timeoutMs
- the timeout in milliseconds.public KuduScanToken.KuduScanTokenBuilder setSplitSizeBytes(long splitSizeBytes)
splitSizeBytes
- the data size of key range.public KuduScanToken.KuduScanTokenBuilder includeTableMetadata(boolean includeMetadata)
includeMetadata
- true, if table metadata should be included.public KuduScanToken.KuduScanTokenBuilder includeTabletMetadata(boolean includeMetadata)
includeMetadata
- true, if tablet metadata should be included.public List<KuduScanToken> build()
build
in class AbstractKuduScannerBuilder<KuduScanToken.KuduScanTokenBuilder,List<KuduScanToken>>