private static final class WFSTCompletionLookup.WFSTInputIterator extends SortedInputIterator
InputIterator.InputIteratorWrapper
EMPTY
Constructor and Description |
---|
WFSTInputIterator(Directory tempDir,
java.lang.String tempFileNamePrefix,
InputIterator source) |
Modifier and Type | Method and Description |
---|---|
protected long |
decode(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the weight at the current position
|
protected void |
encode(OfflineSorter.ByteSequencesWriter writer,
ByteArrayDataOutput output,
byte[] buffer,
BytesRef spare,
BytesRef payload,
java.util.Set<BytesRef> contexts,
long weight)
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer
|
contexts, decodeContexts, decodePayload, hasContexts, hasPayloads, next, payload, weight
WFSTInputIterator(Directory tempDir, java.lang.String tempFileNamePrefix, InputIterator source) throws java.io.IOException
java.io.IOException
protected void encode(OfflineSorter.ByteSequencesWriter writer, ByteArrayDataOutput output, byte[] buffer, BytesRef spare, BytesRef payload, java.util.Set<BytesRef> contexts, long weight) throws java.io.IOException
SortedInputIterator
encode
in class SortedInputIterator
java.io.IOException
protected long decode(BytesRef scratch, ByteArrayDataInput tmpInput)
SortedInputIterator
decode
in class SortedInputIterator