Class SequenceFileReader
java.lang.Object
io.trino.hive.formats.line.sequence.SequenceFileReader
- All Implemented Interfaces:
LineReader,Closeable,AutoCloseable
Sequence file reader hard coded the behavior of Hive Sequence file with a Text value class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longlonglonglongio.airlift.slice.SlicegetSync()booleanisClosed()booleanreadLine(LineBuffer lineBuffer) Read a line into the buffer.
-
Constructor Details
-
SequenceFileReader
- Throws:
IOException
-
-
Method Details
-
getFileLocation
-
getKeyClassName
-
getValueClassName
-
getMetadata
-
getBytesRead
public long getBytesRead()- Specified by:
getBytesReadin interfaceLineReader
-
getRowsRead
public long getRowsRead() -
getReadTimeNanos
public long getReadTimeNanos()- Specified by:
getReadTimeNanosin interfaceLineReader
-
getSync
public io.airlift.slice.Slice getSync() -
getRetainedSize
public long getRetainedSize()- Specified by:
getRetainedSizein interfaceLineReader
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceLineReader
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
readLine
Description copied from interface:LineReaderRead a line into the buffer. If there are no more lines in the steam, this reader is closed.- Specified by:
readLinein interfaceLineReader- Returns:
- true if a line was read; otherwise, there no more lines and false is returned
- Throws:
IOException
-