Package org.apache.nemo.common.coder
Class IntEncoderFactory
- java.lang.Object
-
- org.apache.nemo.common.coder.IntEncoderFactory
-
- All Implemented Interfaces:
java.io.Serializable
,EncoderFactory<java.lang.Integer>
public final class IntEncoderFactory extends java.lang.Object implements EncoderFactory<java.lang.Integer>
AEncoderFactory
which is used for an integer.- 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<java.lang.Integer>
create(java.io.OutputStream outputStream)
Get an encoder instance.static IntEncoderFactory
of()
Static initializer of the coder.java.lang.String
toString()
-
-
-
Method Detail
-
of
public static IntEncoderFactory of()
Static initializer of the coder.- Returns:
- the initializer.
-
create
public EncoderFactory.Encoder<java.lang.Integer> create(java.io.OutputStream outputStream)
Description copied from interface:EncoderFactory
Get an encoder instance.- Specified by:
create
in interfaceEncoderFactory<java.lang.Integer>
- 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
-
-