Class StreamElementCoder

  • All Implemented Interfaces:
    java.io.Serializable

    public class StreamElementCoder
    extends org.apache.beam.sdk.coders.CustomCoder<StreamElement>
    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 StreamElementCoder of​(Repository repository)
        Create coder for StreamElements originating in given Repository.
        Parameters:
        repository - the repository to create coder for
        Returns:
        the coder
      • encode

        public void encode​(StreamElement value,
                           java.io.OutputStream outStream)
                    throws java.io.IOException
        Specified by:
        encode in class org.apache.beam.sdk.coders.Coder<StreamElement>
        Throws:
        java.io.IOException
      • decode

        public StreamElement decode​(java.io.InputStream inStream)
                             throws java.io.IOException
        Specified by:
        decode in class org.apache.beam.sdk.coders.Coder<StreamElement>
        Throws:
        java.io.IOException
      • getEncodedTypeDescriptor

        public org.apache.beam.sdk.values.TypeDescriptor<StreamElement> getEncodedTypeDescriptor()
        Overrides:
        getEncodedTypeDescriptor in class org.apache.beam.sdk.coders.Coder<StreamElement>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • verifyDeterministic

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