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 longdecode(BytesRef scratch, ByteArrayDataInput tmpInput)decodes the weight at the current positionprotected voidencode(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:SortedInputIteratorencodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer- Overrides:
encodein classSortedInputIterator- Throws:
java.io.IOException
-
decode
protected long decode(BytesRef scratch, ByteArrayDataInput tmpInput)
Description copied from class:SortedInputIteratordecodes the weight at the current position- Overrides:
decodein classSortedInputIterator
-
-