public class ValidTypeMap extends Object
FilterPredicates
This is a bit ugly, but it allows us to provide good error messages at runtime when there are type mismatches.
TODO: this has some overlap with PrimitiveType.PrimitiveTypeName.javaType
TODO: (https://issues.apache.org/jira/browse/PARQUET-30)
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
assertTypeValid(Operators.Column<T> foundColumn,
PrimitiveType.PrimitiveTypeName primitiveType)
Asserts that foundColumn was declared as a type that is compatible with the type for this column found
in the schema of the parquet file.
|
public static <T extends Comparable<T>> void assertTypeValid(Operators.Column<T> foundColumn, PrimitiveType.PrimitiveTypeName primitiveType)
T - the java Type of values in the column, must be ComparablefoundColumn - the column as declared by the userprimitiveType - the primitive type according to the schemaIllegalArgumentException - if the types do not alignCopyright © 2023 The Apache Software Foundation. All rights reserved.