Class SideInputCoder<T>

  • Type Parameters:
    T - type of the side input value.
    All Implemented Interfaces:
    java.io.Serializable

    public final class SideInputCoder<T>
    extends org.apache.beam.sdk.coders.StructuredCoder<SideInputElement<T>>
    EncoderFactory for side inputs.
    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
      SideInputElement<T> decode​(java.io.InputStream inStream)  
      void encode​(SideInputElement<T> sideInputElement, java.io.OutputStream outStream)  
      java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>> getCoderArguments()  
      static SideInputCoder of​(org.apache.beam.sdk.coders.Coder valueCoder)  
      void verifyDeterministic()  
      • Methods inherited from class org.apache.beam.sdk.coders.StructuredCoder

        equals, getComponents, hashCode, toString
      • 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, wait, wait, wait
    • Method Detail

      • of

        public static SideInputCoder of​(org.apache.beam.sdk.coders.Coder valueCoder)
        Parameters:
        valueCoder - the coder for side input.
        Returns:
        a new coder
      • encode

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

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

        public java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>> getCoderArguments()
        Specified by:
        getCoderArguments in class org.apache.beam.sdk.coders.Coder<SideInputElement<T>>
      • verifyDeterministic

        public void verifyDeterministic()
                                 throws org.apache.beam.sdk.coders.Coder.NonDeterministicException
        Specified by:
        verifyDeterministic in class org.apache.beam.sdk.coders.Coder<SideInputElement<T>>
        Throws:
        org.apache.beam.sdk.coders.Coder.NonDeterministicException