Package cz.o2.proxima.beam.core.io
Class EntityDescriptorCoder
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.CustomCoder<T>
-
- cz.o2.proxima.beam.core.io.EntityDescriptorCoder
-
- All Implemented Interfaces:
java.io.Serializable
public class EntityDescriptorCoder extends org.apache.beam.sdk.coders.CustomCoder<T>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityDescriptor
decode(java.io.InputStream inStream)
void
encode(EntityDescriptor value, java.io.OutputStream outStream)
org.apache.beam.sdk.values.TypeDescriptor<EntityDescriptor>
getEncodedTypeDescriptor()
static EntityDescriptorCoder
of(Repository repo)
Construct the coder from repositorystatic EntityDescriptorCoder
of(RepositoryFactory factory)
Construct the coder from repository factoryvoid
verifyDeterministic()
-
-
-
Method Detail
-
of
public static EntityDescriptorCoder of(Repository repo)
Construct the coder from repository- Parameters:
repo
- the repository- Returns:
- the coder
-
of
public static EntityDescriptorCoder of(RepositoryFactory factory)
Construct the coder from repository factory- Parameters:
factory
- the factory- Returns:
- the coder
-
encode
public void encode(EntityDescriptor value, java.io.OutputStream outStream) throws org.apache.beam.sdk.coders.CoderException, java.io.IOException
- Specified by:
encode
in classorg.apache.beam.sdk.coders.Coder<EntityDescriptor>
- Throws:
org.apache.beam.sdk.coders.CoderException
java.io.IOException
-
decode
public EntityDescriptor decode(java.io.InputStream inStream) throws org.apache.beam.sdk.coders.CoderException, java.io.IOException
- Specified by:
decode
in classorg.apache.beam.sdk.coders.Coder<EntityDescriptor>
- Throws:
org.apache.beam.sdk.coders.CoderException
java.io.IOException
-
getEncodedTypeDescriptor
public org.apache.beam.sdk.values.TypeDescriptor<EntityDescriptor> getEncodedTypeDescriptor()
- Overrides:
getEncodedTypeDescriptor
in classorg.apache.beam.sdk.coders.Coder<EntityDescriptor>
-
verifyDeterministic
public void verifyDeterministic()
- Overrides:
verifyDeterministic
in classorg.apache.beam.sdk.coders.CustomCoder<EntityDescriptor>
-
-