You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datasketches.apache.org by "zhangxinyao88 (via GitHub)" <gi...@apache.org> on 2026/09/23 04:23:38 UTC

Re: [I] Implement Display for sketches (datasketches-rust)

zhangxinyao88 commented on issue #212:
URL: https://github.com/apache/datasketches-rust/issues/212#issuecomment-5789014463

   > @leerho what is the design principle of these formats in datasketches-java. Are they mainly for debugging or diagnostics?
   
   [`HllSketch#toString()`](https://github.com/apache/datasketches-java/blob/main/src/main/java/org/apache/datasketches/hll/HllSketch.java#L87) is documented as a sketch summary, and [`CpcSketch#toString()`](https://github.com/apache/datasketches-java/blob/main/src/main/java/org/apache/datasketches/cpc/CpcSketch.java#L712) as a human-readable summary. They include state such as current mode and bounds.
   
   I am inclined to expose a `summary()` method in Rust rather than implement `Display`, unless Java treats this text as a compatibility contract. Could you clarify whether that is the intended contract?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org