public class SimpleDictionaryMergingIterator<T extends Comparable<T>> extends Object implements CloseableIterator<T>
Modifier and Type | Field and Description |
---|---|
protected int |
counter |
protected PriorityQueue<com.google.common.collect.PeekingIterator<T>> |
pQueue |
Constructor and Description |
---|
SimpleDictionaryMergingIterator(Indexed<T>[] dimValueLookups,
Comparator<com.google.common.collect.PeekingIterator<T>> comparator) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getCardinality() |
boolean |
hasNext() |
static <T extends Comparable<T>> |
makePeekingComparator() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flatMap, map
forEachRemaining
protected final PriorityQueue<com.google.common.collect.PeekingIterator<T extends Comparable<T>>> pQueue
protected int counter
public SimpleDictionaryMergingIterator(Indexed<T>[] dimValueLookups, Comparator<com.google.common.collect.PeekingIterator<T>> comparator)
public static <T extends Comparable<T>> Comparator<com.google.common.collect.PeekingIterator<T>> makePeekingComparator()
public boolean hasNext()
hasNext
in interface Iterator<T extends Comparable<T>>
public int getCardinality()
public void remove()
remove
in interface Iterator<T extends Comparable<T>>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.