public static enum Compatibility.Mode extends Enum<Compatibility.Mode>
| Enum Constant and Description |
|---|
CAN_BE_READ_BY_ALL
Also known as 'forwards transitive'.
|
CAN_BE_READ_BY_LATEST
Also known as 'forwards'.
|
CAN_READ_ALL
Also known as 'backwards transitive'.
|
CAN_READ_LATEST
Also known as 'backwards'.
|
MUTUAL_READ_WITH_ALL
Also known as 'full transitive'.
|
MUTUAL_READ_WITH_LATEST
Also known as 'full'.
|
| Modifier and Type | Method and Description |
|---|---|
ChronologyCompatibilityCheckResult |
check(org.apache.avro.Schema toValidate,
Iterable<org.apache.avro.Schema> schemasInOrder) |
static Compatibility.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Compatibility.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Compatibility.Mode CAN_READ_LATEST
public static final Compatibility.Mode CAN_READ_ALL
public static final Compatibility.Mode CAN_BE_READ_BY_LATEST
public static final Compatibility.Mode CAN_BE_READ_BY_ALL
public static final Compatibility.Mode MUTUAL_READ_WITH_LATEST
public static final Compatibility.Mode MUTUAL_READ_WITH_ALL
public static Compatibility.Mode[] values()
for (Compatibility.Mode c : Compatibility.Mode.values()) System.out.println(c);
public static Compatibility.Mode 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 ChronologyCompatibilityCheckResult check(org.apache.avro.Schema toValidate, Iterable<org.apache.avro.Schema> schemasInOrder)
schemasInOrder - existing schemas, latest last.Copyright © 2017–2019 Hotels.com (Data Platform Team). All rights reserved.