Class TestByteStateSource

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.pulsar.io.core.Source<byte[]>

    public class TestByteStateSource
    extends java.lang.Object
    implements org.apache.pulsar.io.core.Source<byte[]>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String VALUE_BASE64  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void open​(java.util.Map<java.lang.String,​java.lang.Object> config, org.apache.pulsar.io.core.SourceContext sourceContext)  
      org.apache.pulsar.functions.api.Record<byte[]> read()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestByteStateSource

        public TestByteStateSource()
    • Method Detail

      • open

        public void open​(java.util.Map<java.lang.String,​java.lang.Object> config,
                         org.apache.pulsar.io.core.SourceContext sourceContext)
                  throws java.lang.Exception
        Specified by:
        open in interface org.apache.pulsar.io.core.Source<byte[]>
        Throws:
        java.lang.Exception
      • read

        public org.apache.pulsar.functions.api.Record<byte[]> read()
                                                            throws java.lang.Exception
        Specified by:
        read in interface org.apache.pulsar.io.core.Source<byte[]>
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception