Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SchemaImpl

Package version

Class representing a Schema.

Hierarchy

  • SchemaImpl

Implements

  • Schema

Index

Constructors

constructor

Methods

getById

queryIdByContent

  • Gets the ID referencing an existing schema within the specified schema group, as matched by schema content comparison.

    Parameters

    • groupName: string

      Schema group under which schema is registered. Group's serialization type should match the serialization type specified in the request.

    • schemaName: string

      Name of the registered schema.

    • serializationType: SerializationType

      Serialization type for the schema being registered.

    • schemaContent: string

      String representation (UTF-8) of the registered schema.

    • Optional options: SchemaQueryIdByContentOptionalParams

      The options parameters.

    Returns Promise<SchemaQueryIdByContentResponse>

register

  • Register new schema. If schema of specified name does not exist in specified group, schema is created at version 1. If schema of specified name exists already in specified group, schema is created at latest version + 1.

    Parameters

    • groupName: string

      Schema group under which schema should be registered. Group's serialization type should match the serialization type specified in the request.

    • schemaName: string

      Name of schema being registered.

    • serializationType: SerializationType

      Serialization type for the schema being registered.

    • schemaContent: string

      String representation (UTF-8) of the schema being registered.

    • Optional options: SchemaRegisterOptionalParams

      The options parameters.

    Returns Promise<SchemaRegisterResponse>

Generated using TypeDoc