public static class StreamSQLTestProgram.KillMapper extends Object implements MapFunction<Row,Row>, CheckpointedFunction, ResultTypeQueryable
Constructor and Description |
---|
KillMapper() |
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getProducedType()
Gets the data type (as a
TypeInformation ) produced by this function or input format. |
void |
initializeState(FunctionInitializationContext context)
This method is called when the parallel function instance is created during distributed
execution.
|
Row |
map(Row value)
The mapping method.
|
void |
snapshotState(FunctionSnapshotContext context)
This method is called when a snapshot for a checkpoint is requested.
|
public Row map(Row value)
MapFunction
map
in interface MapFunction<Row,Row>
value
- The input value.public TypeInformation getProducedType()
ResultTypeQueryable
TypeInformation
) produced by this function or input format.getProducedType
in interface ResultTypeQueryable
public void initializeState(FunctionInitializationContext context) throws Exception
CheckpointedFunction
initializeState
in interface CheckpointedFunction
context
- the context for initializing the operatorException
- Thrown, if state could not be created ot restored.public void snapshotState(FunctionSnapshotContext context) throws Exception
CheckpointedFunction
FunctionInitializationContext
when the Function was initialized, or offered now by FunctionSnapshotContext
itself.snapshotState
in interface CheckpointedFunction
context
- the context for drawing a snapshot of the operatorException
- Thrown, if state could not be created ot restored.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.