OUT
- Output type of the records output by this operator@Internal public abstract class Operator<OUT> extends Object implements Visitable<Operator<?>>
Modifier and Type | Field and Description |
---|---|
protected CompilerHints |
compilerHints |
protected String |
name |
protected OperatorInformation<OUT> |
operatorInfo
The return type of the user function.
|
protected Configuration |
parameters |
Modifier | Constructor and Description |
---|---|
protected |
Operator(OperatorInformation<OUT> operatorInfo,
String name)
Creates a new contract with the given name.
|
Modifier and Type | Method and Description |
---|---|
static <T> Operator<T> |
createUnionCascade(List<? extends Operator<T>> operators)
Takes a list of operators and creates a cascade of unions of this inputs, if needed.
|
static <T> Operator<T> |
createUnionCascade(Operator<T>... operators)
Takes a list of operators and creates a cascade of unions of this inputs, if needed.
|
static <T> Operator<T> |
createUnionCascade(Operator<T> input1,
Operator<T>... input2)
Takes a single Operator and a list of operators and creates a cascade of unions of this
inputs, if needed.
|
CompilerHints |
getCompilerHints()
Gets the compiler hints for this contract instance.
|
ResourceSpec |
getMinResources()
Gets the minimum resources for this operator.
|
String |
getName()
Gets the name of the contract instance.
|
OperatorInformation<OUT> |
getOperatorInfo()
Gets the information about the operators input/output types.
|
int |
getParallelism()
Gets the parallelism for this contract instance.
|
Configuration |
getParameters()
Gets the stub parameters of this contract.
|
ResourceSpec |
getPreferredResources()
Gets the preferred resources for this contract instance.
|
UserCodeWrapper<?> |
getUserCodeWrapper()
Gets the user code wrapper.
|
void |
setName(String name)
Sets the name of the contract instance.
|
void |
setParallelism(int parallelism)
Sets the parallelism for this contract instance.
|
void |
setParameter(String key,
boolean value)
Sets a stub parameters in the configuration of this contract.
|
void |
setParameter(String key,
int value)
Sets a stub parameters in the configuration of this contract.
|
void |
setParameter(String key,
String value)
Sets a stub parameters in the configuration of this contract.
|
void |
setResources(ResourceSpec minResources,
ResourceSpec preferredResources)
Sets the minimum and preferred resources for this contract instance.
|
String |
toString() |
protected final Configuration parameters
protected CompilerHints compilerHints
protected String name
protected final OperatorInformation<OUT> operatorInfo
protected Operator(OperatorInformation<OUT> operatorInfo, String name)
name
- The name that is used to describe the contract.public OperatorInformation<OUT> getOperatorInfo()
public String getName()
public void setName(String name)
name
- The operator's name.public CompilerHints getCompilerHints()
public Configuration getParameters()
public void setParameter(String key, String value)
key
- The parameter key.value
- The parameter value.getParameters()
public void setParameter(String key, int value)
key
- The parameter key.value
- The parameter value.getParameters()
public void setParameter(String key, boolean value)
key
- The parameter key.value
- The parameter value.getParameters()
public int getParallelism()
ExecutionConfig.PARALLELISM_DEFAULT
, then the system will decide the number of parallel
instances by itself.public void setParallelism(int parallelism)
parallelism
- The number of parallel instances to spawn. Set this value to ExecutionConfig.PARALLELISM_DEFAULT
to let the system decide on its own.@PublicEvolving public ResourceSpec getMinResources()
@PublicEvolving public ResourceSpec getPreferredResources()
@PublicEvolving public void setResources(ResourceSpec minResources, ResourceSpec preferredResources)
minResources
- The minimum resource of this operator.preferredResources
- The preferred resource of this operator.public UserCodeWrapper<?> getUserCodeWrapper()
public static <T> Operator<T> createUnionCascade(List<? extends Operator<T>> operators)
operators
- The operators.public static <T> Operator<T> createUnionCascade(Operator<T>... operators)
operators
- The operators.public static <T> Operator<T> createUnionCascade(Operator<T> input1, Operator<T>... input2)
input1
- The first input operator.input2
- The other input operators.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.