【发布时间】:2017-12-05 20:03:07
【问题描述】:
我想在 apache flink (flink 1.3) 中使用 deltatrigger,但我在这段代码中遇到了一些问题:
.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]
而且我不知道该怎么做才能消除此错误。
非常感谢大家。
【问题讨论】:
标签: scala apache-flink flink-streaming