Class ParquetMetadataConverter

java.lang.Object
io.trino.parquet.ParquetMetadataConverter

public final class ParquetMetadataConverter extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.parquet.column.EncodingStats
    convertEncodingStats(List<org.apache.parquet.format.PageEncodingStats> stats)
     
    static org.apache.parquet.format.LogicalType
    convertToLogicalType(org.apache.parquet.schema.LogicalTypeAnnotation annotation)
     
    static org.apache.parquet.internal.column.columnindex.ColumnIndex
    fromParquetColumnIndex(org.apache.parquet.schema.PrimitiveType type, org.apache.parquet.format.ColumnIndex parquetColumnIndex)
     
    static org.apache.parquet.internal.column.columnindex.OffsetIndex
    fromParquetOffsetIndex(org.apache.parquet.format.OffsetIndex parquetOffsetIndex)
     
    static org.apache.parquet.column.statistics.Statistics<?>
    fromParquetStatistics(String createdBy, org.apache.parquet.format.Statistics statistics, org.apache.parquet.schema.PrimitiveType type)
     
    static org.apache.parquet.format.Encoding
    getEncoding(org.apache.parquet.column.Encoding encoding)
     
    static org.apache.parquet.column.Encoding
    getEncoding(org.apache.parquet.format.Encoding encoding)
     
    static org.apache.parquet.schema.LogicalTypeAnnotation
    getLogicalTypeAnnotation(org.apache.parquet.format.ConvertedType type, org.apache.parquet.format.SchemaElement element)
     
    static org.apache.parquet.schema.LogicalTypeAnnotation
    getLogicalTypeAnnotation(org.apache.parquet.format.LogicalType type)
     
    static org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName
    getPrimitive(org.apache.parquet.format.Type type)
     
    static boolean
    isMinMaxStatsSupported(org.apache.parquet.schema.PrimitiveType type)
     
    toColumnIndexReference(org.apache.parquet.format.ColumnChunk columnChunk)
     
    toOffsetIndexReference(org.apache.parquet.format.ColumnChunk columnChunk)
     
    static org.apache.parquet.format.Statistics
    toParquetStatistics(org.apache.parquet.column.statistics.Statistics<?> stats)
     
    static org.apache.parquet.format.Statistics
    toParquetStatistics(org.apache.parquet.column.statistics.Statistics<?> stats, int truncateLength)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • getLogicalTypeAnnotation

      public static org.apache.parquet.schema.LogicalTypeAnnotation getLogicalTypeAnnotation(org.apache.parquet.format.ConvertedType type, org.apache.parquet.format.SchemaElement element)
    • getLogicalTypeAnnotation

      public static org.apache.parquet.schema.LogicalTypeAnnotation getLogicalTypeAnnotation(org.apache.parquet.format.LogicalType type)
    • convertToLogicalType

      public static org.apache.parquet.format.LogicalType convertToLogicalType(org.apache.parquet.schema.LogicalTypeAnnotation annotation)
    • getPrimitive

      public static org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName getPrimitive(org.apache.parquet.format.Type type)
    • getEncoding

      public static org.apache.parquet.format.Encoding getEncoding(org.apache.parquet.column.Encoding encoding)
    • getEncoding

      public static org.apache.parquet.column.Encoding getEncoding(org.apache.parquet.format.Encoding encoding)
    • convertEncodingStats

      public static org.apache.parquet.column.EncodingStats convertEncodingStats(List<org.apache.parquet.format.PageEncodingStats> stats)
    • fromParquetColumnIndex

      public static org.apache.parquet.internal.column.columnindex.ColumnIndex fromParquetColumnIndex(org.apache.parquet.schema.PrimitiveType type, org.apache.parquet.format.ColumnIndex parquetColumnIndex)
    • fromParquetOffsetIndex

      public static org.apache.parquet.internal.column.columnindex.OffsetIndex fromParquetOffsetIndex(org.apache.parquet.format.OffsetIndex parquetOffsetIndex)
    • isMinMaxStatsSupported

      public static boolean isMinMaxStatsSupported(org.apache.parquet.schema.PrimitiveType type)
    • toParquetStatistics

      public static org.apache.parquet.format.Statistics toParquetStatistics(org.apache.parquet.column.statistics.Statistics<?> stats)
    • toParquetStatistics

      public static org.apache.parquet.format.Statistics toParquetStatistics(org.apache.parquet.column.statistics.Statistics<?> stats, int truncateLength)
    • fromParquetStatistics

      public static org.apache.parquet.column.statistics.Statistics<?> fromParquetStatistics(String createdBy, org.apache.parquet.format.Statistics statistics, org.apache.parquet.schema.PrimitiveType type)
    • toColumnIndexReference

      public static IndexReference toColumnIndexReference(org.apache.parquet.format.ColumnChunk columnChunk)
    • toOffsetIndexReference

      public static IndexReference toOffsetIndexReference(org.apache.parquet.format.ColumnChunk columnChunk)