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 Type
    Method
    Description
    read(DataInputStream dataInput)
    Reads one value from the supplied data input.
    void
    write(DataOutputStream dataOutput, V value)
    Writes one value to the supplied data output.
  • Method Details

    • write

      void write(DataOutputStream dataOutput, V value) throws IOException
      Writes one value to the supplied data output.
      Parameters:
      dataOutput - target data output
      value - value to write
      Throws:
      IOException - if writing fails
    • read

      V read(DataInputStream dataInput) throws IOException
      Reads one value from the supplied data input.
      Parameters:
      dataInput - source data input
      Returns:
      read value
      Throws:
      IOException - if reading fails