public final class SortedBytesMergeUtils extends Object
Modifier and Type | Class and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
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
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.