Class NemoEventDecoderFactory
- java.lang.Object
-
- org.apache.nemo.runtime.executor.datatransfer.NemoEventDecoderFactory
-
- All Implemented Interfaces:
java.io.Serializable
,DecoderFactory
public final class NemoEventDecoderFactory extends java.lang.Object implements DecoderFactory
A factory for NemoEventDecoder.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.nemo.common.coder.DecoderFactory
DecoderFactory.Decoder<T>, DecoderFactory.DummyDecoderFactory
-
-
Field Summary
-
Fields inherited from interface org.apache.nemo.common.coder.DecoderFactory
DUMMY_DECODER_FACTORY
-
-
Constructor Summary
Constructors Constructor Description NemoEventDecoderFactory(DecoderFactory valueDecoderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecoderFactory.Decoder
create(java.io.InputStream inputStream)
Get a decoder instance.java.lang.String
toString()
-
-
-
Constructor Detail
-
NemoEventDecoderFactory
public NemoEventDecoderFactory(DecoderFactory valueDecoderFactory)
-
-
Method Detail
-
create
public DecoderFactory.Decoder create(java.io.InputStream inputStream) throws java.io.IOException
Description copied from interface:DecoderFactory
Get a decoder instance.- Specified by:
create
in interfaceDecoderFactory
- Parameters:
inputStream
- the input stream to decode.- Returns:
- the decoder instance.
- Throws:
java.io.IOException
- if fail to get the instance.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-