Class LogMetadata


  • class LogMetadata
    extends java.lang.Object
    • Field Detail

      • LEDGERS_MAP_HEADER_SIZE

        static final int LEDGERS_MAP_HEADER_SIZE
        Ledgers map is composed of multiple parts that can be split into separated entries. Each of them is composed of:
         length: (4 bytes) [0-3]
         ledger id (-1): (8 bytes) [4 - 11]
         entry id: (8 bytes) [12-19]
         num ledgers stored in current metadata entry: (4 bytes) [20 - 23]
         ledger entries: sequence of (ledgerid, size) (8 + 8 bytes each) [24..]
         
        See Also:
        Constant Field Values
      • LEDGERS_MAP_MAX_BATCH_SIZE

        static final int LEDGERS_MAP_MAX_BATCH_SIZE
        See Also:
        Constant Field Values
    • Constructor Detail

      • LogMetadata

        LogMetadata()
    • Method Detail

      • write

        static void write​(LogWriter writer,
                          EntryLogMetadata metadata,
                          io.netty.buffer.ByteBufAllocator allocator)
                   throws java.io.IOException
        Throws:
        java.io.IOException