java.lang.Object
edu.stanford.slac.archiverappliance.plain.parquet.NIOInputFile
All Implemented Interfaces:
org.apache.parquet.io.InputFile

public class NIOInputFile extends Object implements org.apache.parquet.io.InputFile
An InputFile implementation that only uses java.nio.* interfaces for I/O operations. The LocalInputFile implementation in upstream parquet-mr currently falls back to the old-school java file I/O APIs (via Path#toFile) which won't work with nio remote FileSystems such as an S3 FileSystem implementation.
  • Constructor Details

    • NIOInputFile

      public NIOInputFile(Path file)
  • Method Details

    • getLength

      public long getLength() throws IOException
      Specified by:
      getLength in interface org.apache.parquet.io.InputFile
      Throws:
      IOException
    • newStream

      public org.apache.parquet.io.SeekableInputStream newStream() throws IOException
      Specified by:
      newStream in interface org.apache.parquet.io.InputFile
      Throws:
      IOException