Package io.trino.plugin.thrift
Class ThriftIndexPageSource
- java.lang.Object
-
- io.trino.plugin.thrift.ThriftIndexPageSource
-
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
public class ThriftIndexPageSource extends Object implements ConnectorPageSource
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetCompletedBytes()PagegetNextPage()longgetReadTimeNanos()longgetSystemMemoryUsage()CompletableFuture<?>isBlocked()booleanisFinished()-
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.ConnectorPageSource
getCompletedPositions, getMetrics
-
-
-
-
Constructor Detail
-
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 Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
getSystemMemoryUsage
public long getSystemMemoryUsage()
- Specified by:
getSystemMemoryUsagein interfaceConnectorPageSource
-
isBlocked
public CompletableFuture<?> isBlocked()
- Specified by:
isBlockedin interfaceConnectorPageSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceConnectorPageSource
-
getNextPage
public Page getNextPage()
- Specified by:
getNextPagein interfaceConnectorPageSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
-