Package io.trino.plugin.hive
Class GenericHiveRecordCursor<K,V extends org.apache.hadoop.io.Writable>
java.lang.Object
io.trino.plugin.hive.GenericHiveRecordCursor<K,V>
- All Implemented Interfaces:
RecordCursor,Closeable,AutoCloseable
public class GenericHiveRecordCursor<K,V extends org.apache.hadoop.io.Writable>
extends Object
implements RecordCursor
-
Constructor Summary
ConstructorsConstructorDescriptionGenericHiveRecordCursor(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.RecordReader<K, V> recordReader, long totalBytes, Properties splitSchema, List<HiveColumnHandle> columns) -
Method Summary
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
-
GenericHiveRecordCursor
public GenericHiveRecordCursor(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.RecordReader<K, V> recordReader, long totalBytes, Properties splitSchema, List<HiveColumnHandle> columns)
-
-
Method Details
-
getCompletedBytes
public long getCompletedBytes()- Specified by:
getCompletedBytesin interfaceRecordCursor
-
getReadTimeNanos
public long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceRecordCursor
-
getType
- Specified by:
getTypein interfaceRecordCursor
-
advanceNextPosition
public boolean advanceNextPosition()- Specified by:
advanceNextPositionin interfaceRecordCursor
-
getBoolean
public boolean getBoolean(int fieldId) - Specified by:
getBooleanin interfaceRecordCursor
-
getLong
public long getLong(int fieldId) - Specified by:
getLongin interfaceRecordCursor
-
getDouble
public double getDouble(int fieldId) - Specified by:
getDoublein interfaceRecordCursor
-
getSlice
public io.airlift.slice.Slice getSlice(int fieldId) - Specified by:
getSlicein interfaceRecordCursor
-
getObject
- Specified by:
getObjectin interfaceRecordCursor
-
isNull
public boolean isNull(int fieldId) - Specified by:
isNullin interfaceRecordCursor
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRecordCursor
-