Class PravegaSchemaUtils


  • @Internal
    public class PravegaSchemaUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertToJsonSchemaString​(org.apache.flink.table.types.logical.LogicalType logicalType)
      Converts Flink SQL LogicalType (can be nested) into a Json Schema String.
      static org.apache.flink.table.catalog.ResolvedSchema schemaInfoToResolvedSchema​(io.pravega.schemaregistry.contract.data.SchemaInfo schemaInfo)  
      static io.pravega.schemaregistry.contract.data.SchemaInfo tableSchemaToSchemaInfo​(org.apache.flink.table.api.TableSchema tableSchema, io.pravega.schemaregistry.contract.data.SerializationFormat serializationFormat)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • schemaInfoToResolvedSchema

        public static org.apache.flink.table.catalog.ResolvedSchema schemaInfoToResolvedSchema​(io.pravega.schemaregistry.contract.data.SchemaInfo schemaInfo)
      • tableSchemaToSchemaInfo

        public static io.pravega.schemaregistry.contract.data.SchemaInfo tableSchemaToSchemaInfo​(org.apache.flink.table.api.TableSchema tableSchema,
                                                                                                 io.pravega.schemaregistry.contract.data.SerializationFormat serializationFormat)
      • convertToJsonSchemaString

        public static java.lang.String convertToJsonSchemaString​(org.apache.flink.table.types.logical.LogicalType logicalType)
        Converts Flink SQL LogicalType (can be nested) into a Json Schema String.

        Parameters:
        logicalType - logical type
        Returns:
        String matching this logical type.