OUT
- The output type of the data sourceT
- The type of input format invoked by instances of this data source.@Internal public class GenericDataSourceBase<OUT,T extends InputFormat<OUT,?>> extends Operator<OUT>
Modifier and Type | Class and Description |
---|---|
static interface |
GenericDataSourceBase.SplitDataProperties<T> |
Modifier and Type | Field and Description |
---|---|
protected UserCodeWrapper<? extends T> |
formatWrapper |
protected String |
statisticsKey |
compilerHints, name, operatorInfo, parameters
Constructor and Description |
---|
GenericDataSourceBase(Class<? extends T> format,
OperatorInformation<OUT> operatorInfo)
Creates a new instance for the given file using the given input format, using the default
name.
|
GenericDataSourceBase(Class<? extends T> format,
OperatorInformation<OUT> operatorInfo,
String name)
Creates a new instance for the given file using the given input format.
|
GenericDataSourceBase(T format,
OperatorInformation<OUT> operatorInfo)
Creates a new instance for the given file using the given input format, using the default
name.
|
GenericDataSourceBase(T format,
OperatorInformation<OUT> operatorInfo,
String name)
Creates a new instance for the given file using the given input format.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor<Operator<?>> visitor)
Accepts the visitor and applies it this instance.
|
protected List<OUT> |
executeOnCollections(RuntimeContext ctx,
ExecutionConfig executionConfig) |
UserCodeWrapper<? extends T> |
getFormatWrapper()
Gets the class describing the input format.
|
GenericDataSourceBase.SplitDataProperties<OUT> |
getSplitDataProperties()
Returns the data properties of this data source's splits.
|
String |
getStatisticsKey()
Gets the key under which statistics about this data source may be obtained from the
statistics cache.
|
UserCodeWrapper<? extends T> |
getUserCodeWrapper()
Gets the class describing the input format.
|
void |
setSplitDataProperties(GenericDataSourceBase.SplitDataProperties<OUT> splitDataProperties)
Sets properties of input splits for this data source.
|
void |
setStatisticsKey(String statisticsKey)
Sets the key under which statistics about this data source may be obtained from the
statistics cache.
|
String |
toString() |
createUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getMinResources, getName, getOperatorInfo, getParallelism, getParameters, getPreferredResources, setName, setParallelism, setParameter, setParameter, setParameter, setResources
protected final UserCodeWrapper<? extends T extends InputFormat<OUT,?>> formatWrapper
protected String statisticsKey
public GenericDataSourceBase(T format, OperatorInformation<OUT> operatorInfo, String name)
format
- The InputFormat
implementation used to
read the data.operatorInfo
- The type information for the operator.name
- The given name for the Pact, used in plans, logs and progress messages.public GenericDataSourceBase(T format, OperatorInformation<OUT> operatorInfo)
format
- The InputFormat
implementation used to
read the data.operatorInfo
- The type information for the operator.public GenericDataSourceBase(Class<? extends T> format, OperatorInformation<OUT> operatorInfo, String name)
format
- The InputFormat
implementation used to
read the data.operatorInfo
- The type information for the operator.name
- The given name for the Pact, used in plans, logs and progress messages.public GenericDataSourceBase(Class<? extends T> format, OperatorInformation<OUT> operatorInfo)
format
- The InputFormat
implementation used to
read the data.operatorInfo
- The type information for the operator.public UserCodeWrapper<? extends T> getFormatWrapper()
public UserCodeWrapper<? extends T> getUserCodeWrapper()
This method is basically identical to getFormatWrapper()
.
getUserCodeWrapper
in class Operator<OUT>
Operator.getUserCodeWrapper()
public String getStatisticsKey()
public void setStatisticsKey(String statisticsKey)
statisticsKey
- The key for the statistics object.public void setSplitDataProperties(GenericDataSourceBase.SplitDataProperties<OUT> splitDataProperties)
splitDataProperties
- The data properties of this data source's splits.public GenericDataSourceBase.SplitDataProperties<OUT> getSplitDataProperties()
public void accept(Visitor<Operator<?>> visitor)
visitor
- The visitor.Visitable.accept(org.apache.flink.util.Visitor)
protected List<OUT> executeOnCollections(RuntimeContext ctx, ExecutionConfig executionConfig) throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.