Package io.trino.plugin.atop
Class AtopPageSource
java.lang.Object
io.trino.plugin.atop.AtopPageSource
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionAtopPageSource(Semaphore readerPermits, AtopFactory atopFactory, ConnectorSession session, io.airlift.slice.Slice hostIp, AtopTable table, ZonedDateTime date, List<AtopTable.AtopColumn> columns, List<Type> types) -
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, isBlocked
-
Constructor Details
-
AtopPageSource
public AtopPageSource(Semaphore readerPermits, AtopFactory atopFactory, ConnectorSession session, io.airlift.slice.Slice hostIp, AtopTable table, ZonedDateTime date, List<AtopTable.AtopColumn> columns, List<Type> types)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource
-
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
- Specified by:
getNextPagein interfaceConnectorPageSource
-
getMemoryUsage
public long getMemoryUsage()- Specified by:
getMemoryUsagein interfaceConnectorPageSource
-