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 booleanhasMapShape(org.apache.parquet.schema.GroupType rootGroup) static booleanisBasicSupportedType(JavaType type) static booleanisCompliantThreeLevelWith(org.apache.parquet.schema.Type child, String elementName) static booleanisThreeLevel(org.apache.parquet.schema.Type child) booleanvalidateMissingColumn(Class<?> clazz, String fieldName) booleanvalidateNullability(org.apache.parquet.schema.Type parquetType, RecordComponent recordComponent) booleanvalidatePrimitiveCompatibility(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)
-