public final class SerializerDeserializer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SerializerDeserializer.SketchType
Defines the sketch classes that this SerializerDeserializer can handle.
|
| Constructor and Description |
|---|
SerializerDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
static SerializerDeserializer.SketchType |
getSketchType(org.apache.datasketches.memory.Memory mem)
Gets the sketch type byte from the given Memory image
|
static void |
validateFamily(byte familyId,
byte preambleLongs)
Validates the preamble-Longs value given the family ID
|
static void |
validateType(byte sketchTypeByte,
SerializerDeserializer.SketchType expectedType)
Validates the sketch type byte versus the expected value
|
public static void validateFamily(byte familyId,
byte preambleLongs)
familyId - the given family IDpreambleLongs - the given preambleLongs valuepublic static void validateType(byte sketchTypeByte,
SerializerDeserializer.SketchType expectedType)
sketchTypeByte - the given sketch type byteexpectedType - the expected valuepublic static SerializerDeserializer.SketchType getSketchType(org.apache.datasketches.memory.Memory mem)
mem - the given Memory imageCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.