public class ReaderProjections extends Object
HivePageSource to the columns supplied by format-specific
page sources or record cursors.| Modifier and Type | Method and Description |
|---|---|
List<HiveColumnHandle> |
getReaderColumns()
returns the actual list of columns being read by underlying page source or record cursor in order.
|
static Optional<ReaderProjections> |
projectBaseColumns(List<HiveColumnHandle> columns)
Creates a mapping between the input and base columns if required.
|
static Optional<ReaderProjections> |
projectSufficientColumns(List<HiveColumnHandle> columns)
Creates a set of sufficient columns for the input projected columns and prepares a mapping between the two.
|
HiveColumnHandle |
readerColumnForHiveColumnAt(int index)
For a column required by the
HivePageSource, returns the column read by the delegate page source or record cursor. |
int |
readerColumnPositionForHiveColumnAt(int index)
For a channel expected by
HivePageSource, returns the channel index in the underlying page source or record cursor. |
public HiveColumnHandle readerColumnForHiveColumnAt(int index)
HivePageSource, returns the column read by the delegate page source or record cursor.public int readerColumnPositionForHiveColumnAt(int index)
HivePageSource, returns the channel index in the underlying page source or record cursor.public List<HiveColumnHandle> getReaderColumns()
public static Optional<ReaderProjections> projectBaseColumns(List<HiveColumnHandle> columns)
public static Optional<ReaderProjections> projectSufficientColumns(List<HiveColumnHandle> columns)
Copyright © 2012–2020. All rights reserved.