Package org.apache.nemo.common.coder
Class BytesEncoderFactory
- java.lang.Object
-
- org.apache.nemo.common.coder.BytesEncoderFactory
-
- All Implemented Interfaces:
java.io.Serializable
,EncoderFactory<byte[]>
public final class BytesEncoderFactory extends java.lang.Object implements EncoderFactory<byte[]>
AEncoderFactory
which is used for an array of bytes.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.nemo.common.coder.EncoderFactory
EncoderFactory.DummyEncoderFactory, EncoderFactory.Encoder<T>
-
-
Field Summary
-
Fields inherited from interface org.apache.nemo.common.coder.EncoderFactory
DUMMY_ENCODER_FACTORY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncoderFactory.Encoder<byte[]>
create(java.io.OutputStream outputStream)
Get an encoder instance.static BytesEncoderFactory
of()
Static initializer of the encoder.java.lang.String
toString()
-
-
-
Method Detail
-
of
public static BytesEncoderFactory of()
Static initializer of the encoder.- Returns:
- the initializer.
-
create
public EncoderFactory.Encoder<byte[]> create(java.io.OutputStream outputStream)
Description copied from interface:EncoderFactory
Get an encoder instance.- Specified by:
create
in interfaceEncoderFactory<byte[]>
- Parameters:
outputStream
- the stream on which encoded bytes are written- Returns:
- the encoder instance.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-