MCPcopy Index your code
hub / github.com/aggregateknowledge/java-hll / toBytes

Method toBytes

src/main/java/net/agkn/hll/HLL.java:868–870  ·  view source on GitHub ↗

Serializes the HLL to an array of bytes in correspondence with the format of the default schema version, SerializationUtil#DEFAULT_SCHEMA_VERSION. @return the array of bytes representing the HLL. This will never be null or empty.

()

Source from the content-addressed store, hash-verified

866 * <code>null</code> or empty.
867 */
868 public byte[] toBytes() {
869 return toBytes(SerializationUtil.DEFAULT_SCHEMA_VERSION);
870 }
871
872 /**
873 * Serializes the HLL to an array of bytes in correspondence with the format

Callers 5

toFromBytesTestMethod · 0.95
toFromBytesTestMethod · 0.95
toFromBytesTestMethod · 0.95
assertCardinalityMethod · 0.95
toByteAMethod · 0.80

Calls 8

writeWordMethod · 0.95
getBytesMethod · 0.95
log2Method · 0.95
getRegisterContentsMethod · 0.80
paddingBytesMethod · 0.65
getSerializerMethod · 0.65
schemaVersionNumberMethod · 0.65
writeMetadataMethod · 0.65

Tested by 5

toFromBytesTestMethod · 0.76
toFromBytesTestMethod · 0.76
toFromBytesTestMethod · 0.76
assertCardinalityMethod · 0.76
toByteAMethod · 0.64