Package io.trino.hive.formats.line
Interface LineReader
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
FooterAwareLineReader,SequenceFileReader,TextLineReader
-
Method Summary
Modifier and TypeMethodDescriptionlonglonglongbooleanisClosed()booleanreadLine(LineBuffer lineBuffer) Read a line into the buffer.
-
Method Details
-
isClosed
boolean isClosed() -
getRetainedSize
long getRetainedSize() -
getBytesRead
long getBytesRead() -
getReadTimeNanos
long getReadTimeNanos() -
readLine
Read a line into the buffer. If there are no more lines in the steam, this reader is closed.- Returns:
- true if a line was read; otherwise, there no more lines and false is returned
- Throws:
IOException
-