Package org.apache.flink.state.api
Class OneInputOperatorTransformation<T>
- java.lang.Object
-
- org.apache.flink.state.api.OneInputOperatorTransformation<T>
-
- Type Parameters:
T- The type of the elements in this operator.
@PublicEvolving @Deprecated public class OneInputOperatorTransformation<T> extends Object
Deprecated.UseOneInputStateTransformationinstead.OneInputOperatorTransformationrepresents a user defined transformation applied on anOperatorTransformationwith one input.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OneInputOperatorTransformation<T>assignTimestamps(Timestamper<T> timestamper)Deprecated.Assigns an event time timestamp to each record.OneInputOperatorTransformation<T>assignTimestamps(org.apache.flink.streaming.api.functions.TimestampAssigner<T> assigner)Deprecated.Assigns an event time timestamp to each record.KeyedOperatorTransformation<org.apache.flink.api.java.tuple.Tuple,T>keyBy(int... fields)Deprecated.Partitions the operator state of aOperatorTransformationby the given key positions.KeyedOperatorTransformation<org.apache.flink.api.java.tuple.Tuple,T>keyBy(String... fields)Deprecated.Partitions the operator state of aOperatorTransformationusing field expressions.<K> KeyedOperatorTransformation<K,T>keyBy(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector)Deprecated.It creates a newKeyedOperatorTransformationthat uses the provided key for partitioning its operator states.<K> KeyedOperatorTransformation<K,T>keyBy(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType)Deprecated.It creates a newKeyedOperatorTransformationthat uses the provided key with explicit type information for partitioning its operator states.OneInputOperatorTransformation<T>setMaxParallelism(int maxParallelism)Deprecated.Sets the maximum parallelism of this operator.BootstrapTransformation<T>transform(BroadcastStateBootstrapFunction<T> processFunction)Deprecated.Applies the givenBroadcastStateBootstrapFunctionon the non-keyed input.BootstrapTransformation<T>transform(StateBootstrapFunction<T> processFunction)Deprecated.Applies the givenStateBootstrapFunctionon the non-keyed input.BootstrapTransformation<T>transform(SavepointWriterOperatorFactory factory)Deprecated.Method for passing user defined operators along with the type information that will transform the OperatorTransformation.
-
-
-
Method Detail
-
setMaxParallelism
@PublicEvolving public OneInputOperatorTransformation<T> setMaxParallelism(int maxParallelism)
Deprecated.Sets the maximum parallelism of this operator.The maximum parallelism specifies the upper bound for dynamic scaling. It also defines the number of key groups used for partitioned state.
- Parameters:
maxParallelism- Maximum parallelism- Returns:
- The operator with set maximum parallelism
-
assignTimestamps
public OneInputOperatorTransformation<T> assignTimestamps(Timestamper<T> timestamper)
Deprecated.Assigns an event time timestamp to each record. This value will be used when performing event time computations such as assigning windows.
-
assignTimestamps
public OneInputOperatorTransformation<T> assignTimestamps(org.apache.flink.streaming.api.functions.TimestampAssigner<T> assigner)
Deprecated.Assigns an event time timestamp to each record. This value will be used when performing event time computations such as assigning windows.
-
transform
public BootstrapTransformation<T> transform(StateBootstrapFunction<T> processFunction)
Deprecated.Applies the givenStateBootstrapFunctionon the non-keyed input.The function will be called for every element in the input and can be used for writing operator state into a
Savepoint.- Parameters:
processFunction- TheStateBootstrapFunctionthat is called for each element.- Returns:
- An
OperatorTransformationthat can be added to aSavepoint.
-
transform
public BootstrapTransformation<T> transform(BroadcastStateBootstrapFunction<T> processFunction)
Deprecated.Applies the givenBroadcastStateBootstrapFunctionon the non-keyed input.The function will be called for every element in the input and can be used for writing broadcast state into a
Savepoint.- Parameters:
processFunction- TheBroadcastStateBootstrapFunctionthat is called for each element.- Returns:
- An
BootstrapTransformationthat can be added to aSavepoint.
-
transform
public BootstrapTransformation<T> transform(SavepointWriterOperatorFactory factory)
Deprecated.Method for passing user defined operators along with the type information that will transform the OperatorTransformation.IMPORTANT: Any output from this operator will be discarded.
- Parameters:
factory- A factory returning transformation logic type of the return stream- Returns:
- An
BootstrapTransformationthat can be added to aSavepoint.
-
keyBy
public <K> KeyedOperatorTransformation<K,T> keyBy(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector)
Deprecated.It creates a newKeyedOperatorTransformationthat uses the provided key for partitioning its operator states.- Parameters:
keySelector- The KeySelector to be used for extracting the key for partitioning.- Returns:
- The
BootstrapTransformationwith partitioned state.
-
keyBy
public <K> KeyedOperatorTransformation<K,T> keyBy(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType)
Deprecated.It creates a newKeyedOperatorTransformationthat uses the provided key with explicit type information for partitioning its operator states.- Parameters:
keySelector- The KeySelector to be used for extracting the key for partitioning.keyType- The type information describing the key type.- Returns:
- The
BootstrapTransformationwith partitioned state.
-
keyBy
public KeyedOperatorTransformation<org.apache.flink.api.java.tuple.Tuple,T> keyBy(int... fields)
Deprecated.Partitions the operator state of aOperatorTransformationby the given key positions.- Parameters:
fields- The position of the fields on which theOperatorTransformationwill be grouped.- Returns:
- The
OperatorTransformationwith partitioned state.
-
keyBy
public KeyedOperatorTransformation<org.apache.flink.api.java.tuple.Tuple,T> keyBy(String... fields)
Deprecated.Partitions the operator state of aOperatorTransformationusing field expressions. A field expression is either the name of a public field or a getter method with parentheses of theOperatorTransformation's underlying type. A dot can be used to drill down into objects, as in"field1.getInnerField2()".- Parameters:
fields- One or more field expressions on which the state of theOperatorTransformationoperators will be partitioned.- Returns:
- The
OperatorTransformationwith partitioned state (i.e. KeyedStream)
-
-