public class SingletonUnfilteredPartitionIterator extends java.lang.Object implements UnfilteredPartitionIterator
| Constructor and Description |
|---|
SingletonUnfilteredPartitionIterator(UnfilteredRowIterator iter,
boolean isForThrift) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
boolean |
isForThrift()
Whether that partition iterator is for a thrift queries.
|
CFMetaData |
metadata() |
UnfilteredRowIterator |
next() |
void |
remove() |
public SingletonUnfilteredPartitionIterator(UnfilteredRowIterator iter, boolean isForThrift)
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.
isForThrift in interface UnfilteredPartitionIteratorpublic CFMetaData metadata()
metadata in interface UnfilteredPartitionIteratorpublic boolean hasNext()
hasNext in interface java.util.Iterator<UnfilteredRowIterator>public UnfilteredRowIterator next()
next in interface java.util.Iterator<UnfilteredRowIterator>public void remove()
remove in interface java.util.Iterator<UnfilteredRowIterator>public void close()
close in interface java.lang.AutoCloseableclose in interface BasePartitionIterator<UnfilteredRowIterator>close in interface CloseableIterator<UnfilteredRowIterator>Copyright © 2018 The Apache Software Foundation