Class Date
java.lang.Object
org.apache.beam.sdk.schemas.logicaltypes.Date
- All Implemented Interfaces:
Serializable,Schema.LogicalType<LocalDate,Long>
A date without a time-zone.
It cannot represent an instant on the time-line without additional information such as an offset or time-zone.
Its input type is a LocalDate, and base type is a Long that represents a
incrementing count of days where day 0 is 1970-01-01 (ISO).
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn optional argument to configure the type.A schema type representing how to interpret the argument.The baseSchema.FieldTypeused to store values of this type.The unique identifier for this type.toBaseType(LocalDate input) Convert the input type to the type Java type used by the baseSchema.FieldType.toInputType(Long base) Convert the Java type used by the baseSchema.FieldTypeto the input type.
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
Date
public Date()
-
-
Method Details
-
getIdentifier
Description copied from interface:Schema.LogicalTypeThe unique identifier for this type.- Specified by:
getIdentifierin interfaceSchema.LogicalType<LocalDate,Long>
-
getArgumentType
Description copied from interface:Schema.LogicalTypeA schema type representing how to interpret the argument.nullindicates this logical type is not parameterized by an argument.- Specified by:
getArgumentTypein interfaceSchema.LogicalType<LocalDate,Long>
-
getArgument
Description copied from interface:Schema.LogicalTypeAn optional argument to configure the type.- Specified by:
getArgumentin interfaceSchema.LogicalType<LocalDate,Long>
-
getBaseType
Description copied from interface:Schema.LogicalTypeThe baseSchema.FieldTypeused to store values of this type.- Specified by:
getBaseTypein interfaceSchema.LogicalType<LocalDate,Long>
-
toBaseType
Description copied from interface:Schema.LogicalTypeConvert the input type to the type Java type used by the baseSchema.FieldType.- Specified by:
toBaseTypein interfaceSchema.LogicalType<LocalDate,Long>
-
toInputType
Description copied from interface:Schema.LogicalTypeConvert the Java type used by the baseSchema.FieldTypeto the input type.- Specified by:
toInputTypein interfaceSchema.LogicalType<LocalDate,Long>
-