|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.SortedBytesMergeUtils.MergeContext
public static final class SortedBytesMergeUtils.MergeContext
Encapsulates contextual information about the merge. This class holds document id to ordinal mappings, offsets for variable length values and the comparator to sort the merged bytes.
Field Summary | |
---|---|
int[] |
docToEntry
Maps each document to the ordinal for its value. |
long[] |
offsets
File-offset for each document; will be null if it's not needed (eg fixed-size values). |
int |
sizePerValues
How many bytes each value occupies, or -1 if it varies. |
Constructor Summary | |
---|---|
SortedBytesMergeUtils.MergeContext(Comparator<BytesRef> comp,
int mergeDocCount,
int size,
DocValues.Type type)
Sole constructor. |
Method Summary | |
---|---|
int |
getMergeDocCount()
Returns number of documents merged. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int sizePerValues
public final int[] docToEntry
public long[] offsets
Constructor Detail |
---|
public SortedBytesMergeUtils.MergeContext(Comparator<BytesRef> comp, int mergeDocCount, int size, DocValues.Type type)
Method Detail |
---|
public int getMergeDocCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |