public ConfigDrivenMd5SchemaRegistry(String name, Schema schema) throws IOException, SchemaRegistryException { this.register(name, schema); }
public ConfigDrivenMd5SchemaRegistry(Config config) throws IOException, SchemaRegistryException { if (config.hasPath(ConfigurationKeys.SCHEMA_NAME_KEY)) { String name = config.getString(ConfigurationKeys.SCHEMA_NAME_KEY); String value = config.getString(ConfigurationKeys.SCHEMA_VALUE_KEY); Schema schema = new Schema.Parser().parse(value); register(name, schema); } }
public ConfigDrivenMd5SchemaRegistry(String name, Schema schema) throws IOException, SchemaRegistryException { this.register(name, schema); }
public ConfigDrivenMd5SchemaRegistry(Config config) throws IOException, SchemaRegistryException { if (config.hasPath(ConfigurationKeys.SCHEMA_NAME_KEY)) { String name = config.getString(ConfigurationKeys.SCHEMA_NAME_KEY); String value = config.getString(ConfigurationKeys.SCHEMA_VALUE_KEY); Schema schema = new Schema.Parser().parse(value); register(name, schema); } }