Class SchemaValidation

java.lang.Object
com.jerolba.carpet.impl.read.SchemaValidation

public class SchemaValidation extends Object
  • Constructor Details

    • SchemaValidation

      public SchemaValidation(boolean failOnMissingColumn, boolean failNarrowingPrimitiveConversion, boolean failOnNullForPrimitives)
  • Method Details

    • validateMissingColumn

      public boolean validateMissingColumn(Class<?> clazz, String fieldName)
    • 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

      public static boolean isBasicSupportedType(JavaType type)
    • 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)