Package io.trino.plugin.hive
Class HiveReaderProjectionsAdaptingRecordCursor
java.lang.Object
io.trino.plugin.hive.util.ForwardingRecordCursor
io.trino.plugin.hive.HiveReaderProjectionsAdaptingRecordCursor
- All Implemented Interfaces:
RecordCursor,Closeable,AutoCloseable
Applies projections on delegate fields provided by
ReaderProjectionsAdapter.ChannelMapping to produce fields expected from this cursor.-
Constructor Summary
ConstructorsConstructorDescriptionHiveReaderProjectionsAdaptingRecordCursor(RecordCursor delegate, ReaderProjectionsAdapter projectionsAdapter) -
Method Summary
Methods inherited from class io.trino.plugin.hive.util.ForwardingRecordCursor
advanceNextPosition, close, getCompletedBytes, getMemoryUsage, getReadTimeNanos
-
Constructor Details
-
HiveReaderProjectionsAdaptingRecordCursor
public HiveReaderProjectionsAdaptingRecordCursor(RecordCursor delegate, ReaderProjectionsAdapter projectionsAdapter)
-
-
Method Details
-
delegate
- Specified by:
delegatein classForwardingRecordCursor
-
getType
- Specified by:
getTypein interfaceRecordCursor- Overrides:
getTypein classForwardingRecordCursor
-
getBoolean
public boolean getBoolean(int field) - Specified by:
getBooleanin interfaceRecordCursor- Overrides:
getBooleanin classForwardingRecordCursor
-
getLong
public long getLong(int field) - Specified by:
getLongin interfaceRecordCursor- Overrides:
getLongin classForwardingRecordCursor
-
getDouble
public double getDouble(int field) - Specified by:
getDoublein interfaceRecordCursor- Overrides:
getDoublein classForwardingRecordCursor
-
getSlice
public io.airlift.slice.Slice getSlice(int field) - Specified by:
getSlicein interfaceRecordCursor- Overrides:
getSlicein classForwardingRecordCursor
-
getObject
- Specified by:
getObjectin interfaceRecordCursor- Overrides:
getObjectin classForwardingRecordCursor
-
isNull
public boolean isNull(int field) - Specified by:
isNullin interfaceRecordCursor- Overrides:
isNullin classForwardingRecordCursor
-