Package io.trino.spi.connector
Interface RecordCursor
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
InMemoryRecordSet.InMemoryRecordCursor
-
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) default longgetObject(int field) longGets the wall time spent reading data.io.airlift.slice.SlicegetSlice(int field) getType(int field) booleanisNull(int field)
-
Method Details
-
getCompletedBytes
long getCompletedBytes()Gets the number of input bytes processed by this record cursor so far. If size is not available, this method should return zero. -
getReadTimeNanos
long getReadTimeNanos()Gets the wall time spent reading data. If read time is not available, this method should return zero.- See Also:
-
getType
-
advanceNextPosition
boolean advanceNextPosition() -
getBoolean
boolean getBoolean(int field) -
getLong
long getLong(int field) -
getDouble
double getDouble(int field) -
getSlice
io.airlift.slice.Slice getSlice(int field) -
getObject
-
isNull
boolean isNull(int field) -
getMemoryUsage
default long getMemoryUsage() -
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-