Package org.apache.druid.segment
Class SimpleDictionaryMergingIterator<T extends Comparable<T>>
- java.lang.Object
-
- org.apache.druid.segment.SimpleDictionaryMergingIterator<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<T>,CloseableIterator<T>
public class SimpleDictionaryMergingIterator<T extends Comparable<T>> extends Object implements CloseableIterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected intcounterprotected PriorityQueue<com.google.common.collect.PeekingIterator<T>>pQueue
-
Constructor Summary
Constructors Constructor Description SimpleDictionaryMergingIterator(Indexed<T>[] dimValueLookups, Comparator<com.google.common.collect.PeekingIterator<T>> comparator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetCardinality()booleanhasNext()static <T extends Comparable<T>>
Comparator<com.google.common.collect.PeekingIterator<T>>makePeekingComparator()Tnext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.java.util.common.parsers.CloseableIterator
flatMap, map
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Field Detail
-
pQueue
protected final PriorityQueue<com.google.common.collect.PeekingIterator<T extends Comparable<T>>> pQueue
-
counter
protected int counter
-
-
Constructor Detail
-
SimpleDictionaryMergingIterator
public SimpleDictionaryMergingIterator(Indexed<T>[] dimValueLookups, Comparator<com.google.common.collect.PeekingIterator<T>> comparator)
-
-
Method Detail
-
makePeekingComparator
public static <T extends Comparable<T>> Comparator<com.google.common.collect.PeekingIterator<T>> makePeekingComparator()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<T extends Comparable<T>>
-
getCardinality
public int getCardinality()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-