public static class CustomEnumLogicalTypeFactory.CustomEnumLogicalType extends LogicalType
LOGICAL_TYPE_PROP
Constructor and Description |
---|
CustomEnumLogicalType(String logicalTypeName) |
Modifier and Type | Method and Description |
---|---|
void |
validate(Schema schema)
Validate this logical type for the given Schema.
|
addToSchema, getName
public CustomEnumLogicalType(String logicalTypeName)
public void validate(Schema schema)
LogicalType
This will throw an exception if the Schema is incompatible with this type. For example, a date is stored as an int and is incompatible with a fixed Schema.
validate
in class LogicalType
schema
- a SchemaCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.