Package com.jerolba.carpet.impl.read
Class SchemaValidation
java.lang.Object
com.jerolba.carpet.impl.read.SchemaValidation
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaValidation
(boolean failOnMissingColumn, boolean failNarrowingPrimitiveConversion, boolean failOnNullForPrimitives) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasMapShape
(org.apache.parquet.schema.GroupType rootGroup) static boolean
isBasicSupportedType
(JavaType type) static boolean
isCompliantThreeLevelWith
(org.apache.parquet.schema.Type child, String elementName) static boolean
isThreeLevel
(org.apache.parquet.schema.Type child) boolean
validateMissingColumn
(Class<?> clazz, String fieldName) 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 failNarrowingPrimitiveConversion, 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) -
isCompliantThreeLevelWith
public static boolean isCompliantThreeLevelWith(org.apache.parquet.schema.Type child, String elementName) -
hasMapShape
public static boolean hasMapShape(org.apache.parquet.schema.GroupType rootGroup)
-