Bedrock.DataPlane.Materializer.Olivine.CompactionWriter.Bundle (bedrock v0.5.2)
View SourceCompactionWriter implementation that writes to a single bundle file.
Bundle format: [data bytes] [index record] <- existing IndexDatabase format (magic 0x4F4C5644)
The data_end_offset marks where data ends and index begins. This format is suitable for ObjectStorage upload as a single file.
Summary
Types
@type result() :: %{ fd: :file.fd(), path: charlist(), data_end_offset: non_neg_integer(), total_size: non_neg_integer() }
@type t() :: %Bedrock.DataPlane.Materializer.Olivine.CompactionWriter.Bundle{ data_end_offset: non_neg_integer(), fd: :file.fd(), path: charlist() }