Package io.trino.plugin.accumulo.io
Class AccumuloRecordCursor
- java.lang.Object
-
- io.trino.plugin.accumulo.io.AccumuloRecordCursor
-
- All Implemented Interfaces:
RecordCursor,Closeable,AutoCloseable
public class AccumuloRecordCursor extends Object implements RecordCursor
Implementation of Trino RecordCursor, responsible for iterating over a Trino split, reading rows of data and then implementing various methods to retrieve columns within each row.- See Also:
AccumuloRecordSet,AccumuloRecordSetProvider
-
-
Constructor Summary
Constructors Constructor Description AccumuloRecordCursor(AccumuloRowSerializer serializer, org.apache.accumulo.core.client.BatchScanner scanner, String rowIdName, List<AccumuloColumnHandle> columnHandles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadvanceNextPosition()voidclose()booleangetBoolean(int field)longgetCompletedBytes()doublegetDouble(int field)longgetLong(int field)ObjectgetObject(int field)longgetReadTimeNanos()io.airlift.slice.SlicegetSlice(int field)TypegetType(int field)booleanisNull(int field)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.RecordCursor
getSystemMemoryUsage
-
-
-
-
Constructor Detail
-
AccumuloRecordCursor
public AccumuloRecordCursor(AccumuloRowSerializer serializer, org.apache.accumulo.core.client.BatchScanner scanner, String rowIdName, List<AccumuloColumnHandle> columnHandles)
-
-
Method Detail
-
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
-
isNull
public boolean isNull(int field)
- Specified by:
isNullin interfaceRecordCursor
-
getBoolean
public boolean getBoolean(int field)
- Specified by:
getBooleanin interfaceRecordCursor
-
getDouble
public double getDouble(int field)
- Specified by:
getDoublein interfaceRecordCursor
-
getLong
public long getLong(int field)
- Specified by:
getLongin interfaceRecordCursor
-
getObject
public Object getObject(int field)
- Specified by:
getObjectin interfaceRecordCursor
-
getSlice
public io.airlift.slice.Slice getSlice(int field)
- Specified by:
getSlicein interfaceRecordCursor
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRecordCursor
-
-