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 TypeMethodDescriptionbyte[]Finalizes and serializes the statistics metadata payload to be stored in the footer.voidobserveChunk(MemorySegment segment, int count) Called for each chunk of attribute values written to the stream.
-
Method Details
-
observeChunk
Called for each chunk of attribute values written to the stream.- Parameters:
segment- memory segment containing the chunk datacount- 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
-