Bedrock.DataPlane.Materializer.Olivine.CompactionWriter.SplitFile (bedrock v0.6.0)
View SourceCompactionWriter implementation that writes to two separate files.
This is the current behavior used for local storage: data goes to a .data file and index goes to a separate .idx file.
Summary
Functions
Create a new SplitFile writer for the given paths.
Types
@type result() :: %{ data_fd: :file.fd(), idx_fd: :file.fd(), data_path: charlist(), idx_path: charlist(), data_offset: non_neg_integer(), idx_offset: non_neg_integer() }
@type t() :: %Bedrock.DataPlane.Materializer.Olivine.CompactionWriter.SplitFile{ data_fd: :file.fd(), data_offset: non_neg_integer(), data_path: charlist(), idx_fd: :file.fd(), idx_path: charlist() }