org.apache.lucene.index
Class SortedBytesMergeUtils.IndexOutputBytesRefConsumer
java.lang.Object
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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedBytesMergeUtils.IndexOutputBytesRefConsumer
public SortedBytesMergeUtils.IndexOutputBytesRefConsumer(IndexOutput datOut)
- Sole constructor.
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 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-2012 Apache Software Foundation. All Rights Reserved.