Package io.trino.split
Class MappedPageSource
- java.lang.Object
-
- io.trino.split.MappedPageSource
-
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
public class MappedPageSource extends Object implements ConnectorPageSource
-
-
Field Summary
-
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED
-
-
Constructor Summary
Constructors Constructor Description MappedPageSource(ConnectorPageSource delegate, List<Integer> delegateFieldIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetCompletedBytes()PagegetNextPage()longgetReadTimeNanos()longgetSystemMemoryUsage()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
-
MappedPageSource
public MappedPageSource(ConnectorPageSource delegate, List<Integer> delegateFieldIndex)
-
-
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
-
getSystemMemoryUsage
public long getSystemMemoryUsage()
- Specified by:
getSystemMemoryUsagein interfaceConnectorPageSource
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource- Throws:
IOException
-
-