Package io.trino.plugin.thrift
Class ThriftIndexPageSource
java.lang.Object
io.trino.plugin.thrift.ThriftIndexPageSource
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionThriftIndexPageSource(io.airlift.drift.client.DriftClient<TrinoThriftService> client, Map<String, String> thriftHeaders, ThriftConnectorStats stats, ThriftIndexHandle indexHandle, List<ColumnHandle> lookupColumns, List<ColumnHandle> outputColumns, RecordSet keys, long maxBytesPerResponse, int lookupRequestsConcurrency) -
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.ConnectorPageSource
getCompletedPositions, getMetrics
-
Constructor Details
-
ThriftIndexPageSource
public ThriftIndexPageSource(io.airlift.drift.client.DriftClient<TrinoThriftService> client, Map<String, String> thriftHeaders, ThriftConnectorStats stats, ThriftIndexHandle indexHandle, List<ColumnHandle> lookupColumns, List<ColumnHandle> outputColumns, RecordSet keys, long maxBytesPerResponse, int lookupRequestsConcurrency)
-
-
Method Details
-
getCompletedBytes
public long getCompletedBytes()- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
getMemoryUsage
public long getMemoryUsage()- Specified by:
getMemoryUsagein interfaceConnectorPageSource
-
isBlocked
- Specified by:
isBlockedin interfaceConnectorPageSource
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceConnectorPageSource
-
getNextPage
- Specified by:
getNextPagein interfaceConnectorPageSource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-