Package io.debezium.time
Class Year
java.lang.Object
io.debezium.time.Year
A utility for defining a Kafka Connect
Schema
that represents year values.- Author:
- Randall Hauch
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
SCHEMA_NAME
- See Also:
-
-
Constructor Details
-
Year
private Year()
-
-
Method Details
-
builder
public static org.apache.kafka.connect.data.SchemaBuilder builder()Returns aSchemaBuilder
for aYear
. The builder will create a schema that describes a field with the "io.debezium.time.Year" as thename
andINT32
for the literal type storing the year number.You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default value, and documentation.
- Returns:
- the schema builder
-
schema
public static org.apache.kafka.connect.data.Schema schema()Returns a Schema for aYear
but with all other default Schema settings. The schema describes a field with the "io.debezium.time.Year" as thename
andINT32
for the literal type storing the year number.- Returns:
- the schema
- See Also:
-