org.apache.lucene.index
Interface SortedBytesMergeUtils.BytesRefConsumer

All Known Implementing Classes:
SortedBytesMergeUtils.IndexOutputBytesRefConsumer
Enclosing class:
SortedBytesMergeUtils

public static interface SortedBytesMergeUtils.BytesRefConsumer

Implementation of this interface consume the merged bytes with their corresponding ordinal and byte offset. The offset is the byte offset in target sorted source where the currently merged BytesRef instance should be stored at.


Method Summary
 void consume(BytesRef ref, int ord, long offset)
          Consumes a single BytesRef.
 

Method Detail

consume

void consume(BytesRef ref,
             int ord,
             long offset)
             throws IOException
Consumes a single BytesRef. The provided BytesRef instances are strictly increasing with respect to the used Comparator used for merging

Parameters:
ref - 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.