Class SchemaRegistryUtils


  • public class SchemaRegistryUtils
    extends java.lang.Object
    • 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.
      • Methods inherited from class java.lang.Object

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

      • SchemaRegistryUtils

        public SchemaRegistryUtils()
    • 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 configuration
        group - 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 configuration
        group - 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 namespace
        group - the group under which the schemas are registered
        pravegaConfig - Pravega configuration
        Returns:
        the serializer config