| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| public static final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Schema | Returns: the modified Schemaa Schema schema)Add this logical type to the given Schema. |
| public String | |
| public void |
| INCOMPATIBLE_PROPS | back to summary |
|---|---|
| private static final String[] INCOMPATIBLE_PROPS | |
| LOGICAL_TYPE_PROP | back to summary |
|---|---|
| public static final String LOGICAL_TYPE_PROP | |
| name | back to summary |
|---|---|
| private final String name | |
| LogicalType | back to summary |
|---|---|
| public LogicalType(String logicalTypeName) | |
| addToSchema | back to summary |
|---|---|
| public Schema addToSchema(Schema schema) Add this logical type to the given Schema. The "logicalType" property will be set to this type's name, and other type-specific properties may be added. The Schema is first validated to ensure it is compatible.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name of this logical type. This name is set as the Schema property "logicalType".
| |
| validate | back to summary |
|---|---|
| public void validate(Schema schema) Validate this logical type for the given Schema. 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.
| |