Class FlinkKey
- java.lang.Object
-
- org.apache.beam.runners.flink.adapter.FlinkKey
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.flink.core.io.IOReadableWritable,org.apache.flink.types.Value
public class FlinkKey extends java.lang.Object implements org.apache.flink.types.Value- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlinkKey()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)<K> KgetKey(org.apache.beam.sdk.coders.Coder<K> coder)java.nio.ByteBuffergetSerializedKey()inthashCode()static FlinkKeyof(java.nio.ByteBuffer bytes)static <K> FlinkKeyof(K key, org.apache.beam.sdk.coders.Coder<K> coder)voidread(org.apache.flink.core.memory.DataInputView in)voidwrite(org.apache.flink.core.memory.DataOutputView out)
-
-
-
Method Detail
-
getSerializedKey
public java.nio.ByteBuffer getSerializedKey()
-
of
public static FlinkKey of(java.nio.ByteBuffer bytes)
-
of
public static <K> FlinkKey of(K key, org.apache.beam.sdk.coders.Coder<K> coder)
-
write
public void write(org.apache.flink.core.memory.DataOutputView out) throws java.io.IOException- Specified by:
writein interfaceorg.apache.flink.core.io.IOReadableWritable- Throws:
java.io.IOException
-
read
public void read(org.apache.flink.core.memory.DataInputView in) throws java.io.IOException- Specified by:
readin interfaceorg.apache.flink.core.io.IOReadableWritable- Throws:
java.io.IOException
-
getKey
public <K> K getKey(org.apache.beam.sdk.coders.Coder<K> coder)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
-