Package io.trino.spi.connector
Class InMemoryRecordSet.InMemoryRecordCursor
java.lang.Object
io.trino.spi.connector.InMemoryRecordSet.InMemoryRecordCursor
- All Implemented Interfaces:
RecordCursor,Closeable,AutoCloseable
- Enclosing class:
- InMemoryRecordSet
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInMemoryRecordCursor(List<Type> types, Iterator<? extends List<?>> records) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclose()booleangetBoolean(int field) longGets the number of input bytes processed by this record cursor so far.doublegetDouble(int field) longgetLong(int field) getObject(int field) longGets the wall time spent reading data.io.airlift.slice.SlicegetSlice(int field) getType(int field) booleanisNull(int field) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.connector.RecordCursor
getMemoryUsage
-
Constructor Details
-
InMemoryRecordCursor
-
-
Method Details
-
getCompletedBytes
public long getCompletedBytes()Description copied from interface:RecordCursorGets the number of input bytes processed by this record cursor so far. If size is not available, this method should return zero.- Specified by:
getCompletedBytesin interfaceRecordCursor
-
getReadTimeNanos
public long getReadTimeNanos()Description copied from interface:RecordCursorGets the wall time spent reading data. If read time is not available, this method should return zero.- Specified by:
getReadTimeNanosin interfaceRecordCursor- See Also:
-
getType
- 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
- Specified by:
getObjectin interfaceRecordCursor
-
isNull
public boolean isNull(int field) - Specified by:
isNullin interfaceRecordCursor
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRecordCursor
-