|
|
|
@ -1,5 +1,7 @@ |
|
|
|
package com.qniao.iot.rc.event; |
|
|
|
|
|
|
|
import cn.hutool.core.util.ByteUtil; |
|
|
|
import cn.hutool.json.JSONUtil; |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
|
import com.qniao.iot.rc.RootCloudIotDataReceiptedEvent; |
|
|
|
import org.apache.flink.api.common.serialization.DeserializationSchema; |
|
|
|
@ -18,6 +20,7 @@ public class RootCloudIotDataReceiptedEventDeserializationSchema implements Dese |
|
|
|
|
|
|
|
@Override |
|
|
|
public RootCloudIotDataReceiptedEvent deserialize(byte[] message) throws IOException { |
|
|
|
|
|
|
|
return objectMapper.readValue(message, RootCloudIotDataReceiptedEvent.class); |
|
|
|
} |
|
|
|
|
|
|
|
|