Class VeniceMessageCoder<K,V>
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.StructuredCoder<org.apache.beam.sdk.values.KV<K,ChangeEvent<V>>>
-
- com.linkedin.venice.beam.consumer.VeniceMessageCoder<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
public final class VeniceMessageCoder<K,V> extends org.apache.beam.sdk.coders.StructuredCoder<org.apache.beam.sdk.values.KV<K,ChangeEvent<V>>>
UsesKvCoder
to encode/decodePubSubMessage
key and value.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.values.KV<K,ChangeEvent<V>>
decode(java.io.InputStream inStream)
void
encode(org.apache.beam.sdk.values.KV<K,ChangeEvent<V>> value, java.io.OutputStream outStream)
java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>>
getCoderArguments()
static <K,V>
VeniceMessageCoder<K,V>of()
void
verifyDeterministic()
-
Methods inherited from class org.apache.beam.sdk.coders.StructuredCoder
equals, getComponents, hashCode, toString
-
-
-
-
Method Detail
-
of
public static <K,V> VeniceMessageCoder<K,V> of()
-
encode
public void encode(org.apache.beam.sdk.values.KV<K,ChangeEvent<V>> value, java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
encode
in classorg.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<K,ChangeEvent<V>>>
- Throws:
java.io.IOException
-
decode
public org.apache.beam.sdk.values.KV<K,ChangeEvent<V>> decode(java.io.InputStream inStream) throws java.io.IOException
- Specified by:
decode
in classorg.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<K,ChangeEvent<V>>>
- Throws:
java.io.IOException
-
getCoderArguments
public java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>> getCoderArguments()
- Specified by:
getCoderArguments
in classorg.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<K,ChangeEvent<V>>>
-
verifyDeterministic
public void verifyDeterministic()
- Specified by:
verifyDeterministic
in classorg.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<K,ChangeEvent<V>>>
-
-