Class Serializer<E,D>
- java.lang.Object
-
- org.apache.nemo.runtime.executor.data.streamchainer.Serializer<E,D>
-
- Type Parameters:
E
- encoderFactory element type.D
- decoderFactory element type.
public final class Serializer<E,D> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Serializer(EncoderFactory<E> encoderFactory, DecoderFactory<D> decoderFactory, java.util.List<EncodeStreamChainer> encodeStreamChainers, java.util.List<DecodeStreamChainer> decodeStreamChainers)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecoderFactory<D>
getDecoderFactory()
java.util.List<DecodeStreamChainer>
getDecodeStreamChainers()
EncoderFactory<E>
getEncoderFactory()
java.util.List<EncodeStreamChainer>
getEncodeStreamChainers()
-
-
-
Constructor Detail
-
Serializer
public Serializer(EncoderFactory<E> encoderFactory, DecoderFactory<D> decoderFactory, java.util.List<EncodeStreamChainer> encodeStreamChainers, java.util.List<DecodeStreamChainer> decodeStreamChainers)
Constructor.- Parameters:
encoderFactory
-EncoderFactory
.decoderFactory
-DecoderFactory
.encodeStreamChainers
- the list ofEncodeStreamChainer
to use for encoding.decodeStreamChainers
- the list ofDecodeStreamChainer
to use for decoding.
-
-
Method Detail
-
getEncoderFactory
public EncoderFactory<E> getEncoderFactory()
- Returns:
- the
EncoderFactory
to use.
-
getDecoderFactory
public DecoderFactory<D> getDecoderFactory()
- Returns:
- the
DecoderFactory
to use.
-
getEncodeStreamChainers
public java.util.List<EncodeStreamChainer> getEncodeStreamChainers()
- Returns:
- the list of
EncodeStreamChainer
for encoding.
-
getDecodeStreamChainers
public java.util.List<DecodeStreamChainer> getDecodeStreamChainers()
- Returns:
- the list of
EncodeStreamChainer
for decoding.
-
-