类 RedisScanFunction
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.source.RichSourceFunction<org.apache.flink.table.data.RowData>
-
- net.wicp.tams.common.flink.connector.redis.connector.RedisScanFunction
-
- 所有已实现的接口:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>,org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.flink.table.data.RowData>
public class RedisScanFunction extends org.apache.flink.streaming.api.functions.source.RichSourceFunction<org.apache.flink.table.data.RowData> implements org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>不需要CheckpointedFunction- 作者:
- Andy.zhou
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.apache.flink.streaming.api.functions.source.SourceFunction
org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T extends Object>
-
-
构造器概要
构造器 构造器 说明 RedisScanFunction(org.apache.flink.configuration.Configuration optionsWith, List<org.apache.flink.table.types.logical.RowType.RowField> rowTypeFields, org.apache.flink.table.catalog.UniqueConstraint primaryKey)需要在配置文件中存在相关的配置
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcancel()static int[]createValueFormatProjection(org.apache.flink.table.types.DataType physicalDataType)org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData>getProducedType()voidopen(org.apache.flink.configuration.Configuration parameters)voidrun(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.flink.table.data.RowData> ctx)voidsetRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
-
-
-
构造器详细资料
-
RedisScanFunction
public RedisScanFunction(org.apache.flink.configuration.Configuration optionsWith, List<org.apache.flink.table.types.logical.RowType.RowField> rowTypeFields, org.apache.flink.table.catalog.UniqueConstraint primaryKey)需要在配置文件中存在相关的配置- 参数:
optionsWith-rowTypeFields-
-
-
方法详细资料
-
run
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.flink.table.data.RowData> ctx) throws Exception- 指定者:
run在接口中org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.flink.table.data.RowData>- 抛出:
Exception
-
createValueFormatProjection
public static int[] createValueFormatProjection(org.apache.flink.table.types.DataType physicalDataType)
-
cancel
public void cancel()
- 指定者:
cancel在接口中org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.flink.table.data.RowData>
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> getProducedType()
- 指定者:
getProducedType在接口中org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>
-
setRuntimeContext
public void setRuntimeContext(org.apache.flink.api.common.functions.RuntimeContext t)
- 指定者:
setRuntimeContext在接口中org.apache.flink.api.common.functions.RichFunction- 覆盖:
setRuntimeContext在类中org.apache.flink.api.common.functions.AbstractRichFunction
-
-