use of org.apache.cassandra.db.rows.AbstractUnfilteredRowIterator in project cassandra by apache.
the class AbstractReadResponseTest method iter.
public UnfilteredPartitionIterator iter(DecoratedKey key, Unfiltered... unfiltereds) {
SortedSet<Unfiltered> s = new TreeSet<>(cfm.comparator);
Collections.addAll(s, unfiltereds);
final Iterator<Unfiltered> iterator = s.iterator();
UnfilteredRowIterator rowIter = new AbstractUnfilteredRowIterator(cfm, key, DeletionTime.LIVE, cfm.regularAndStaticColumns(), Rows.EMPTY_STATIC_ROW, false, EncodingStats.NO_STATS) {
protected Unfiltered computeNext() {
return iterator.hasNext() ? iterator.next() : endOfData();
}
};
return new SingletonUnfilteredPartitionIterator(rowIter);
}
Aggregations