Package io.prestosql.spi.connector
Interface RecordCursor
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface RecordCursor extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
advanceNextPosition()
void
close()
boolean
getBoolean(int field)
long
getCompletedBytes()
double
getDouble(int field)
long
getLong(int field)
Object
getObject(int field)
long
getReadTimeNanos()
Gets the wall time spent reading data.io.airlift.slice.Slice
getSlice(int field)
default long
getSystemMemoryUsage()
Type
getType(int field)
boolean
isNull(int field)
-
-
-
Method Detail
-
getCompletedBytes
long getCompletedBytes()
-
getReadTimeNanos
long getReadTimeNanos()
Gets the wall time spent reading data. If read time is not available, this method should return zero.- See Also:
ConnectorPageSource.getReadTimeNanos()
-
getType
Type getType(int field)
-
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
Object getObject(int field)
-
isNull
boolean isNull(int field)
-
getSystemMemoryUsage
default long getSystemMemoryUsage()
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-