org.apache.lucene.index
Class SortedBytesMergeUtils.IndexOutputBytesRefConsumer

java.lang.Object
  extended by org.apache.lucene.index.SortedBytesMergeUtils.IndexOutputBytesRefConsumer
All Implemented Interfaces:
SortedBytesMergeUtils.BytesRefConsumer
Enclosing class:
SortedBytesMergeUtils

public static final class SortedBytesMergeUtils.IndexOutputBytesRefConsumer
extends Object
implements SortedBytesMergeUtils.BytesRefConsumer

A simple SortedBytesMergeUtils.BytesRefConsumer that writes the merged BytesRef instances sequentially to an IndexOutput.


Constructor Summary
SortedBytesMergeUtils.IndexOutputBytesRefConsumer(IndexOutput datOut)
          Sole constructor.
 
Method Summary
 void consume(BytesRef currentMergedBytes, int ord, long offset)
          Consumes a single BytesRef.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedBytesMergeUtils.IndexOutputBytesRefConsumer

public SortedBytesMergeUtils.IndexOutputBytesRefConsumer(IndexOutput datOut)
Sole constructor.

Method Detail

consume

public void consume(BytesRef currentMergedBytes,
                    int ord,
                    long offset)
             throws IOException
Description copied from interface: SortedBytesMergeUtils.BytesRefConsumer
Consumes a single BytesRef. The provided BytesRef instances are strictly increasing with respect to the used Comparator used for merging

Specified by:
consume in interface SortedBytesMergeUtils.BytesRefConsumer
Parameters:
currentMergedBytes - the BytesRef to consume
ord - the ordinal of the given BytesRef in the merge target
offset - the byte offset of the given BytesRef in the merge target
Throws:
IOException - if an IOException occurs


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