Enum Class SchemaKind

java.lang.Object
java.lang.Enum<SchemaKind>
io.krabka.streams.schema.SchemaKind
All Implemented Interfaces:
Serializable, Comparable<SchemaKind>, Constable

public enum SchemaKind extends Enum<SchemaKind>
Schema formats supported by the registry client.

The kind is sent as the Confluent schemaType field when registering or looking up a schema. Avro is the registry default and is therefore transmitted without an explicit type name.

Example

int id = client.register("orders-value", SchemaKind.JSON, orderJsonSchema, null).join();
  • Enum Constant Details

    • AVRO

      public static final SchemaKind AVRO
      An Apache Avro schema, the registry default format.
    • PROTOBUF

      public static final SchemaKind PROTOBUF
      A Protocol Buffers file descriptor rendered as .proto text.
    • JSON

      public static final SchemaKind JSON
      A JSON Schema document.
  • Method Details

    • values

      public static SchemaKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SchemaKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null