Interface RawLog

All Superinterfaces:
AutoCloseable

public interface RawLog extends AutoCloseable
Represents the collection of raw metadata and associated term buffers for publication and image logs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the resource regardless of if free() has succeeded or not.
    Get the fully qualified file name for the log file.
    boolean
    Free the mapped buffers and delete the file.
    The meta data storage for the overall log.
    Slice the underlying buffer to provide an array of term buffers in order.
    An array of term buffer partitions.
    int
    The length of each term in bytes.
  • Method Details

    • termLength

      int termLength()
      The length of each term in bytes.
      Returns:
      the length of each term in bytes.
    • termBuffers

      UnsafeBuffer[] termBuffers()
      An array of term buffer partitions.
      Returns:
      an array of the term buffer partitions.
    • metaData

      UnsafeBuffer metaData()
      The meta data storage for the overall log.
      Returns:
      the meta data storage for the overall log.
    • sliceTerms

      ByteBuffer[] sliceTerms()
      Slice the underlying buffer to provide an array of term buffers in order.
      Returns:
      slices of the underlying buffer to provide an array of term buffers in order.
    • fileName

      String fileName()
      Get the fully qualified file name for the log file.
      Returns:
      the fully qualified file name for the log file.
    • free

      boolean free()
      Free the mapped buffers and delete the file.
      Returns:
      true if successful or false if it should be reattempted.
    • close

      void close()
      Close the resource regardless of if free() has succeeded or not.
      Specified by:
      close in interface AutoCloseable