Package io.trino.plugin.pinot
Class PinotBrokerPageSource
- java.lang.Object
-
- io.trino.plugin.pinot.PinotBrokerPageSource
-
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
public class PinotBrokerPageSource extends Object implements ConnectorPageSource
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description PinotBrokerPageSource(ConnectorSession session, PinotQueryInfo query, List<PinotColumnHandle> columnHandles, PinotClient pinotClient, int limitForBrokerQueries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetCompletedBytes()longgetMemoryUsage()PagegetNextPage()longgetReadTimeNanos()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, isBlocked
-
-
-
-
Constructor Detail
-
PinotBrokerPageSource
public PinotBrokerPageSource(ConnectorSession session, PinotQueryInfo query, List<PinotColumnHandle> columnHandles, PinotClient pinotClient, int limitForBrokerQueries)
-
-
Method Detail
-
getCompletedBytes
public long getCompletedBytes()
- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()
- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceConnectorPageSource
-
getNextPage
public Page getNextPage()
- Specified by:
getNextPagein interfaceConnectorPageSource
-
getMemoryUsage
public long getMemoryUsage()
- Specified by:
getMemoryUsagein interfaceConnectorPageSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
-