public static final class SortedBytesMergeUtils.IndexOutputBytesRefConsumer extends Object implements SortedBytesMergeUtils.BytesRefConsumer
SortedBytesMergeUtils.BytesRefConsumer
that writes the merged BytesRef
instances sequentially to an IndexOutput
.Constructor and Description |
---|
SortedBytesMergeUtils.IndexOutputBytesRefConsumer(IndexOutput datOut)
Sole constructor.
|
public SortedBytesMergeUtils.IndexOutputBytesRefConsumer(IndexOutput datOut)
public void consume(BytesRef currentMergedBytes, int ord, long offset) throws IOException
SortedBytesMergeUtils.BytesRefConsumer
BytesRef
. The provided BytesRef
instances are strictly increasing with respect to the used
Comparator
used for mergingconsume
in interface SortedBytesMergeUtils.BytesRefConsumer
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
targetIOException
- if an IOException
occursCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.