Class SequenceFileReader

java.lang.Object
io.trino.hive.formats.line.sequence.SequenceFileReader
All Implemented Interfaces:
LineReader, Closeable, AutoCloseable

public final class SequenceFileReader extends Object implements LineReader
Sequence file reader hard coded the behavior of Hive Sequence file with a Text value class.
  • Constructor Details

  • Method Details

    • getFileLocation

      public Location getFileLocation()
    • getKeyClassName

      public String getKeyClassName()
    • getValueClassName

      public String getValueClassName()
    • getMetadata

      public Map<String,String> getMetadata()
    • getBytesRead

      public long getBytesRead()
      Specified by:
      getBytesRead in interface LineReader
    • getRowsRead

      public long getRowsRead()
    • getReadTimeNanos

      public long getReadTimeNanos()
      Specified by:
      getReadTimeNanos in interface LineReader
    • getSync

      public io.airlift.slice.Slice getSync()
    • getRetainedSize

      public long getRetainedSize()
      Specified by:
      getRetainedSize in interface LineReader
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface LineReader
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • readLine

      public boolean readLine(LineBuffer lineBuffer) throws IOException
      Description copied from interface: LineReader
      Read a line into the buffer. If there are no more lines in the stream, this reader is closed.
      Specified by:
      readLine in interface LineReader
      Returns:
      true if a line was read; otherwise, there no more lines and false is returned
      Throws:
      IOException