Interface IntegerWriter

All Known Implementing Classes:
RunLengthIntegerWriter, RunLengthIntegerWriterV2

public interface IntegerWriter
Interface for writing integers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    changeIv(Consumer<byte[]> modifier)
     
    long
    Estimate the amount of memory being used.
    void
    Flush the buffer
    void
    Get position from the stream.
    void
    write(long value)
    Write the integer value
  • Method Details

    • getPosition

      void getPosition(PositionRecorder recorder) throws IOException
      Get position from the stream.
      Parameters:
      recorder -
      Throws:
      IOException
    • write

      void write(long value) throws IOException
      Write the integer value
      Parameters:
      value -
      Throws:
      IOException
    • flush

      void flush() throws IOException
      Flush the buffer
      Throws:
      IOException
    • estimateMemory

      long estimateMemory()
      Estimate the amount of memory being used.
      Returns:
      number of bytes
    • changeIv

      void changeIv(Consumer<byte[]> modifier)