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() |
remove
protected final UnfilteredPartitionIterator wrapped
protected WrappingUnfilteredPartitionIterator(UnfilteredPartitionIterator wrapped)
public boolean isForThrift()
UnfilteredPartitionIterator
If 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.AutoCloseable
close
in interface UnfilteredPartitionIterator
close
in class AbstractUnfilteredPartitionIterator
Copyright © 2015 The Apache Software Foundation