Class EntityDescriptorCoder

  • All Implemented Interfaces:
    java.io.Serializable

    public class EntityDescriptorCoder
    extends org.apache.beam.sdk.coders.CustomCoder<T>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.beam.sdk.coders.Coder

        org.apache.beam.sdk.coders.Coder.Context, org.apache.beam.sdk.coders.Coder.NonDeterministicException
    • Method Detail

      • of

        public static EntityDescriptorCoder of​(Repository repo)
        Construct the coder from repository
        Parameters:
        repo - the repository
        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 class org.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 class org.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 class org.apache.beam.sdk.coders.Coder<EntityDescriptor>
      • verifyDeterministic

        public void verifyDeterministic()
        Overrides:
        verifyDeterministic in class org.apache.beam.sdk.coders.CustomCoder<EntityDescriptor>