public class SchemaRegistryServiceWithSchemaDataValidator extends Object implements SchemaRegistryService
SchemaRegistryService wrapper that validate schema data.SchemaRegistry.SchemaAndMetadataLOG, NO_SCHEMA_VERSION| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
checkCompatible(String schemaId,
org.apache.pulsar.common.protocol.schema.SchemaData schema,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) |
CompletableFuture<Void> |
checkConsumerCompatibility(String schemaId,
org.apache.pulsar.common.protocol.schema.SchemaData schemaData,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) |
void |
close() |
CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> |
deleteSchema(String schemaId,
String user) |
CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> |
deleteSchemaStorage(String schemaId) |
CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> |
deleteSchemaStorage(String schemaId,
boolean forcefully) |
CompletableFuture<Long> |
findSchemaVersion(String schemaId,
org.apache.pulsar.common.protocol.schema.SchemaData schemaData) |
CompletableFuture<List<CompletableFuture<SchemaRegistry.SchemaAndMetadata>>> |
getAllSchemas(String schemaId) |
CompletableFuture<SchemaRegistry.SchemaAndMetadata> |
getSchema(String schemaId) |
CompletableFuture<SchemaRegistry.SchemaAndMetadata> |
getSchema(String schemaId,
org.apache.pulsar.common.protocol.schema.SchemaVersion version) |
CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> |
getSchemaVersionBySchemaData(List<SchemaRegistry.SchemaAndMetadata> schemaAndMetadataList,
org.apache.pulsar.common.protocol.schema.SchemaData schemaData) |
CompletableFuture<Boolean> |
isCompatible(String schemaId,
org.apache.pulsar.common.protocol.schema.SchemaData schema,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) |
static SchemaRegistryServiceWithSchemaDataValidator |
of(SchemaRegistryService service) |
CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> |
putSchemaIfAbsent(String schemaId,
org.apache.pulsar.common.protocol.schema.SchemaData schema,
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) |
CompletableFuture<List<SchemaRegistry.SchemaAndMetadata>> |
trimDeletedSchemaAndGetList(String schemaId) |
org.apache.pulsar.common.protocol.schema.SchemaVersion |
versionFromBytes(byte[] version) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getCheckerspublic static SchemaRegistryServiceWithSchemaDataValidator of(SchemaRegistryService service)
public void close()
throws Exception
close in interface AutoCloseableclose in interface SchemaRegistryServiceExceptionpublic CompletableFuture<SchemaRegistry.SchemaAndMetadata> getSchema(String schemaId)
getSchema in interface SchemaRegistrypublic CompletableFuture<SchemaRegistry.SchemaAndMetadata> getSchema(String schemaId, org.apache.pulsar.common.protocol.schema.SchemaVersion version)
getSchema in interface SchemaRegistrypublic CompletableFuture<List<CompletableFuture<SchemaRegistry.SchemaAndMetadata>>> getAllSchemas(String schemaId)
getAllSchemas in interface SchemaRegistrypublic CompletableFuture<List<SchemaRegistry.SchemaAndMetadata>> trimDeletedSchemaAndGetList(String schemaId)
trimDeletedSchemaAndGetList in interface SchemaRegistrypublic CompletableFuture<Long> findSchemaVersion(String schemaId, org.apache.pulsar.common.protocol.schema.SchemaData schemaData)
findSchemaVersion in interface SchemaRegistrypublic CompletableFuture<Void> checkConsumerCompatibility(String schemaId, org.apache.pulsar.common.protocol.schema.SchemaData schemaData, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
checkConsumerCompatibility in interface SchemaRegistrypublic CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> getSchemaVersionBySchemaData(List<SchemaRegistry.SchemaAndMetadata> schemaAndMetadataList, org.apache.pulsar.common.protocol.schema.SchemaData schemaData)
getSchemaVersionBySchemaData in interface SchemaRegistrypublic CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> putSchemaIfAbsent(String schemaId, org.apache.pulsar.common.protocol.schema.SchemaData schema, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
putSchemaIfAbsent in interface SchemaRegistrypublic CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> deleteSchema(String schemaId, String user)
deleteSchema in interface SchemaRegistrypublic CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> deleteSchemaStorage(String schemaId)
deleteSchemaStorage in interface SchemaRegistrypublic CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> deleteSchemaStorage(String schemaId, boolean forcefully)
deleteSchemaStorage in interface SchemaRegistrypublic CompletableFuture<Boolean> isCompatible(String schemaId, org.apache.pulsar.common.protocol.schema.SchemaData schema, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
isCompatible in interface SchemaRegistrypublic CompletableFuture<Void> checkCompatible(String schemaId, org.apache.pulsar.common.protocol.schema.SchemaData schema, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
checkCompatible in interface SchemaRegistrypublic org.apache.pulsar.common.protocol.schema.SchemaVersion versionFromBytes(byte[] version)
versionFromBytes in interface SchemaRegistryCopyright © 2017–2022 Apache Software Foundation. All rights reserved.