public final class GlueSchemaRegistryDeserializerDataParser extends Object
| Modifier and Type | Method and Description |
|---|---|
Byte |
getCompressionByte(ByteBuffer byteBuffer)
Get the compression byte.
|
Byte |
getHeaderVersionByte(ByteBuffer byteBuffer)
Get the header version byte.
|
static GlueSchemaRegistryDeserializerDataParser |
getInstance()
Singleton instantiation helper.
|
byte[] |
getPlainData(ByteBuffer byteBuffer) |
UUID |
getSchemaVersionId(ByteBuffer byteBuffer)
Gets the schema version id embedded within the data.
|
boolean |
isCompressionEnabled(ByteBuffer byteBuffer)
Is Compression enabled
|
boolean |
isDataCompatible(ByteBuffer byteBuffer,
StringBuilder errorBuilder)
Validates the data for compatibility with schema registry.
|
public static GlueSchemaRegistryDeserializerDataParser getInstance()
public UUID getSchemaVersionId(ByteBuffer byteBuffer)
byteBuffer - data from where schema version id has to be extracted as ByteBufferGlueSchemaRegistryIncompatibleDataException - when the data is incompatible with
schema registrypublic boolean isDataCompatible(ByteBuffer byteBuffer, StringBuilder errorBuilder)
byteBuffer - input data as byte buffererrorBuilder - error message for the validation that can be used by the
callerpublic byte[] getPlainData(ByteBuffer byteBuffer)
public boolean isCompressionEnabled(ByteBuffer byteBuffer)
byteBuffer - byte bufferpublic Byte getCompressionByte(ByteBuffer byteBuffer)
byteBuffer - byte bufferpublic Byte getHeaderVersionByte(ByteBuffer byteBuffer)
byteBuffer - byte bufferCopyright © 2024. All rights reserved.