public enum TemporalPrecisionMode extends Enum<TemporalPrecisionMode> implements EnumeratedValue
| Enum Constant and Description |
|---|
ADAPTIVE
Represent time and date values based upon the resolution in the database, using
io.debezium.time semantic
types. |
ADAPTIVE_TIME_MICROSECONDS
Represent timestamp, datetime and date values based upon the resolution in the database, using
io.debezium.time semantic types. |
CONNECT
Represent time and date values using Kafka Connect
org.apache.kafka.connect.data logical types, which always
have millisecond precision. |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Returns the string representation of this value
|
static TemporalPrecisionMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static TemporalPrecisionMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
static TemporalPrecisionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemporalPrecisionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemporalPrecisionMode ADAPTIVE
io.debezium.time semantic
types.public static final TemporalPrecisionMode ADAPTIVE_TIME_MICROSECONDS
io.debezium.time semantic types. TIME fields will always be represented as microseconds
in INT64 / Long using MicroTimepublic static final TemporalPrecisionMode CONNECT
org.apache.kafka.connect.data logical types, which always
have millisecond precision.private final String value
public static TemporalPrecisionMode[] values()
for (TemporalPrecisionMode c : TemporalPrecisionMode.values()) System.out.println(c);
public static TemporalPrecisionMode 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 String getValue()
EnumeratedValuegetValue in interface EnumeratedValuepublic static TemporalPrecisionMode parse(String value)
value - the configuration property value; may not be nullpublic static TemporalPrecisionMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2020 JBoss by Red Hat. All rights reserved.