Package org.apache.pulsar.sql.presto
Class PulsarRecordCursor
java.lang.Object
org.apache.pulsar.sql.presto.PulsarRecordCursor
- All Implemented Interfaces:
io.prestosql.spi.connector.RecordCursor,Closeable,AutoCloseable
Implementation of a cursor to read records.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.sql.presto.PulsarRecordCursor.ChunkedMessageCtx> -
Constructor Summary
ConstructorsConstructorDescriptionPulsarRecordCursor(List<PulsarColumnHandle> columnHandles, PulsarSplit pulsarSplit, PulsarConnectorConfig pulsarConnectorConfig, PulsarDispatchingRowDecoderFactory decoderFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclose()booleangetBoolean(int field) longdoublegetDouble(int field) longgetLong(int field) getObject(int field) longio.airlift.slice.SlicegetSlice(int field) io.prestosql.spi.type.TypegetType(int field) booleanisNull(int field) voidsetPulsarSqlSchemaInfoProvider(PulsarSqlSchemaInfoProvider schemaInfoProvider) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.prestosql.spi.connector.RecordCursor
getSystemMemoryUsage
-
Field Details
-
chunkedMessagesMap
protected org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.sql.presto.PulsarRecordCursor.ChunkedMessageCtx> chunkedMessagesMap
-
-
Constructor Details
-
PulsarRecordCursor
public PulsarRecordCursor(List<PulsarColumnHandle> columnHandles, PulsarSplit pulsarSplit, PulsarConnectorConfig pulsarConnectorConfig, PulsarDispatchingRowDecoderFactory decoderFactory)
-
-
Method Details
-
getCompletedBytes
public long getCompletedBytes()- Specified by:
getCompletedBytesin interfaceio.prestosql.spi.connector.RecordCursor
-
getReadTimeNanos
public long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceio.prestosql.spi.connector.RecordCursor
-
getType
public io.prestosql.spi.type.Type getType(int field) - Specified by:
getTypein interfaceio.prestosql.spi.connector.RecordCursor
-
setPulsarSqlSchemaInfoProvider
-
advanceNextPosition
public boolean advanceNextPosition()- Specified by:
advanceNextPositionin interfaceio.prestosql.spi.connector.RecordCursor
-
getBoolean
public boolean getBoolean(int field) - Specified by:
getBooleanin interfaceio.prestosql.spi.connector.RecordCursor
-
getLong
public long getLong(int field) - Specified by:
getLongin interfaceio.prestosql.spi.connector.RecordCursor
-
getDouble
public double getDouble(int field) - Specified by:
getDoublein interfaceio.prestosql.spi.connector.RecordCursor
-
getSlice
public io.airlift.slice.Slice getSlice(int field) - Specified by:
getSlicein interfaceio.prestosql.spi.connector.RecordCursor
-
getObject
- Specified by:
getObjectin interfaceio.prestosql.spi.connector.RecordCursor
-
isNull
public boolean isNull(int field) - Specified by:
isNullin interfaceio.prestosql.spi.connector.RecordCursor
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceio.prestosql.spi.connector.RecordCursor
-