Package cz.o2.proxima.beam.core.io
Class AttributeDescriptorCoder
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.CustomCoder<T>
-
- cz.o2.proxima.beam.core.io.AttributeDescriptorCoder
-
- All Implemented Interfaces:
java.io.Serializable
public class AttributeDescriptorCoder 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 AttributeDescriptor<?>
decode(java.io.InputStream inStream)
void
encode(AttributeDescriptor<?> value, java.io.OutputStream outStream)
org.apache.beam.sdk.values.TypeDescriptor<AttributeDescriptor<?>>
getEncodedTypeDescriptor()
static AttributeDescriptorCoder
of(Repository repo)
CreateAttributeDescriptorCoder
fromRepository
.static AttributeDescriptorCoder
of(RepositoryFactory factory)
CreateAttributeDescriptorCoder
fromRepositoryFactory
.void
verifyDeterministic()
-
-
-
Method Detail
-
of
public static AttributeDescriptorCoder of(Repository repo)
CreateAttributeDescriptorCoder
fromRepository
.- Parameters:
repo
- the repository for the coder- Returns:
- the coder
-
of
public static AttributeDescriptorCoder of(RepositoryFactory factory)
CreateAttributeDescriptorCoder
fromRepositoryFactory
.- Parameters:
factory
- the repository factory for the coder- Returns:
- the coder
-
encode
public void encode(AttributeDescriptor<?> 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<AttributeDescriptor<?>>
- Throws:
org.apache.beam.sdk.coders.CoderException
java.io.IOException
-
decode
public AttributeDescriptor<?> decode(java.io.InputStream inStream) throws java.io.IOException
- Specified by:
decode
in classorg.apache.beam.sdk.coders.Coder<AttributeDescriptor<?>>
- Throws:
java.io.IOException
-
getEncodedTypeDescriptor
public org.apache.beam.sdk.values.TypeDescriptor<AttributeDescriptor<?>> getEncodedTypeDescriptor()
- Overrides:
getEncodedTypeDescriptor
in classorg.apache.beam.sdk.coders.Coder<AttributeDescriptor<?>>
-
verifyDeterministic
public void verifyDeterministic()
- Overrides:
verifyDeterministic
in classorg.apache.beam.sdk.coders.CustomCoder<AttributeDescriptor<?>>
-
-