Package org.apache.iceberg.parquet
Class ParquetReader<T>
- java.lang.Object
-
- org.apache.iceberg.io.CloseableGroup
-
- org.apache.iceberg.parquet.ParquetReader<T>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Iterable<T>
,CloseableIterable<T>
public class ParquetReader<T> extends CloseableGroup implements CloseableIterable<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.io.CloseableIterable
CloseableIterable.ConcatCloseableIterable<E>
-
-
Constructor Summary
Constructors Constructor Description ParquetReader(InputFile input, Schema expectedSchema, org.apache.parquet.ParquetReadOptions options, java.util.function.Function<org.apache.parquet.schema.MessageType,ParquetValueReader<?>> readerFunc, NameMapping nameMapping, Expression filter, boolean reuseContainers, boolean caseSensitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableIterator<T>
iterator()
Returns an closeable iterator over elements of typeT
.-
Methods inherited from class org.apache.iceberg.io.CloseableGroup
addCloseable, addCloseable, close, setSuppressCloseFailure
-
-
-
-
Constructor Detail
-
ParquetReader
public ParquetReader(InputFile input, Schema expectedSchema, org.apache.parquet.ParquetReadOptions options, java.util.function.Function<org.apache.parquet.schema.MessageType,ParquetValueReader<?>> readerFunc, NameMapping nameMapping, Expression filter, boolean reuseContainers, boolean caseSensitive)
-
-
Method Detail
-
iterator
public CloseableIterator<T> iterator()
Description copied from interface:CloseableIterable
Returns an closeable iterator over elements of typeT
.- Specified by:
iterator
in interfaceCloseableIterable<T>
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
- Returns:
- an
CloseableIterator
.
-
-