public abstract class WrappingUnfilteredPartitionIterator extends AbstractUnfilteredPartitionIterator
| Modifier and Type | Field and Description |
|---|---|
protected UnfilteredPartitionIterator |
wrapped |
| Modifier | Constructor and Description |
|---|---|
protected |
WrappingUnfilteredPartitionIterator(UnfilteredPartitionIterator wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected UnfilteredRowIterator |
computeNext(UnfilteredRowIterator iter)
Given the next UnfilteredRowIterator from the wrapped partition iterator, return
the (potentially modified) UnfilteredRowIterator to return.
|
boolean |
hasNext() |
boolean |
isForThrift()
Whether that partition iterator is for a thrift queries.
|
CFMetaData |
metadata() |
UnfilteredRowIterator |
next() |
removeprotected final UnfilteredPartitionIterator wrapped
protected WrappingUnfilteredPartitionIterator(UnfilteredPartitionIterator wrapped)
public boolean isForThrift()
UnfilteredPartitionIteratorIf this is true, the partition iterator may return some empty UnfilteredRowIterator and those should be preserved as thrift include partitions that "exists" (have some cells even if this are actually deleted) but have nothing matching the query.
public CFMetaData metadata()
public boolean hasNext()
public UnfilteredRowIterator next()
protected UnfilteredRowIterator computeNext(UnfilteredRowIterator iter)
null of if it's empty.
The default implementation return it's input unchanged to make it easier
to write wrapping partition iterators that only change the close method.public void close()
close in interface java.lang.AutoCloseableclose in interface UnfilteredPartitionIteratorclose in class AbstractUnfilteredPartitionIteratorCopyright © 2015 The Apache Software Foundation