use of org.apache.flink.table.types.logical.MultisetType in project flink by apache.
the class LogicalTypeJsonDeserializer method deserializeCollection.
private static LogicalType deserializeCollection(LogicalTypeRoot typeRoot, JsonNode logicalTypeNode, SerdeContext serdeContext) {
final JsonNode elementNode = logicalTypeNode.get(FIELD_NAME_ELEMENT_TYPE);
final LogicalType elementType = deserialize(elementNode, serdeContext);
switch(typeRoot) {
case ARRAY:
return new ArrayType(elementType);
case MULTISET:
return new MultisetType(elementType);
default:
throw new TableException("Collection type root expected.");
}
}
Aggregations