Package com.jerolba.carpet.impl.read
Class SchemaValidation
java.lang.Object
com.jerolba.carpet.impl.read.SchemaValidation
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaValidation
(boolean failOnMissingColumn, boolean strictNumericType, boolean failOnNullForPrimitives) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasMapShape
(org.apache.parquet.schema.GroupType rootGroup) static boolean
isBasicSupportedType
(JavaType type) static boolean
isThreeLevel
(org.apache.parquet.schema.Type child) boolean
validateMissingColumn
(String name, com.jerolba.carpet.impl.read.ColumnPath column) boolean
validateNullability
(org.apache.parquet.schema.Type parquetType, RecordComponent recordComponent) boolean
validatePrimitiveCompatibility
(org.apache.parquet.schema.PrimitiveType primitiveType, Class<?> javaType)
-
Constructor Details
-
SchemaValidation
public SchemaValidation(boolean failOnMissingColumn, boolean strictNumericType, boolean failOnNullForPrimitives)
-
-
Method Details
-
validateMissingColumn
-
validatePrimitiveCompatibility
public boolean validatePrimitiveCompatibility(org.apache.parquet.schema.PrimitiveType primitiveType, Class<?> javaType) -
validateNullability
public boolean validateNullability(org.apache.parquet.schema.Type parquetType, RecordComponent recordComponent) -
isBasicSupportedType
-
isThreeLevel
public static boolean isThreeLevel(org.apache.parquet.schema.Type child) -
hasMapShape
public static boolean hasMapShape(org.apache.parquet.schema.GroupType rootGroup)
-