私はApacheのFLINK(FLINK 1.3)でdeltatriggerを使用したいが、私はこのコードのいくつかの問題があります。flinkでdelta triggerを使用するには?
.trigger(DeltaTrigger.of(100, new DeltaFunction[uniqStruct] {
override def getDelta(oldFp: uniqStruct, newFp: uniqStruct): Double = newFp.time - oldFp.time
}, TypeInformation[uniqStruct]))
をそして、私はこのエラーを持っている:
error: object org.apache.flink.api.common.typeinfo.TypeInformation is not a value [ERROR] }, TypeInformation[uniqStruct]))
私は理由を理解していませんDeltaTriggerにはTypeSerializer[T]
が必要で、このエラーを取り除くために何をすべきかわかりません。
ありがとうございます。
getExecutionConfigは、flink 1.3とRichFunctionで廃止されました。このエラーがあります: 'Can not resolve symbol getRuntimeContext'。 または、nミリ秒ごとにトリガーを取得する別の方法はありませんか? – FlinkNoob