Class SnappyBlock
java.lang.Object
org.mockserver.metrics.remotewrite.SnappyBlock
Snappy compression in the raw block format that the Prometheus
remote-write protocol requires (NOT the framed/streaming format). Thin
wrapper over
Snappy.compress(byte[]) so the exporter and tests share
one canonical implementation.-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]compress(byte[] raw) Compressrawinto the Snappy block format.
-
Method Details
-
compress
public static byte[] compress(byte[] raw) Compressrawinto the Snappy block format. Wraps the checkedIOExceptionthrown by snappy-java (compression of an in-memory byte array does not do real I/O) in anUncheckedIOExceptionso callers can treat it as a normal runtime failure; the exporter catches it and fails soft.
-