Package org.apache.nemo.examples.beam
Class FloatArrayCoder
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.StructuredCoder<T>
-
- org.apache.beam.sdk.coders.AtomicCoder<float[]>
-
- org.apache.nemo.examples.beam.FloatArrayCoder
-
- All Implemented Interfaces:
java.io.Serializable
public final class FloatArrayCoder extends org.apache.beam.sdk.coders.AtomicCoder<float[]>
EncoderFactory for float[].- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
decode(java.io.InputStream inStream)
void
encode(float[] ary, java.io.OutputStream outStream)
static FloatArrayCoder
of()
-
Methods inherited from class org.apache.beam.sdk.coders.AtomicCoder
equals, getCoderArguments, getComponents, hashCode, verifyDeterministic
-
-
-
-
Method Detail
-
of
public static FloatArrayCoder of()
- Returns:
- a new coder
-
encode
public void encode(float[] ary, java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
encode
in classorg.apache.beam.sdk.coders.Coder<float[]>
- Throws:
java.io.IOException
-
decode
public float[] decode(java.io.InputStream inStream) throws java.io.IOException
- Specified by:
decode
in classorg.apache.beam.sdk.coders.Coder<float[]>
- Throws:
java.io.IOException
-
-