Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 fs.open(f, bufferSize);
return new InputStreamWrapper(getRawFileSystem().open(f, bufferSize), this);
Comment thread
gjhkael marked this conversation as resolved.
Outdated
}

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

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

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

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

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