public abstract class ChainedDriver<IT,OT> extends Object implements Collector<IT>
Modifier and Type | Field and Description |
---|---|
protected TaskConfig |
config |
protected ExecutionConfig |
executionConfig |
protected InternalOperatorMetricGroup |
metrics |
protected Counter |
numRecordsIn |
protected Counter |
numRecordsOut |
protected boolean |
objectReuseEnabled |
protected Collector<OT> |
outputCollector |
protected String |
taskName |
protected ClassLoader |
userCodeClassLoader |
Constructor and Description |
---|
ChainedDriver() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cancelTask() |
abstract void |
closeTask() |
abstract void |
collect(IT record)
Emits a record.
|
InternalOperatorIOMetricGroup |
getIOMetrics() |
Collector<OT> |
getOutputCollector() |
abstract Function |
getStub() |
TaskConfig |
getTaskConfig() |
abstract String |
getTaskName() |
protected RuntimeContext |
getUdfRuntimeContext() |
abstract void |
openTask() |
void |
setOutputCollector(Collector<?> outputCollector) |
abstract void |
setup(AbstractInvokable parent) |
void |
setup(TaskConfig config,
String taskName,
Collector<OT> outputCollector,
AbstractInvokable parent,
UserCodeClassLoader userCodeClassLoader,
ExecutionConfig executionConfig,
Map<String,Accumulator<?,?>> accumulatorMap) |
protected TaskConfig config
protected String taskName
protected ClassLoader userCodeClassLoader
protected ExecutionConfig executionConfig
protected boolean objectReuseEnabled
protected InternalOperatorMetricGroup metrics
protected Counter numRecordsIn
protected Counter numRecordsOut
public void setup(TaskConfig config, String taskName, Collector<OT> outputCollector, AbstractInvokable parent, UserCodeClassLoader userCodeClassLoader, ExecutionConfig executionConfig, Map<String,Accumulator<?,?>> accumulatorMap)
public abstract void setup(AbstractInvokable parent)
public abstract void cancelTask()
public abstract Function getStub()
public abstract String getTaskName()
public abstract void collect(IT record)
Collector
public InternalOperatorIOMetricGroup getIOMetrics()
protected RuntimeContext getUdfRuntimeContext()
public void setOutputCollector(Collector<?> outputCollector)
public TaskConfig getTaskConfig()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.