Interface NativeSourceData.KeySerde<K>
- Type Parameters:
K- The native key type.
- Enclosing class:
NativeSourceData<K extends Comparable<K>>
public static interface NativeSourceData.KeySerde<K>
A serializer / deserializer pair for a native key. The implementation must meet the contract:
K k = ...
k.compareTo(KeySerde.fromString(KeySerde.toString(k))) == 0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NativeSourceData.KeySerde<String>Many storage implementations use String keys. -
Method Summary
-
Field Details
-
STRING_SERDE
Many storage implementations use String keys. This implementation is to support those.
-
-
Method Details
-
toString
Creates a parsable string representation of a native key.- Parameters:
nativeKey- the native key.- Returns:
- the string representation.
-
fromString
Creates a native key from a parsable string representation.- Parameters:
nativeKeyString- the parsable string representation.- Returns:
- the native key.
-