类 BatchSourceExecutor<T>

java.lang.Object
org.apache.pulsar.functions.source.batch.BatchSourceExecutor<T>
所有已实现的接口:
AutoCloseable, org.apache.pulsar.io.core.Source<T>

public class BatchSourceExecutor<T> extends Object implements org.apache.pulsar.io.core.Source<T>
BatchSourceExecutor wraps BatchSource as Source. Thus from Pulsar IO perspective, it is running a regular streaming source. The BatchSourceExecutor orchestrates the lifecycle of BatchSource. The current implementation uses an intermediate topic between the discovery process and the actual batchsource instances. The Discovery is run on 0th instance. Any tasks discovered during the discover are written to the intermediate topic. All the instances consume tasks from this intermediate topic using a shared subscription.
  • 构造器详细资料

    • BatchSourceExecutor

      public BatchSourceExecutor()
  • 方法详细资料

    • open

      public void open(Map<String,Object> config, org.apache.pulsar.io.core.SourceContext sourceContext) throws Exception
      指定者:
      open 在接口中 org.apache.pulsar.io.core.Source<T>
      抛出:
      Exception
    • read

      public org.apache.pulsar.functions.api.Record<T> read() throws Exception
      指定者:
      read 在接口中 org.apache.pulsar.io.core.Source<T>
      抛出:
      Exception
    • close

      public void close() throws Exception
      指定者:
      close 在接口中 AutoCloseable
      抛出:
      Exception