public class Interval extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_NAME |
| Modifier | Constructor and Description |
|---|---|
private |
Interval() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.connect.data.SchemaBuilder |
builder()
Returns a
SchemaBuilder for a Interval. |
static org.apache.kafka.connect.data.Schema |
schema()
Returns a Schema for a
Interval but with all other default Schema settings. |
static String |
toIsoString(int years,
int months,
int days,
int hours,
int minutes,
BigDecimal seconds)
Converts a number of time units to a ISO formatted string.
|
public static final String SCHEMA_NAME
public static org.apache.kafka.connect.data.SchemaBuilder builder()
SchemaBuilder for a Interval. The resulting schema will describe a field
with the "io.debezium.time.Interval" as the name and SchemaBuilder.string()() STRING} for the literal
type storing the components of the interval.
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()
Interval but with all other default Schema settings. The schema describes a field
with the "io.debezium.time.Interval" as the name and SchemaBuilder.string() STRING} for the literal
type storing the components of the interval.builder()public static String toIsoString(int years, int months, int days, int hours, int minutes, BigDecimal seconds)
years - a number of yearsmonths - a number of monthsdays - a number of dayshours - a number of hoursminutes - a number of minutesseconds - a number of secondsmicros - a number of microsecondsdaysPerMonthAvg - an optional value representing a days per month average; if null, the default duration
from ChronoUnit.MONTHS is used.Copyright © 2020 JBoss by Red Hat. All rights reserved.