/** * Returns an iterator that iterates over the rows of this update in clustering order. * <p> * Note that this might trigger a sorting of the update, and as such the update will not * be modifiable anymore after this call. * * @return an iterator over the rows of this update. */ @Override public Iterator<Row> iterator() { maybeBuild(); return super.iterator(); }
public CFMetaData metadata() { return input.metadata(); } }
protected Holder holder() { maybeBuild(); return holder; }
static Mutation makeStopSessionMutation(ByteBuffer sessionId, int elapsed, int ttl) { PartitionUpdate.SimpleBuilder builder = PartitionUpdate.simpleBuilder(Sessions, sessionId); builder.row() .ttl(ttl) .add("duration", elapsed); return builder.buildAsMutation(); }
private ThriftCASRequest(List<LegacyLayout.LegacyCell> expected, PartitionUpdate updates, int nowInSec) { this.metadata = updates.metadata(); this.key = updates.partitionKey(); this.expected = expected; this.updates = updates; this.nowInSec = nowInSec; }
/** * Create a FilteredPartition holding all the rows of the provided iterator. * * Warning: Note that this method does not close the provided iterator and it is * up to the caller to do so. */ public static FilteredPartition create(RowIterator iterator) { return new FilteredPartition(iterator); }
public UnfilteredPartitions(UnfilteredPartitionIterator input) { super(input); this.isForThrift = input.isForThrift(); }
private void maybeBuild() { if (isBuilt) return; build(); }
public ImmutableBTreePartition(CFMetaData metadata, DecoratedKey partitionKey, PartitionColumns columns, Row staticRow, Object[] tree, DeletionInfo deletionInfo, EncodingStats stats) { super(metadata, partitionKey); this.holder = new Holder(columns, tree, deletionInfo, staticRow, stats); }
public void close() { remaining -= counted; if (result != null && !closed) result.close(); } }
public boolean appliesTo(FilteredPartition current) { return current.getRow(clustering) == null; } }
/** * The partition level deletion with with which source {@code i} is currently repaired, or * {@code DeletionTime.LIVE} if the source is not repaired on the partition level deletion (meaning it was * up to date on it). The output* of this method is only valid after the call to * {@link #onMergedPartitionLevelDeletion}. */ private DeletionTime partitionLevelRepairDeletion(int i) { return repairs[i] == null ? DeletionTime.LIVE : repairs[i].partitionLevelDeletion(); }
protected RowIterator computeNext() { if (returned) return endOfData(); returned = true; return iterator; }
/** * Returns an iterator that iterates over the rows of this update in clustering order. * <p> * Note that this might trigger a sorting of the update, and as such the update will not * be modifiable anymore after this call. * * @return an iterator over the rows of this update. */ @Override public Iterator<Row> iterator() { maybeBuild(); return super.iterator(); }
/** * Create a FilteredPartition holding all the rows of the provided iterator. * * Warning: Note that this method does not close the provided iterator and it is * up to the caller to do so. */ public static FilteredPartition create(RowIterator iterator) { return new FilteredPartition(iterator); }
public UnfilteredPartitions(UnfilteredPartitionIterator input) { super(input); this.isForThrift = input.isForThrift(); }
public void close() { if (result != null) result.close(); } }
public boolean appliesTo(FilteredPartition current) { return current.getRow(clustering) != null; } }
/** * Returns an iterator that iterates over the rows of this update in clustering order. * <p> * Note that this might trigger a sorting of the update, and as such the update will not * be modifiable anymore after this call. * * @return an iterator over the rows of this update. */ @Override public Iterator<Row> iterator() { maybeBuild(); return super.iterator(); }
/** * Returns an iterator that iterates over the rows of this update in clustering order. * <p> * Note that this might trigger a sorting of the update, and as such the update will not * be modifiable anymore after this call. * * @return an iterator over the rows of this update. */ @Override public Iterator<Row> iterator() { maybeBuild(); return super.iterator(); }