|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.SortedBytesMergeUtils
public final class SortedBytesMergeUtils
Utility class for merging SortedBytes DocValues instances.
Nested Class Summary | |
---|---|
static interface |
SortedBytesMergeUtils.BytesRefConsumer
Implementation of this interface consume the merged bytes with their corresponding ordinal and byte offset. |
static class |
SortedBytesMergeUtils.IndexOutputBytesRefConsumer
A simple SortedBytesMergeUtils.BytesRefConsumer that writes the merged BytesRef
instances sequentially to an IndexOutput . |
static class |
SortedBytesMergeUtils.MergeContext
Encapsulates contextual information about the merge. |
static class |
SortedBytesMergeUtils.SortedSourceSlice
SortedBytesMergeUtils.SortedSourceSlice represents a single DocValues.SortedSource merge candidate. |
Method Summary | |
---|---|
static List<SortedBytesMergeUtils.SortedSourceSlice> |
buildSlices(int[] docBases,
MergeState.DocMap[] docMaps,
DocValues[] docValues,
SortedBytesMergeUtils.MergeContext ctx)
Creates the SortedBytesMergeUtils.SortedSourceSlice s for
merging. |
static SortedBytesMergeUtils.MergeContext |
init(DocValues.Type type,
DocValues[] docValues,
Comparator<BytesRef> comp,
int mergeDocCount)
Creates the SortedBytesMergeUtils.MergeContext necessary for merging
the ordinals. |
static int |
mergeRecords(SortedBytesMergeUtils.MergeContext ctx,
SortedBytesMergeUtils.BytesRefConsumer consumer,
List<SortedBytesMergeUtils.SortedSourceSlice> slices)
Does the "real work" of merging the slices and computing the ord mapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SortedBytesMergeUtils.MergeContext init(DocValues.Type type, DocValues[] docValues, Comparator<BytesRef> comp, int mergeDocCount)
SortedBytesMergeUtils.MergeContext
necessary for merging
the ordinals.
public static List<SortedBytesMergeUtils.SortedSourceSlice> buildSlices(int[] docBases, MergeState.DocMap[] docMaps, DocValues[] docValues, SortedBytesMergeUtils.MergeContext ctx) throws IOException
SortedBytesMergeUtils.SortedSourceSlice
s for
merging.
IOException
public static int mergeRecords(SortedBytesMergeUtils.MergeContext ctx, SortedBytesMergeUtils.BytesRefConsumer consumer, List<SortedBytesMergeUtils.SortedSourceSlice> slices) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |