private PartitionRangeReadCommand makeFetchAdditionalPartitionReadCommand(int toQuery) { PartitionRangeReadCommand cmd = (PartitionRangeReadCommand) command; DataLimits newLimits = cmd.limits().forShortReadRetry(toQuery); AbstractBounds<PartitionPosition> bounds = cmd.dataRange().keyRange(); AbstractBounds<PartitionPosition> newBounds = bounds.inclusiveRight() ? new Range<>(lastPartitionKey, bounds.right) : new ExcludingBounds<>(lastPartitionKey, bounds.right); DataRange newDataRange = cmd.dataRange().forSubRange(newBounds); return cmd.withUpdatedLimitsAndDataRange(newLimits, newDataRange); }
private PartitionRangeReadCommand makeFetchAdditionalPartitionReadCommand(int toQuery) { PartitionRangeReadCommand cmd = (PartitionRangeReadCommand) command; DataLimits newLimits = cmd.limits().forShortReadRetry(toQuery); AbstractBounds<PartitionPosition> bounds = cmd.dataRange().keyRange(); AbstractBounds<PartitionPosition> newBounds = bounds.inclusiveRight() ? new Range<>(lastPartitionKey, bounds.right) : new ExcludingBounds<>(lastPartitionKey, bounds.right); DataRange newDataRange = cmd.dataRange().forSubRange(newBounds); return cmd.withUpdatedLimitsAndDataRange(newLimits, newDataRange); }
private PartitionRangeReadCommand makeFetchAdditionalPartitionReadCommand(int toQuery) { PartitionRangeReadCommand cmd = (PartitionRangeReadCommand) command; DataLimits newLimits = cmd.limits().forShortReadRetry(toQuery); AbstractBounds<PartitionPosition> bounds = cmd.dataRange().keyRange(); AbstractBounds<PartitionPosition> newBounds = bounds.inclusiveRight() ? new Range<>(lastPartitionKey, bounds.right) : new ExcludingBounds<>(lastPartitionKey, bounds.right); DataRange newDataRange = cmd.dataRange().forSubRange(newBounds); return cmd.withUpdatedLimitsAndDataRange(newLimits, newDataRange); }
private SinglePartitionReadCommand makeFetchAdditionalRowsReadCommand(int toQuery) { ClusteringIndexFilter filter = command.clusteringIndexFilter(partitionKey); if (null != lastClustering) filter = filter.forPaging(metadata.comparator, lastClustering, false); return SinglePartitionReadCommand.create(command.isForThrift(), command.metadata(), command.nowInSec(), command.columnFilter(), command.rowFilter(), command.limits().forShortReadRetry(toQuery), partitionKey, filter, command.indexMetadata()); } }
private SinglePartitionReadCommand makeFetchAdditionalRowsReadCommand(int toQuery) { ClusteringIndexFilter filter = command.clusteringIndexFilter(partitionKey); if (null != lastClustering) filter = filter.forPaging(metadata.comparator, lastClustering, false); return SinglePartitionReadCommand.create(command.isForThrift(), command.metadata(), command.nowInSec(), command.columnFilter(), command.rowFilter(), command.limits().forShortReadRetry(toQuery), partitionKey, filter, command.indexMetadata()); } }
private SinglePartitionReadCommand makeFetchAdditionalRowsReadCommand(int toQuery) { ClusteringIndexFilter filter = command.clusteringIndexFilter(partitionKey); if (null != lastClustering) filter = filter.forPaging(metadata.comparator, lastClustering, false); return SinglePartitionReadCommand.create(command.isForThrift(), command.metadata(), command.nowInSec(), command.columnFilter(), command.rowFilter(), command.limits().forShortReadRetry(toQuery), partitionKey, filter, command.indexMetadata()); } }