Package io.trino.plugin.hive.parquet
Class ParquetPageSource
- java.lang.Object
-
- io.trino.plugin.hive.parquet.ParquetPageSource
-
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
public class ParquetPageSource extends Object implements ConnectorPageSource
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description ParquetPageSource(ParquetReader parquetReader, List<Type> types, List<Boolean> rowIndexLocations, List<Optional<Field>> fields)ParquetPageSource(ParquetReader parquetReader, List<Type> types, List<Optional<Field>> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetCompletedBytes()OptionalLonggetCompletedPositions()PagegetNextPage()longgetReadTimeNanos()longgetSystemMemoryUsage()booleanisFinished()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.ConnectorPageSource
getMetrics, isBlocked
-
-
-
-
Constructor Detail
-
ParquetPageSource
public ParquetPageSource(ParquetReader parquetReader, List<Type> types, List<Optional<Field>> fields)
-
ParquetPageSource
public ParquetPageSource(ParquetReader parquetReader, List<Type> types, List<Boolean> rowIndexLocations, List<Optional<Field>> fields)
- Parameters:
types- Column typesrowIndexLocations- Whether each column should be populated with the indices of its rowsfields- List of field descriptions. Empty optionals will result in columns populated withNULL
-
-
Method Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getCompletedPositions
public OptionalLong getCompletedPositions()
- Specified by:
getCompletedPositionsin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceConnectorPageSource
-
getSystemMemoryUsage
public long getSystemMemoryUsage()
- Specified by:
getSystemMemoryUsagein interfaceConnectorPageSource
-
getNextPage
public Page getNextPage()
- Specified by:
getNextPagein interfaceConnectorPageSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
-