Search in sources :

Example 1 with SeekableFSDataInputStream

use of org.apache.parquet.cli.util.SeekableFSDataInputStream in project parquet-mr by apache.

the class BaseCommand method openSeekable.

public SeekableInput openSeekable(String filename) throws IOException {
    Path path = qualifiedPath(filename);
    // even though it was qualified using the default FS, it may not be in it
    FileSystem fs = path.getFileSystem(getConf());
    return new SeekableFSDataInputStream(fs, path);
}
Also used : Path(org.apache.hadoop.fs.Path) FileSystem(org.apache.hadoop.fs.FileSystem) ChecksumFileSystem(org.apache.hadoop.fs.ChecksumFileSystem) LocalFileSystem(org.apache.hadoop.fs.LocalFileSystem) SeekableFSDataInputStream(org.apache.parquet.cli.util.SeekableFSDataInputStream)

Aggregations

ChecksumFileSystem (org.apache.hadoop.fs.ChecksumFileSystem)1 FileSystem (org.apache.hadoop.fs.FileSystem)1 LocalFileSystem (org.apache.hadoop.fs.LocalFileSystem)1 Path (org.apache.hadoop.fs.Path)1 SeekableFSDataInputStream (org.apache.parquet.cli.util.SeekableFSDataInputStream)1