public static PartitionIterator mergeAndFilter(List<UnfilteredPartitionIterator> iterators, int nowInSec, MergeListener listener) { // TODO: we could have a somewhat faster version if we were to merge the UnfilteredRowIterators directly as RowIterators return filter(merge(iterators, nowInSec, listener), nowInSec); }
public PartitionIterator executeInternal(ReadExecutionController controller) { return UnfilteredPartitionIterators.filter(executeLocally(controller), nowInSec()); }
public PartitionIterator executeInternal(ReadExecutionController controller) { return UnfilteredPartitionIterators.filter(executeLocally(controller), nowInSec()); }
public PartitionIterator executeInternal(ReadExecutionController controller) { return UnfilteredPartitionIterators.filter(executeLocally(controller), nowInSec()); }
public PartitionIterator getData() { ReadResponse response = responses.iterator().next().payload; return UnfilteredPartitionIterators.filter(response.makeIterator(command), command.nowInSec()); }
public PartitionIterator getData() { ReadResponse response = responses.iterator().next().payload; return UnfilteredPartitionIterators.filter(response.makeIterator(command), command.nowInSec()); }
public PartitionIterator getData() { ReadResponse response = responses.iterator().next().payload; return UnfilteredPartitionIterators.filter(response.makeIterator(command), command.nowInSec()); }
/** * Special case of resolve() so that CL.ONE reads never throw DigestMismatchException in the foreground */ public PartitionIterator getData() { assert isDataPresent(); return UnfilteredPartitionIterators.filter(dataResponse.makeIterator(command), command.nowInSec()); }
public PartitionIterator executeInternal(ReadExecutionController controller) { // Note that the only difference between the command in a group must be the partition key on which // they applied. boolean enforceStrictLiveness = commands.get(0).metadata().enforceStrictLiveness(); return limits.filter(UnfilteredPartitionIterators.filter(executeLocally(controller, false), nowInSec), nowInSec, selectsFullPartitions, enforceStrictLiveness); }
public PartitionIterator executeInternal(ReadExecutionController controller) { // Note that the only difference between the command in a group must be the partition key on which // they applied. boolean enforceStrictLiveness = commands.get(0).metadata().enforceStrictLiveness(); return limits.filter(UnfilteredPartitionIterators.filter(executeLocally(controller, false), nowInSec), nowInSec, selectsFullPartitions, enforceStrictLiveness); }
/** * Special case of resolve() so that CL.ONE reads never throw DigestMismatchException in the foreground */ public PartitionIterator getData() { assert isDataPresent(); return UnfilteredPartitionIterators.filter(dataResponse.makeIterator(command), command.nowInSec()); }
public PartitionIterator executeInternal(ReadExecutionController controller) { // Note that the only difference between the command in a group must be the partition key on which // they applied. boolean enforceStrictLiveness = commands.get(0).metadata().enforceStrictLiveness(); return limits.filter(UnfilteredPartitionIterators.filter(executeLocally(controller, false), nowInSec), nowInSec, selectsFullPartitions, enforceStrictLiveness); }
/** * Special case of resolve() so that CL.ONE reads never throw DigestMismatchException in the foreground */ public PartitionIterator getData() { assert isDataPresent(); return UnfilteredPartitionIterators.filter(dataResponse.makeIterator(command), command.nowInSec()); }
public PartitionIterator resolve() throws DigestMismatchException { if (responses.size() == 1) return getData(); if (logger.isTraceEnabled()) logger.trace("resolving {} responses", responses.size()); compareResponses(); return UnfilteredPartitionIterators.filter(dataResponse.makeIterator(command), command.nowInSec()); }
public PartitionIterator resolve() throws DigestMismatchException { if (responses.size() == 1) return getData(); if (logger.isTraceEnabled()) logger.trace("resolving {} responses", responses.size()); compareResponses(); return UnfilteredPartitionIterators.filter(dataResponse.makeIterator(command), command.nowInSec()); }
public PartitionIterator resolve() throws DigestMismatchException { if (responses.size() == 1) return getData(); if (logger.isTraceEnabled()) logger.trace("resolving {} responses", responses.size()); compareResponses(); return UnfilteredPartitionIterators.filter(dataResponse.makeIterator(command), command.nowInSec()); }