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

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

@InterfaceAudience.Private
public static class FSOperations.FSContentSummary
extends Object
implements FileSystemAccess.FileSystemExecutor<Map>

Executor that performs a content-summary FileSystemAccess files system operation.


Constructor Summary
FSOperations.FSContentSummary(String path)
          Creates a content-summary executor.
 
Method Summary
 Map 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.FSContentSummary

public FSOperations.FSContentSummary(String path)
Creates a content-summary executor.

Parameters:
path - the path to retrieve the content-summary.
Method Detail

execute

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

Specified by:
execute in interface FileSystemAccess.FileSystemExecutor<Map>
Parameters:
fs - filesystem instance to use.
Returns:
a Map object (JSON friendly) with the content-summary.
Throws:
IOException - thrown if an IO error occured.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.