public class SchemaInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SchemaInfo.State
Possible states for a schema or schema version.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the ID of the schema.
|
byte[] |
getIdAsBytes()
Returns the unique ID for the schema as bytes.
|
String |
getName()
Returns the name of the schema.
|
org.apache.avro.Schema |
getSchema()
Returns the Avro schema definition.
|
SchemaInfo.State |
getState()
Returns whether this schema is active or deprecated.
|
String |
getStateDeprecationComment()
Returns the comment associated with the reason for deprecation of this schema.
|
int |
getVersion()
Returns the version number for this version of the schema.
|
byte[] |
getVersionAsBytes()
Returns the version number for this version of the schema as bytes.
|
String |
getVersionName()
Returns the version name for this version of the schema.
|
SchemaInfo.State |
getVersionState()
Returns whether this version of the schema is active or deprecated.
|
String |
getVersionStateDeprecationComment()
Returns the comment associated with the reason for deprecation of this version of the schema.
|
boolean |
isEnabled()
Returns whether this schema is enabled or disabled.
|
boolean |
isVersionEnabled()
Returns whether this version of the schema is enabled or disabled.
|
public String getId()
public byte[] getIdAsBytes()
public int getVersion()
public byte[] getVersionAsBytes()
public String getVersionName()
public String getName()
public org.apache.avro.Schema getSchema()
public SchemaInfo.State getState()
public String getStateDeprecationComment()
public SchemaInfo.State getVersionState()
public String getVersionStateDeprecationComment()
public boolean isEnabled()
public boolean isVersionEnabled()
Copyright © 2019. All rights reserved.