Код: Выделить всё
public class Foo {
private int id;
public List data;
// Getter, setters, and constructor
public static class Data {
private String bar;
// Getter, setters, and constructor
}
}
Код: Выделить всё
Field Foo#data will be processed as GenericType.Вот что я добавил в свой код:
Код: Выделить всё
env.getConfig().registerTypeWithKryoSerializer(Foo.Data.class, ProtobufSerializer.class);
Код: Выделить всё
Field Foo#data will be processed as GenericType.Я хочу, чтобы Flink правильно сериализовал поле данных Foo#, не обрабатывая его как GenericType, и избегал предупреждение.
Подробнее здесь: https://stackoverflow.com/questions/790 ... h-protobuf
Мобильная версия