public class CountingUnfilteredPartitionIterator extends WrappingUnfilteredPartitionIterator
Modifier and Type | Field and Description |
---|---|
protected DataLimits.Counter |
counter |
wrapped
Constructor and Description |
---|
CountingUnfilteredPartitionIterator(UnfilteredPartitionIterator result,
DataLimits.Counter counter) |
Modifier and Type | Method and Description |
---|---|
UnfilteredRowIterator |
computeNext(UnfilteredRowIterator iter)
Given the next UnfilteredRowIterator from the wrapped partition iterator, return
the (potentially modified) UnfilteredRowIterator to return.
|
DataLimits.Counter |
counter() |
boolean |
hasNext() |
close, isForThrift, metadata, next
remove
protected final DataLimits.Counter counter
public CountingUnfilteredPartitionIterator(UnfilteredPartitionIterator result, DataLimits.Counter counter)
public DataLimits.Counter counter()
public boolean hasNext()
hasNext
in interface java.util.Iterator<UnfilteredRowIterator>
hasNext
in class WrappingUnfilteredPartitionIterator
public UnfilteredRowIterator computeNext(UnfilteredRowIterator iter)
WrappingUnfilteredPartitionIterator
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.computeNext
in class WrappingUnfilteredPartitionIterator
Copyright © 2015 The Apache Software Foundation