Package io.trino.plugin.hive.util
Class ForwardingRecordCursor
- java.lang.Object
-
- io.trino.plugin.hive.util.ForwardingRecordCursor
-
- All Implemented Interfaces:
RecordCursor,Closeable,AutoCloseable
- Direct Known Subclasses:
HiveBucketAdapterRecordCursor,HiveBucketValidationRecordCursor,HiveCoercionRecordCursor,HiveReaderProjectionsAdaptingRecordCursor,HiveRecordCursor
public abstract class ForwardingRecordCursor extends Object implements RecordCursor
-
-
Constructor Summary
Constructors Constructor Description ForwardingRecordCursor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanadvanceNextPosition()voidclose()protected abstract RecordCursordelegate()booleangetBoolean(int field)longgetCompletedBytes()doublegetDouble(int field)longgetLong(int field)ObjectgetObject(int field)longgetReadTimeNanos()io.airlift.slice.SlicegetSlice(int field)longgetSystemMemoryUsage()TypegetType(int field)booleanisNull(int field)
-
-
-
Method Detail
-
delegate
protected abstract RecordCursor delegate()
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceRecordCursor
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceRecordCursor
-
getType
public Type getType(int field)
- Specified by:
getTypein interfaceRecordCursor
-
advanceNextPosition
public boolean advanceNextPosition()
- Specified by:
advanceNextPositionin interfaceRecordCursor
-
getBoolean
public boolean getBoolean(int field)
- Specified by:
getBooleanin interfaceRecordCursor
-
getLong
public long getLong(int field)
- Specified by:
getLongin interfaceRecordCursor
-
getDouble
public double getDouble(int field)
- Specified by:
getDoublein interfaceRecordCursor
-
getSlice
public io.airlift.slice.Slice getSlice(int field)
- Specified by:
getSlicein interfaceRecordCursor
-
getObject
public Object getObject(int field)
- Specified by:
getObjectin interfaceRecordCursor
-
isNull
public boolean isNull(int field)
- Specified by:
isNullin interfaceRecordCursor
-
getSystemMemoryUsage
public long getSystemMemoryUsage()
- Specified by:
getSystemMemoryUsagein interfaceRecordCursor
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRecordCursor
-
-