Class FlinkKeyUtils
java.lang.Object
org.apache.beam.runners.flink.translation.wrappers.streaming.FlinkKeyUtils
Utility functions for dealing with key encoding. Beam requires keys to be compared in binary
format. The helpers here ensure that a consistent encoding is used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K> K
decodeKey
(ByteBuffer byteBuffer, Coder<K> keyCoder) Decodes a key from a ByteBuffer containing a byte array.static <K> ByteBuffer
Encodes a key to a byte array wrapped inside a ByteBuffer.
-
Constructor Details
-
FlinkKeyUtils
public FlinkKeyUtils()
-
-
Method Details
-
encodeKey
Encodes a key to a byte array wrapped inside a ByteBuffer. -
decodeKey
Decodes a key from a ByteBuffer containing a byte array.
-