public class BatchDataGeneratorSource extends Object implements BatchSource<Person>
| Constructor and Description |
|---|
BatchDataGeneratorSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
discover(Consumer<byte[]> taskEater) |
void |
open(Map<String,Object> config,
SourceContext sourceContext) |
void |
prepare(byte[] instanceSplit) |
org.apache.pulsar.functions.api.Record<Person> |
readNext() |
public void open(Map<String,Object> config, SourceContext sourceContext)
open in interface BatchSource<Person>public void discover(Consumer<byte[]> taskEater)
discover in interface BatchSource<Person>public void prepare(byte[] instanceSplit)
prepare in interface BatchSource<Person>public org.apache.pulsar.functions.api.Record<Person> readNext() throws Exception
readNext in interface BatchSource<Person>Exceptionpublic void close()
close in interface AutoCloseableCopyright © 2017–2021 Apache Software Foundation. All rights reserved.