Class LinePageSource
java.lang.Object
io.trino.plugin.hive.line.LinePageSource
- All Implemented Interfaces:
ConnectorPageSource,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface io.trino.spi.connector.ConnectorPageSource
NOT_BLOCKED -
Constructor Summary
ConstructorsConstructorDescriptionLinePageSource(LineReader lineReader, LineDeserializer deserializer, LineBuffer lineBuffer, Location filePath) -
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
getMetrics, isBlocked
-
Constructor Details
-
LinePageSource
public LinePageSource(LineReader lineReader, LineDeserializer deserializer, LineBuffer lineBuffer, Location filePath)
-
-
Method Details
-
getNextPage
- Specified by:
getNextPagein interfaceConnectorPageSource
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnectorPageSource- Throws:
IOException
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceConnectorPageSource
-
getCompletedBytes
public long getCompletedBytes()- Specified by:
getCompletedBytesin interfaceConnectorPageSource
-
getCompletedPositions
- Specified by:
getCompletedPositionsin interfaceConnectorPageSource
-
getReadTimeNanos
public long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceConnectorPageSource
-
getMemoryUsage
public long getMemoryUsage()- Specified by:
getMemoryUsagein interfaceConnectorPageSource
-