org.apache.lucene.index
Class SortedBytesMergeUtils

java.lang.Object
  extended by org.apache.lucene.index.SortedBytesMergeUtils

public final class SortedBytesMergeUtils
extends Object

NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

Nested Class Summary
static interface SortedBytesMergeUtils.BytesRefConsumer
           
static class SortedBytesMergeUtils.IndexOutputBytesRefConsumer
           
static class SortedBytesMergeUtils.MergeContext
           
static class SortedBytesMergeUtils.SortedSourceSlice
           
 
Method Summary
static List<SortedBytesMergeUtils.SortedSourceSlice> buildSlices(int[] docBases, MergeState.DocMap[] docMaps, DocValues[] docValues, SortedBytesMergeUtils.MergeContext ctx)
           
static SortedBytesMergeUtils.MergeContext init(DocValues.Type type, DocValues[] docValues, Comparator<BytesRef> comp, int mergeDocCount)
           
static int mergeRecords(SortedBytesMergeUtils.MergeContext ctx, SortedBytesMergeUtils.BytesRefConsumer consumer, List<SortedBytesMergeUtils.SortedSourceSlice> slices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static SortedBytesMergeUtils.MergeContext init(DocValues.Type type,
                                                      DocValues[] docValues,
                                                      Comparator<BytesRef> comp,
                                                      int mergeDocCount)

buildSlices

public static List<SortedBytesMergeUtils.SortedSourceSlice> buildSlices(int[] docBases,
                                                                        MergeState.DocMap[] docMaps,
                                                                        DocValues[] docValues,
                                                                        SortedBytesMergeUtils.MergeContext ctx)
                                                                 throws IOException
Throws:
IOException

mergeRecords

public static int mergeRecords(SortedBytesMergeUtils.MergeContext ctx,
                               SortedBytesMergeUtils.BytesRefConsumer consumer,
                               List<SortedBytesMergeUtils.SortedSourceSlice> slices)
                        throws IOException
Throws:
IOException


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.