public class Date extends Object
INT32
number of days since January 1, 1970, at 00:00:00UTC, and for defining a Kafka Connect Schema for date values
with no time or timezone information.Timestamp,
ZonedTimestamp| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_NAME |
| Modifier | Constructor and Description |
|---|---|
private |
Date() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.connect.data.SchemaBuilder |
builder()
Returns a
SchemaBuilder for a Date. |
static org.apache.kafka.connect.data.Schema |
schema()
Returns a Schema for a
Date but with all other default Schema settings. |
static int |
toEpochDay(Object value,
TemporalAdjuster adjuster)
|
public static final String SCHEMA_NAME
public static org.apache.kafka.connect.data.SchemaBuilder builder()
SchemaBuilder for a Date. The builder will create a schema that describes a field
with the "io.debezium.time.Date" as the name and INT32 for the literal
type storing the number of days since January 1, 1970, at 00:00:00Z.
You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default value, and documentation.
public static org.apache.kafka.connect.data.Schema schema()
Date but with all other default Schema settings. The schema describes a field
with the "io.debezium.time.Date" as the name and INT32 for the literal
type storing the number of days since January 1, 1970, at 00:00:00Z.builder()public static int toEpochDay(Object value, TemporalAdjuster adjuster)
LocalDateTime, LocalDate,
LocalTime, Date, Date, Time, or
Timestamp, ignoring any time portions of the supplied value.value - the local or SQL date, time, or timestamp value; may not be nulladjuster - the optional component that adjusts the local date value before obtaining the epoch day; may be null if no
adjustment is necessaryIllegalArgumentException - if the value is not an instance of the acceptable typesCopyright © 2018 JBoss by Red Hat. All rights reserved.