Interface StatCollector


public interface StatCollector
Optional lifecycle hook that observes attribute chunks as they are streamed, computing running distribution statistics (histograms, min/max, distinct counts) to be written into the snapshot footer.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Finalizes and serializes the statistics metadata payload to be stored in the footer.
    void
    observeChunk(MemorySegment segment, int count)
    Called for each chunk of attribute values written to the stream.
  • Method Details

    • observeChunk

      void observeChunk(MemorySegment segment, int count)
      Called for each chunk of attribute values written to the stream.
      Parameters:
      segment - memory segment containing the chunk data
      count - number of values present in the chunk
    • finalizeMetadataPayload

      byte[] finalizeMetadataPayload()
      Finalizes and serializes the statistics metadata payload to be stored in the footer.
      Returns:
      raw binary metadata payload