org.apache.lucene.index
Class SortedBytesMergeUtils.SortedSourceSlice

java.lang.Object
  extended by org.apache.lucene.index.SortedBytesMergeUtils.SortedSourceSlice
Enclosing class:
SortedBytesMergeUtils

public static class SortedBytesMergeUtils.SortedSourceSlice
extends Object

SortedBytesMergeUtils.SortedSourceSlice represents a single DocValues.SortedSource merge candidate. It encapsulates ordinal and pre-calculated target doc id to ordinal mappings. This class also holds state private to the merge process.

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

Method Summary
 int[] toAbsolutOrds(int[] docToOrd)
          Fills in the absolute ords for this slice.
 void writeOrds(PackedInts.Writer writer)
          Writes ords for this slice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toAbsolutOrds

public int[] toAbsolutOrds(int[] docToOrd)
Fills in the absolute ords for this slice.

Returns:
the provided docToOrd

writeOrds

public void writeOrds(PackedInts.Writer writer)
               throws IOException
Writes ords for this slice.

Throws:
IOException


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