Package io.pravega.connectors.flink.util
Class SchemaRegistryUtils
- java.lang.Object
-
- io.pravega.connectors.flink.util.SchemaRegistryUtils
-
public class SchemaRegistryUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SchemaRegistryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.pravega.schemaregistry.contract.data.SchemaInfo
getSchemaInfo(PravegaConfig pravegaConfig, java.lang.String group)
Get the schema info for the given group under which the schemas are registered.static io.pravega.schemaregistry.client.SchemaRegistryClientConfig
getSchemaRegistryClientConfig(PravegaConfig pravegaConfig)
Gets the schema registry client.static io.pravega.schemaregistry.contract.data.SerializationFormat
getSerializationFormat(PravegaConfig pravegaConfig, java.lang.String group)
Get the serialization format for the given group under which the schemas are registered.static io.pravega.schemaregistry.serializer.shared.impl.SerializerConfig
getSerializerConfig(java.lang.String namespace, java.lang.String group, PravegaConfig pravegaConfig)
Get the serializer config for the given namespace and group.
-
-
-
Method Detail
-
getSchemaRegistryClientConfig
public static io.pravega.schemaregistry.client.SchemaRegistryClientConfig getSchemaRegistryClientConfig(PravegaConfig pravegaConfig)
Gets the schema registry client.- Parameters:
pravegaConfig
- Pravega configuration- Returns:
- the configuration for schema registry client
-
getSerializationFormat
public static io.pravega.schemaregistry.contract.data.SerializationFormat getSerializationFormat(PravegaConfig pravegaConfig, java.lang.String group)
Get the serialization format for the given group under which the schemas are registered.- Parameters:
pravegaConfig
- Pravega configurationgroup
- the group under which the schemas are registered- Returns:
- the serialization format
-
getSchemaInfo
public static io.pravega.schemaregistry.contract.data.SchemaInfo getSchemaInfo(PravegaConfig pravegaConfig, java.lang.String group)
Get the schema info for the given group under which the schemas are registered.- Parameters:
pravegaConfig
- Pravega configurationgroup
- the group under which the schemas are registered- Returns:
- the schema info
-
getSerializerConfig
public static io.pravega.schemaregistry.serializer.shared.impl.SerializerConfig getSerializerConfig(java.lang.String namespace, java.lang.String group, PravegaConfig pravegaConfig)
Get the serializer config for the given namespace and group.- Parameters:
namespace
- the namespacegroup
- the group under which the schemas are registeredpravegaConfig
- Pravega configuration- Returns:
- the serializer config
-
-