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)voidencode(AttributeDescriptor<?> value, java.io.OutputStream outStream)org.apache.beam.sdk.values.TypeDescriptor<AttributeDescriptor<?>>getEncodedTypeDescriptor()static AttributeDescriptorCoderof(Repository repo)CreateAttributeDescriptorCoderfromRepository.static AttributeDescriptorCoderof(RepositoryFactory factory)CreateAttributeDescriptorCoderfromRepositoryFactory.voidverifyDeterministic()
-
-
-
Method Detail
-
of
public static AttributeDescriptorCoder of(Repository repo)
CreateAttributeDescriptorCoderfromRepository.- Parameters:
repo- the repository for the coder- Returns:
- the coder
-
of
public static AttributeDescriptorCoder of(RepositoryFactory factory)
CreateAttributeDescriptorCoderfromRepositoryFactory.- 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:
encodein classorg.apache.beam.sdk.coders.Coder<AttributeDescriptor<?>>- Throws:
org.apache.beam.sdk.coders.CoderExceptionjava.io.IOException
-
decode
public AttributeDescriptor<?> decode(java.io.InputStream inStream) throws java.io.IOException
- Specified by:
decodein classorg.apache.beam.sdk.coders.Coder<AttributeDescriptor<?>>- Throws:
java.io.IOException
-
getEncodedTypeDescriptor
public org.apache.beam.sdk.values.TypeDescriptor<AttributeDescriptor<?>> getEncodedTypeDescriptor()
- Overrides:
getEncodedTypeDescriptorin classorg.apache.beam.sdk.coders.Coder<AttributeDescriptor<?>>
-
verifyDeterministic
public void verifyDeterministic()
- Overrides:
verifyDeterministicin classorg.apache.beam.sdk.coders.CustomCoder<AttributeDescriptor<?>>
-
-