Class LogicalTypeAnnotation.VariantLogicalTypeAnnotation

java.lang.Object
org.apache.parquet.schema.LogicalTypeAnnotation
org.apache.parquet.schema.LogicalTypeAnnotation.VariantLogicalTypeAnnotation
Enclosing class:
LogicalTypeAnnotation

public static class LogicalTypeAnnotation.VariantLogicalTypeAnnotation extends LogicalTypeAnnotation
  • Method Details

    • toOriginalType

      public OriginalType toOriginalType()
      Description copied from class: LogicalTypeAnnotation
      Convert this logical type to old logical type representation in parquet-mr (if there's any). Those logical type implementations, which don't have a corresponding mapping should return null.

      API should be considered private

      Specified by:
      toOriginalType in class LogicalTypeAnnotation
      Returns:
      the OriginalType representation of the new logical type, or null if there's none
    • accept

      public <T> Optional<T> accept(LogicalTypeAnnotation.LogicalTypeAnnotationVisitor<T> logicalTypeAnnotationVisitor)
      Description copied from class: LogicalTypeAnnotation
      Visits this logical type with the given visitor
      Specified by:
      accept in class LogicalTypeAnnotation
      Parameters:
      logicalTypeAnnotationVisitor - the visitor to visit this type
    • getSpecVersion

      public byte getSpecVersion()
    • typeParametersAsString

      protected String typeParametersAsString()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object