public enum SchemaCompatibility extends Enum<SchemaCompatibility>
| Enum Constant and Description |
|---|
CAN_BE_READ_BY_ALL |
CAN_BE_READ_BY_LATEST |
CAN_READ_ALL |
CAN_READ_LATEST |
MUTUAL_READ_ALL |
MUTUAL_READ_LATEST |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(org.apache.avro.Schema toValidate,
Map<Integer,org.apache.avro.Schema> existing) |
static SchemaCompatibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaCompatibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchemaCompatibility CAN_READ_ALL
public static final SchemaCompatibility CAN_READ_LATEST
public static final SchemaCompatibility CAN_BE_READ_BY_ALL
public static final SchemaCompatibility CAN_BE_READ_BY_LATEST
public static final SchemaCompatibility MUTUAL_READ_ALL
public static final SchemaCompatibility MUTUAL_READ_LATEST
public static SchemaCompatibility[] values()
for (SchemaCompatibility c : SchemaCompatibility.values()) System.out.println(c);
public static SchemaCompatibility valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void validate(org.apache.avro.Schema toValidate,
Map<Integer,org.apache.avro.Schema> existing)
throws SchemaCompatibilityException
toValidate - the Schema to validate.existing - the chronology of historical Schemas by id.SchemaCompatibilityException - if a validation error occurs.Copyright © 2016–2020 Hotels.com (Data Platform Team). All rights reserved.