Skip to content

Commit

Permalink
Revert "Wrapper the input and oupput stream from HadoopExtendedFileSy…
Browse files Browse the repository at this point in the history
…stem"

This reverts commit 195ce18.
  • Loading branch information
varungajjala authored and highker committed Mar 9, 2022
1 parent 7e138de commit 1066c99
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ public Path resolvePath(final Path p)
public FSDataInputStream open(Path f, int bufferSize)
throws IOException
{
return new InputStreamWrapper(getRawFileSystem().open(f, bufferSize), this);
return fs.open(f, bufferSize);
}

@Override
public FSDataOutputStream append(Path f, int bufferSize,
Progressable progress)
throws IOException
{
return new OutputStreamWrapper(getRawFileSystem().append(f, bufferSize, progress), this);
return fs.append(f, bufferSize, progress);
}

@Override
Expand All @@ -149,7 +149,7 @@ public FSDataOutputStream create(Path f, FsPermission permission,
Progressable progress)
throws IOException
{
return new OutputStreamWrapper(getRawFileSystem().create(f, permission, overwrite, bufferSize, replication, blockSize, progress), this);
return fs.create(f, permission, overwrite, bufferSize, replication, blockSize, progress);
}

@Override
Expand All @@ -163,7 +163,7 @@ public FSDataOutputStream create(Path f,
Options.ChecksumOpt checksumOpt)
throws IOException
{
return new OutputStreamWrapper(getRawFileSystem().create(f, permission, flags, bufferSize, replication, blockSize, progress, checksumOpt), this);
return fs.create(f, permission, flags, bufferSize, replication, blockSize, progress, checksumOpt);
}

@Override
Expand All @@ -173,7 +173,7 @@ public FSDataOutputStream createNonRecursive(Path f, FsPermission permission,
Progressable progress)
throws IOException
{
return new OutputStreamWrapper(getRawFileSystem().createNonRecursive(f, permission, flags, bufferSize, replication, blockSize, progress), this);
return fs.createNonRecursive(f, permission, flags, bufferSize, replication, blockSize, progress);
}

@Override
Expand Down Expand Up @@ -629,6 +629,6 @@ public RemoteIterator<LocatedFileStatus> listDirectory(Path path)
public FSDataInputStream openFile(Path path, HiveFileContext hiveFileContext)
throws Exception
{
return new InputStreamWrapper(getRawFileSystem().open(path), this);
return fs.open(path);
}
}

0 comments on commit 1066c99

Please sign in to comment.