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()
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.
isForThrift
in interface UnfilteredPartitionIterator
public CFMetaData metadata()
metadata
in interface UnfilteredPartitionIterator
public 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.AutoCloseable
close
in interface BasePartitionIterator<UnfilteredRowIterator>
close
in interface CloseableIterator<UnfilteredRowIterator>
Copyright © 2020 The Apache Software Foundation