pub fn encode_to_java_bytes(sketch: &DDSketch) -> Vec<u8> ⓘExpand description
Encode a DDSketch into the Java-compatible binary format.
The output follows the encoding order of
DDSketchWithExactSummaryStatistics.encode() then DDSketch.encode():
- Summary statistics: COUNT, MIN, MAX (if count > 0)
- SUM (if sum != 0)
- Index mapping (LOG layout): gamma, indexOffset
- Zero count (if > 0)
- Positive store bins
- Negative store bins