Class WFSTCompletionLookup.WFSTInputIterator
- java.lang.Object
-
- org.apache.lucene.search.suggest.SortedInputIterator
-
- org.apache.lucene.search.suggest.fst.WFSTCompletionLookup.WFSTInputIterator
-
- All Implemented Interfaces:
InputIterator
,BytesRefIterator
- Enclosing class:
- WFSTCompletionLookup
private static final class WFSTCompletionLookup.WFSTInputIterator extends SortedInputIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.lucene.search.suggest.InputIterator
InputIterator.InputIteratorWrapper
-
-
Field Summary
-
Fields inherited from interface org.apache.lucene.search.suggest.InputIterator
EMPTY
-
-
Constructor Summary
Constructors Constructor Description WFSTInputIterator(Directory tempDir, java.lang.String tempFileNamePrefix, InputIterator source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
decode(BytesRef scratch, ByteArrayDataInput tmpInput)
decodes the weight at the current positionprotected 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-
Methods inherited from class org.apache.lucene.search.suggest.SortedInputIterator
contexts, decodeContexts, decodePayload, hasContexts, hasPayloads, next, payload, weight
-
-
-
-
Constructor Detail
-
WFSTInputIterator
WFSTInputIterator(Directory tempDir, java.lang.String tempFileNamePrefix, InputIterator source) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
encode
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
Description copied from class:SortedInputIterator
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer- Overrides:
encode
in classSortedInputIterator
- Throws:
java.io.IOException
-
decode
protected long decode(BytesRef scratch, ByteArrayDataInput tmpInput)
Description copied from class:SortedInputIterator
decodes the weight at the current position- Overrides:
decode
in classSortedInputIterator
-
-