Package cz.o2.proxima.beam.core.io
Class PairCoder<K,V>
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.CustomCoder<Pair<K,V>>
-
- cz.o2.proxima.beam.core.io.PairCoder<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
@Internal public class PairCoder<K,V> extends org.apache.beam.sdk.coders.CustomCoder<Pair<K,V>>
A coder forPair
s.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<K,V>
decode(java.io.InputStream inStream)
static <K,V>
org.apache.beam.sdk.values.TypeDescriptor<Pair<K,V>>descriptor(org.apache.beam.sdk.values.TypeDescriptor<K> key, org.apache.beam.sdk.values.TypeDescriptor<V> value)
void
encode(Pair<K,V> value, java.io.OutputStream outStream)
boolean
equals(java.lang.Object obj)
org.apache.beam.sdk.values.TypeDescriptor<Pair<K,V>>
getEncodedTypeDescriptor()
int
hashCode()
static <K,V>
PairCoder<K,V>of(org.apache.beam.sdk.coders.Coder<K> keyCoder, org.apache.beam.sdk.coders.Coder<V> valueCoder)
void
verifyDeterministic()
-
-
-
Method Detail
-
of
public static <K,V> PairCoder<K,V> of(org.apache.beam.sdk.coders.Coder<K> keyCoder, org.apache.beam.sdk.coders.Coder<V> valueCoder)
-
descriptor
public static <K,V> org.apache.beam.sdk.values.TypeDescriptor<Pair<K,V>> descriptor(org.apache.beam.sdk.values.TypeDescriptor<K> key, org.apache.beam.sdk.values.TypeDescriptor<V> value)
-
encode
public void encode(Pair<K,V> value, java.io.OutputStream outStream) throws java.io.IOException
-
getEncodedTypeDescriptor
public org.apache.beam.sdk.values.TypeDescriptor<Pair<K,V>> getEncodedTypeDescriptor()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-