Interface InputFile

All Known Subinterfaces:
NativeEncryptionInputFile
All Known Implementing Classes:
AesGcmInputFile, HadoopInputFile, InMemoryInputFile, S3InputFile

public interface InputFile
An interface used to read input files using SeekableInputStream instances.

This class is based on Parquet's InputFile.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether the file exists.
    long
    Returns the total length of the file, in bytes
    The fully-qualified location of the input file as a String.
    Opens a new SeekableInputStream for the underlying data file
  • Method Details

    • getLength

      long getLength()
      Returns the total length of the file, in bytes
      Returns:
      the total length of the file, in bytes
      Throws:
      RuntimeIOException - If the implementation throws an IOException
    • newStream

      SeekableInputStream newStream()
      Opens a new SeekableInputStream for the underlying data file
      Returns:
      a seekable stream for reading the file
      Throws:
      NotFoundException - If the file does not exist
      RuntimeIOException - If the implementation throws an IOException
    • location

      String location()
      The fully-qualified location of the input file as a String.
      Returns:
      the input file location
    • exists

      boolean exists()
      Checks whether the file exists.
      Returns:
      true if the file exists, false otherwise