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.
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 consumeord - the ordinal of the given BytesRef in the merge targetoffset - the byte offset of the given BytesRef in the merge
target
- Throws:
IOException - if an IOException occurs
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.