public interface Schemas
| Modifier and Type | Method and Description |
|---|---|
void |
createSchema(String topic,
PostSchemaPayload schemaPayload)
Create a schema for a given topic.
|
void |
createSchema(String topic,
SchemaInfo schemaInfo)
Create a schema for a given topic with the provided schema info.
|
CompletableFuture<Void> |
createSchemaAsync(String topic,
PostSchemaPayload schemaPayload)
Create a schema for a given topic asynchronously.
|
CompletableFuture<Void> |
createSchemaAsync(String topic,
SchemaInfo schemaInfo)
Create a schema for a given topic with the provided schema info asynchronously.
|
void |
deleteSchema(String topic)
Delete the schema associated with a given topic.
|
CompletableFuture<Void> |
deleteSchemaAsync(String topic)
Delete the schema associated with a given topic asynchronously.
|
List<SchemaInfo> |
getAllSchemas(String topic)
Get all version schemas topic.
|
CompletableFuture<List<SchemaInfo>> |
getAllSchemasAsync(String topic)
Get all version schemas topic asynchronously.
|
SchemaInfo |
getSchemaInfo(String topic)
Retrieve the latest schema of a topic.
|
SchemaInfo |
getSchemaInfo(String topic,
long version)
Retrieve the schema of a topic at a given version.
|
CompletableFuture<SchemaInfo> |
getSchemaInfoAsync(String topic)
Retrieve the latest schema of a topic asynchronously.
|
CompletableFuture<SchemaInfo> |
getSchemaInfoAsync(String topic,
long version)
Retrieve the schema of a topic at a given version asynchronously.
|
SchemaInfoWithVersion |
getSchemaInfoWithVersion(String topic)
Retrieve the latest schema with verison of a topic.
|
CompletableFuture<SchemaInfoWithVersion> |
getSchemaInfoWithVersionAsync(String topic)
Retrieve the latest schema with verison of a topic asynchronously.
|
Long |
getVersionBySchema(String topic,
PostSchemaPayload schemaPayload)
Find schema version topic.
|
Long |
getVersionBySchema(String topic,
SchemaInfo schemaInfo)
Find schema version topic.
|
CompletableFuture<Long> |
getVersionBySchemaAsync(String topic,
PostSchemaPayload schemaPayload)
Find schema version topic asynchronously.
|
CompletableFuture<Long> |
getVersionBySchemaAsync(String topic,
SchemaInfo schemaInfo)
Find schema version topic asynchronously.
|
IsCompatibilityResponse |
testCompatibility(String topic,
PostSchemaPayload schemaPayload)
Judge schema compatibility topic.
|
IsCompatibilityResponse |
testCompatibility(String topic,
SchemaInfo schemaInfo)
Judge schema compatibility topic.
|
CompletableFuture<IsCompatibilityResponse> |
testCompatibilityAsync(String topic,
PostSchemaPayload schemaPayload)
Judge schema compatibility topic asynchronously.
|
CompletableFuture<IsCompatibilityResponse> |
testCompatibilityAsync(String topic,
SchemaInfo schemaInfo)
Judge schema compatibility topic asynchronously.
|
SchemaInfo getSchemaInfo(String topic) throws PulsarAdminException
topic - topic name, in fully qualified formatPulsarAdminExceptionCompletableFuture<SchemaInfo> getSchemaInfoAsync(String topic)
topic - topic name, in fully qualified formatSchemaInfoWithVersion getSchemaInfoWithVersion(String topic) throws PulsarAdminException
topic - topic name, in fully qualified formatPulsarAdminExceptionCompletableFuture<SchemaInfoWithVersion> getSchemaInfoWithVersionAsync(String topic)
topic - topic name, in fully qualified formatSchemaInfo getSchemaInfo(String topic, long version) throws PulsarAdminException
topic - topic name, in fully qualified formatversion - schema versionPulsarAdminExceptionCompletableFuture<SchemaInfo> getSchemaInfoAsync(String topic, long version)
topic - topic name, in fully qualified formatversion - schema versionvoid deleteSchema(String topic) throws PulsarAdminException
topic - topic name, in fully qualified formatPulsarAdminExceptionCompletableFuture<Void> deleteSchemaAsync(String topic)
topic - topic name, in fully qualified formatvoid createSchema(String topic, SchemaInfo schemaInfo) throws PulsarAdminException
topic - topic name, in fully qualified fomratschemaInfo - schema infoPulsarAdminExceptionCompletableFuture<Void> createSchemaAsync(String topic, SchemaInfo schemaInfo)
topic - topic name, in fully qualified fomratschemaInfo - schema infovoid createSchema(String topic, PostSchemaPayload schemaPayload) throws PulsarAdminException
topic - topic name, in fully qualified formatschemaPayload - schema payloadPulsarAdminExceptionCompletableFuture<Void> createSchemaAsync(String topic, PostSchemaPayload schemaPayload)
topic - topic name, in fully qualified formatschemaPayload - schema payloadIsCompatibilityResponse testCompatibility(String topic, PostSchemaPayload schemaPayload) throws PulsarAdminException
topic - topic name, in fully qualified formatschemaPayload - schema payloadPulsarAdminExceptionCompletableFuture<IsCompatibilityResponse> testCompatibilityAsync(String topic, PostSchemaPayload schemaPayload)
topic - topic name, in fully qualified formatschemaPayload - schema payloadLong getVersionBySchema(String topic, PostSchemaPayload schemaPayload) throws PulsarAdminException
topic - topic name, in fully qualified formatschemaPayload - schema payloadPulsarAdminExceptionCompletableFuture<Long> getVersionBySchemaAsync(String topic, PostSchemaPayload schemaPayload)
topic - topic name, in fully qualified formatschemaPayload - schema payloadIsCompatibilityResponse testCompatibility(String topic, SchemaInfo schemaInfo) throws PulsarAdminException
topic - topic name, in fully qualified formatschemaInfo - schema infoPulsarAdminExceptionCompletableFuture<IsCompatibilityResponse> testCompatibilityAsync(String topic, SchemaInfo schemaInfo)
topic - topic name, in fully qualified formatschemaInfo - schema infoLong getVersionBySchema(String topic, SchemaInfo schemaInfo) throws PulsarAdminException
topic - topic name, in fully qualified formatschemaInfo - schema infoPulsarAdminExceptionCompletableFuture<Long> getVersionBySchemaAsync(String topic, SchemaInfo schemaInfo)
topic - topic name, in fully qualified formatschemaInfo - schema infoList<SchemaInfo> getAllSchemas(String topic) throws PulsarAdminException
topic - topic name, in fully qualified formatPulsarAdminExceptionCompletableFuture<List<SchemaInfo>> getAllSchemasAsync(String topic)
topic - topic name, in fully qualified formatCopyright © 2017–2022 Apache Software Foundation. All rights reserved.