public class Timestamp extends Object
INT64
number of
milliseconds past epoch, and for defining a Kafka Connect Schema
for timestamp values with no timezone
information.MicroTimestamp
,
NanoTimestamp
,
ZonedTimestamp
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_NAME |
Modifier | Constructor and Description |
---|---|
private |
Timestamp() |
Modifier and Type | Method and Description |
---|---|
static org.apache.kafka.connect.data.SchemaBuilder |
builder()
Returns a
SchemaBuilder for a Timestamp . |
static org.apache.kafka.connect.data.Schema |
schema()
Returns a Schema for a
Timestamp but with all other default Schema settings. |
static long |
toEpochMillis(Object value)
|
public static final String SCHEMA_NAME
public static org.apache.kafka.connect.data.SchemaBuilder builder()
SchemaBuilder
for a Timestamp
. The resulting schema will describe a field
with the "io.debezium.time.Timestamp" as the name
and INT64
for the literal
type storing the number of milliseconds past midnight.
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()
Timestamp
but with all other default Schema settings. The schema describes a field
with the "io.debezium.time.Timestamp" as the name
and INT64
for the literal
type storing the number of milliseconds past midnight.builder()
public static long toEpochMillis(Object value)
LocalDateTime
, LocalDate
,
LocalTime
, Date
, Date
, Time
, or
Timestamp
.value
- the local or SQL date, time, or timestamp value; may not be nullIllegalArgumentException
- if the value is not an instance of the acceptable typesCopyright © 2016 JBoss by Red Hat. All rights reserved.