Class RangeRequest.Builder
java.lang.Object
com.palantir.atlasdb.keyvalue.api.RangeRequest.Builder
- Enclosing class:
- RangeRequest
A helper class used to construct an immutable
RangeRequest
instance.
By default, the range covers all rows and columns. To restrict the rows or columns,
call * the methods on the RangeRequest
class.
-
Method Summary
Modifier and TypeMethodDescriptionThis is a hint for how much data the underlying system should process at a time.build()
endRowExclusive
(byte[] end) endRowExclusive
(Prefix end) endRowExclusive
(com.palantir.common.persist.Persistable end) boolean
boolean
prefixRange
(byte[] prefix) This will set the start and the end to get all rows that have a given prefix.retainColumns
(ColumnSelection selection) retainColumns
(Iterable<byte[]> colsToRetain) startRowInclusive
(byte[] start) startRowInclusive
(Prefix start) startRowInclusive
(com.palantir.common.persist.Persistable start)
-
Method Details
-
isReverse
public boolean isReverse() -
prefixRange
This will set the start and the end to get all rows that have a given prefix. -
startRowInclusive
-
startRowInclusive
-
startRowInclusive
-
endRowExclusive
-
endRowExclusive
-
endRowExclusive
-
retainColumns
-
retainColumns
-
batchHint
This is a hint for how much data the underlying system should process at a time. If we are expecting to read a lot from this range, then this should be pretty large for performance. If we are only going to read the first thing in a range, then this should be set to 1.If hint is null then the range will use the default. Usually for
Transaction.getRange(TableReference, RangeRequest)
this means the batch size will be whatever is passed as the batch size to BatchingVisitable#batchAccept(int, com.palantir.common.base.AbortingVisitor) -
isInvalidRange
public boolean isInvalidRange() -
build
-