public class KeyValueSerializer extends ObjectSerializer<KeyValue>
KeyValue.
NOTE: InternalRow and KeyValue produced by this serializer are reused.
rowSerializer| Constructor and Description |
|---|
KeyValueSerializer(RowType keyType,
RowType valueType) |
| Modifier and Type | Method and Description |
|---|---|
KeyValue |
fromRow(InternalRow row)
Convert a
InternalRow to T. |
KeyValue |
getCopiedKv() |
KeyValue |
getReusedKv() |
InternalRow |
toRow(InternalRow key,
long sequenceNumber,
RowKind valueKind,
InternalRow value) |
InternalRow |
toRow(KeyValue record)
Convert a
T to InternalRow. |
deserialize, deserializeFromBytes, deserializeList, deserializeList, fieldTypes, numFields, serialize, serializeList, serializeList, serializeToBytespublic InternalRow toRow(KeyValue record)
ObjectSerializerT to InternalRow.toRow in class ObjectSerializer<KeyValue>public InternalRow toRow(InternalRow key, long sequenceNumber, RowKind valueKind, InternalRow value)
public KeyValue fromRow(InternalRow row)
ObjectSerializerInternalRow to T.fromRow in class ObjectSerializer<KeyValue>public KeyValue getReusedKv()
public KeyValue getCopiedKv()
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.