Package io.trino.plugin.hive
Class ReaderColumns
java.lang.Object
io.trino.plugin.hive.ReaderColumns
Stores a mapping between
- the projected columns required by a connector level pagesource and
- the columns supplied by format-specific page source
Currently used in HivePageSource, io.trino.plugin.iceberg.IcebergPageSource,
and io.trino.plugin.deltalake.DeltaLakePageSource.
-
Constructor Summary
ConstructorsConstructorDescriptionReaderColumns(List<? extends ColumnHandle> readerColumns, List<Integer> readerBlockIndices) -
Method Summary
Modifier and TypeMethodDescriptionget()returns the actual list of columns being read by underlying page source or record cursor in order.getForColumnAt(int index) For a column required by the wrapper page source, returns the column read by the delegate page source or record cursor.intgetPositionForColumnAt(int index) For a channel expected by wrapper page source, returns the channel index in the underlying page source or record cursor.
-
Constructor Details
-
ReaderColumns
-
-
Method Details
-
getForColumnAt
For a column required by the wrapper page source, returns the column read by the delegate page source or record cursor. -
getPositionForColumnAt
public int getPositionForColumnAt(int index) For a channel expected by wrapper page source, returns the channel index in the underlying page source or record cursor. -
get
returns the actual list of columns being read by underlying page source or record cursor in order.
-