public class FlinkKey
extends java.lang.Object
implements org.apache.flink.types.Value
| Constructor and Description |
|---|
FlinkKey() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
<K> K |
getKey(Coder<K> coder) |
java.nio.ByteBuffer |
getSerializedKey() |
int |
hashCode() |
static FlinkKey |
of(java.nio.ByteBuffer bytes) |
static <K> FlinkKey |
of(K key,
Coder<K> coder) |
void |
read(org.apache.flink.core.memory.DataInputView in) |
void |
write(org.apache.flink.core.memory.DataOutputView out) |
public java.nio.ByteBuffer getSerializedKey()
public static FlinkKey of(java.nio.ByteBuffer bytes)
public void write(org.apache.flink.core.memory.DataOutputView out)
throws java.io.IOException
write in interface org.apache.flink.core.io.IOReadableWritablejava.io.IOExceptionpublic void read(org.apache.flink.core.memory.DataInputView in)
throws java.io.IOException
read in interface org.apache.flink.core.io.IOReadableWritablejava.io.IOExceptionpublic <K> K getKey(Coder<K> coder)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Object