Class PravegaSchemaUtils
- java.lang.Object
-
- io.pravega.connectors.flink.table.catalog.pravega.util.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 SQLLogicalType
(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)
-
-
-
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 SQLLogicalType
(can be nested) into a Json Schema String.- Parameters:
logicalType
- logical type- Returns:
- String matching this logical type.
-
-