Class TopicPartitionCoder

  • All Implemented Interfaces:
    java.io.Serializable

    public class TopicPartitionCoder
    extends org.apache.beam.sdk.coders.StructuredCoder<org.apache.kafka.common.TopicPartition>
    The Coder for encoding and decoding TopicPartition in Beam.
    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 Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.kafka.common.TopicPartition decode​(java.io.InputStream inStream)  
      void encode​(org.apache.kafka.common.TopicPartition value, java.io.OutputStream outStream)  
      java.util.List<? extends org.apache.beam.sdk.coders.Coder<?>> getCoderArguments()  
      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
    • Constructor Detail

      • TopicPartitionCoder

        public TopicPartitionCoder()
    • Method Detail

      • encode

        public void encode​(org.apache.kafka.common.TopicPartition 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<org.apache.kafka.common.TopicPartition>
        Throws:
        org.apache.beam.sdk.coders.CoderException
        java.io.IOException
      • decode

        public org.apache.kafka.common.TopicPartition 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<org.apache.kafka.common.TopicPartition>
        Throws:
        org.apache.beam.sdk.coders.CoderException
        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<org.apache.kafka.common.TopicPartition>
      • verifyDeterministic

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