public class DictionaryMergingIterator<T extends Comparable<T>> extends Object implements CloseableIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected IntBuffer[] |
conversions |
protected int |
counter |
protected List<Pair<ByteBuffer,Integer>> |
directBufferAllocations |
protected PriorityQueue<Pair<Integer,com.google.common.collect.PeekingIterator<T>>> |
pQueue |
| Constructor and Description |
|---|
DictionaryMergingIterator(Indexed<T>[] dimValueLookups,
Comparator<Pair<Integer,com.google.common.collect.PeekingIterator<T>>> comparator,
boolean useDirect) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCardinality() |
boolean |
hasNext() |
static <T extends Comparable<T>> |
makePeekingComparator() |
protected boolean |
needConversion(int index) |
T |
next() |
void |
remove() |
protected com.google.common.collect.PeekingIterator<T> |
transformIndexedIterator(Indexed<T> indexed) |
protected T |
writeTranslate(Pair<Integer,com.google.common.collect.PeekingIterator<T>> smallest,
int counter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflatMap, mapforEachRemainingprotected final IntBuffer[] conversions
protected final List<Pair<ByteBuffer,Integer>> directBufferAllocations
protected final PriorityQueue<Pair<Integer,com.google.common.collect.PeekingIterator<T extends Comparable<T>>>> pQueue
protected int counter
public static <T extends Comparable<T>> Comparator<Pair<Integer,com.google.common.collect.PeekingIterator<T>>> makePeekingComparator()
public boolean hasNext()
hasNext in interface Iterator<T extends Comparable<T>>public int getCardinality()
protected com.google.common.collect.PeekingIterator<T> transformIndexedIterator(Indexed<T> indexed)
protected boolean needConversion(int index)
protected T writeTranslate(Pair<Integer,com.google.common.collect.PeekingIterator<T>> smallest, int counter)
public void remove()
remove in interface Iterator<T extends Comparable<T>>public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.