SchemaType Class

public final class SchemaType
extends ExpandableStringEnum<SchemaType>

Defines values for SchemaType.

Field Summary

Modifier and Type Field and Description
static final SchemaType AVRO

Static value Avro for SchemaType.

static final SchemaType UNKNOWN

Static value Unknown for SchemaType.

Constructor Summary

Constructor Description
SchemaType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SchemaType value.

Method Summary

Modifier and Type Method and Description
static SchemaType fromString(String name)

Creates or finds a SchemaType from its string representation.

static Collection<SchemaType> values()

Gets known SchemaType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AVRO

public static final SchemaType AVRO

Static value Avro for SchemaType.

UNKNOWN

public static final SchemaType UNKNOWN

Static value Unknown for SchemaType.

Constructor Details

SchemaType

@Deprecated
public SchemaType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SchemaType value.

Method Details

fromString

public static SchemaType fromString(String name)

Creates or finds a SchemaType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SchemaType.

values

public static Collection values()

Gets known SchemaType values.

Returns:

known SchemaType values.

Applies to