iceberg org.apache.iceberg.parquet.Parquet parquet file read

Posted PeersLee

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iceberg org.apache.iceberg.parquet.Parquet parquet file read相关的知识,希望对你有一定的参考价值。

org.apache.iceberg.parquet.Parquet#read

public static ReadBuilder read(InputFile file) {
    return new ReadBuilder(file);
}

org.apache.iceberg.parquet.Parquet.ReadBuilder

public static class ReadBuilder {
    // 文件读范围: [start, start + length).
    private Long start = null;
    private Long length = null;
    // 文件所属 table 的 schema
    private Schema schema = null;
    // org.apache.iceberg.expressions.Expressions#alwaysTrue
    private Expression filter = null;
    // reader
    private Function<MessageType, ParquetValueReader<?>> readerFunc = null;
    // 大小写敏感
    private boolean caseSensitive = true;
}

遍历迭代器

CloseableIterable<T> iter = builder.build();
this.currentIterator = iter.iterator();
while (this.currentIterator.hasNext()) {
    RowData data = this.currentIterator.next();
    res.add(data);
}

 

以上是关于iceberg org.apache.iceberg.parquet.Parquet parquet file read的主要内容,如果未能解决你的问题,请参考以下文章

数据湖(十四):Spark与Iceberg整合查询操作

数据湖:Hive与Iceberg整合

iceberg org.apache.iceberg.parquet.Parquet parquet file read

iceberg org.apache.iceberg.parquet.Parquet parquet file read

iceberg org.apache.iceberg.parquet.Parquet parquet file read

iceberg org.apache.iceberg.parquet.Parquet parquet file read