Class GenericRecordSource

java.lang.Object
org.apache.pulsar.tests.integration.io.GenericRecordSource
All Implemented Interfaces:
AutoCloseable, Source<org.apache.pulsar.client.api.schema.GenericRecord>

public class GenericRecordSource extends Object implements Source<org.apache.pulsar.client.api.schema.GenericRecord>
A source that generates GenericRecords.
  • Constructor Details

    • GenericRecordSource

      public GenericRecordSource()
  • Method Details

    • open

      public void open(Map<String,Object> config, SourceContext sourceContext) throws Exception
      Specified by:
      open in interface Source<org.apache.pulsar.client.api.schema.GenericRecord>
      Throws:
      Exception
    • read

      public org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericRecord> read() throws Exception
      Specified by:
      read in interface Source<org.apache.pulsar.client.api.schema.GenericRecord>
      Throws:
      Exception
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable