Package org.egothor.stemmer
Interface FrequencyTrie.ValueStreamCodec<V>
- Type Parameters:
V- value type
- Enclosing class:
FrequencyTrie<V>
public static interface FrequencyTrie.ValueStreamCodec<V>
Codec used to persist values stored in the trie.
-
Method Summary
Modifier and TypeMethodDescriptionread(DataInputStream dataInput) Reads one value from the supplied data input.voidwrite(DataOutputStream dataOutput, V value) Writes one value to the supplied data output.
-
Method Details
-
write
Writes one value to the supplied data output.- Parameters:
dataOutput- target data outputvalue- value to write- Throws:
IOException- if writing fails
-
read
Reads one value from the supplied data input.- Parameters:
dataInput- source data input- Returns:
- read value
- Throws:
IOException- if reading fails
-