org.apache.hadoop.fs.http.server
Class FSOperations.FSOpen

java.lang.Object
  extended by org.apache.hadoop.fs.http.server.FSOperations.FSOpen
All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<InputStream>
Enclosing class:
FSOperations

@InterfaceAudience.Private
public static class FSOperations.FSOpen
extends Object
implements FileSystemAccess.FileSystemExecutor<InputStream>

Executor that performs a open FileSystemAccess files system operation.


Constructor Summary
FSOperations.FSOpen(String path)
          Creates a open executor.
 
Method Summary
 InputStream execute(org.apache.hadoop.fs.FileSystem fs)
          Executes the filesystem operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSOperations.FSOpen

public FSOperations.FSOpen(String path)
Creates a open executor.

Parameters:
path - file to open.
Method Detail

execute

public InputStream execute(org.apache.hadoop.fs.FileSystem fs)
                    throws IOException
Executes the filesystem operation.

Specified by:
execute in interface FileSystemAccess.FileSystemExecutor<InputStream>
Parameters:
fs - filesystem instance to use.
Returns:
The inputstream of the file.
Throws:
IOException - thrown if an IO error occured.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.