Class SideInputCoder<T>
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.StructuredCoder<SideInputElement<T>>
-
- org.apache.nemo.compiler.frontend.beam.coder.SideInputCoder<T>
-
- Type Parameters:
T
- type of the side input value.
- All Implemented Interfaces:
java.io.Serializable
public final class SideInputCoder<T> extends org.apache.beam.sdk.coders.StructuredCoder<SideInputElement<T>>
EncoderFactory for side inputs.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SideInputElement<T>
decode(java.io.InputStream inStream)
void
encode(SideInputElement<T> sideInputElement, java.io.OutputStream outStream)
java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>>
getCoderArguments()
static SideInputCoder
of(org.apache.beam.sdk.coders.Coder valueCoder)
void
verifyDeterministic()
-
Methods inherited from class org.apache.beam.sdk.coders.StructuredCoder
equals, getComponents, hashCode, toString
-
-
-
-
Method Detail
-
of
public static SideInputCoder of(org.apache.beam.sdk.coders.Coder valueCoder)
- Parameters:
valueCoder
- the coder for side input.- Returns:
- a new coder
-
encode
public void encode(SideInputElement<T> sideInputElement, java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
encode
in classorg.apache.beam.sdk.coders.Coder<SideInputElement<T>>
- Throws:
java.io.IOException
-
decode
public SideInputElement<T> decode(java.io.InputStream inStream) throws java.io.IOException
- Specified by:
decode
in classorg.apache.beam.sdk.coders.Coder<SideInputElement<T>>
- 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<SideInputElement<T>>
-
verifyDeterministic
public void verifyDeterministic() throws org.apache.beam.sdk.coders.Coder.NonDeterministicException
- Specified by:
verifyDeterministic
in classorg.apache.beam.sdk.coders.Coder<SideInputElement<T>>
- Throws:
org.apache.beam.sdk.coders.Coder.NonDeterministicException
-
-