Class TupleCoder

  • All Implemented Interfaces:
    java.io.Serializable

    public class TupleCoder
    extends org.apache.beam.sdk.coders.Coder<groovy.lang.Tuple<java.lang.Object>>
    Coder for Tuples.
    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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      groovy.lang.Tuple<java.lang.Object> decode​(java.io.InputStream inStream)  
      void encode​(groovy.lang.Tuple<java.lang.Object> value, java.io.OutputStream outStream)  
      boolean equals​(java.lang.Object obj)  
      java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>> getCoderArguments()  
      int hashCode()  
      static TupleCoder of()  
      static TupleCoder of​(org.apache.beam.sdk.extensions.kryo.KryoCoder<java.lang.Object> coder)  
      void verifyDeterministic()  
      • Methods inherited from class org.apache.beam.sdk.coders.Coder

        consistentWithEquals, decode, encode, getEncodedElementByteSize, getEncodedTypeDescriptor, isRegisterByteSizeObserverCheap, registerByteSizeObserver, structuralValue, verifyDeterministic, verifyDeterministic
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static TupleCoder of​(org.apache.beam.sdk.extensions.kryo.KryoCoder<java.lang.Object> coder)
      • encode

        public void encode​(groovy.lang.Tuple<java.lang.Object> 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<groovy.lang.Tuple<java.lang.Object>>
        Throws:
        org.apache.beam.sdk.coders.CoderException
        java.io.IOException
      • decode

        public groovy.lang.Tuple<java.lang.Object> 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<groovy.lang.Tuple<java.lang.Object>>
        Throws:
        org.apache.beam.sdk.coders.CoderException
        java.io.IOException
      • verifyDeterministic

        public void verifyDeterministic()
        Specified by:
        verifyDeterministic in class org.apache.beam.sdk.coders.Coder<groovy.lang.Tuple<java.lang.Object>>
      • getCoderArguments

        public java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>> getCoderArguments()
        Specified by:
        getCoderArguments in class org.apache.beam.sdk.coders.Coder<groovy.lang.Tuple<java.lang.Object>>
      • 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