T
- A subclass of TransformerBase
, used by WithParams
public abstract class TransformerBase<T extends TransformerBase<T>> extends PipelineStageBase<T> implements Transformer<T>
params
ML_ENVIRONMENT_ID
Constructor and Description |
---|
TransformerBase() |
TransformerBase(Params params) |
Modifier and Type | Method and Description |
---|---|
default void |
loadJson(String json) |
default String |
toJson() |
protected abstract BatchOperator |
transform(BatchOperator input)
Applies the transformer on the input batch data from BatchOperator, and returns the batch
result data with BatchOperator.
|
protected abstract StreamOperator |
transform(StreamOperator input)
Applies the transformer on the input streaming data from StreamOperator, and returns the
streaming result data with StreamOperator.
|
Table |
transform(Table input)
Applies the transformer on the input table, and returns the result table.
|
Table |
transform(TableEnvironment tEnv,
Table input)
Applies the transformer on the input table, and returns the result table.
|
clone, getParams, tableEnvOf
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getParams, set
getMLEnvironmentId, setMLEnvironmentId
public TransformerBase()
public TransformerBase(Params params)
public Table transform(TableEnvironment tEnv, Table input)
Transformer
transform
in interface Transformer<T extends TransformerBase<T>>
tEnv
- the table environment to which the input table is bound.input
- the table to be transformedpublic Table transform(Table input)
input
- the table to be transformedprotected abstract BatchOperator transform(BatchOperator input)
input
- the input batch data from BatchOperatorprotected abstract StreamOperator transform(StreamOperator input)
input
- the input streaming data from StreamOperatorpublic String toJson()
public void loadJson(String json)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.