cascading.tap
Class Dfs

java.lang.Object
  extended by cascading.tap.Tap
      extended by cascading.tap.Hfs
          extended by cascading.tap.Dfs
All Implemented Interfaces:
FlowElement, Serializable

public class Dfs
extends Hfs

Class Dfs is a Tap class that provides access to the Hadoop Distributed File System.

Use the URI constructors to specify a different HDFS cluster than the default.

See Also:
Serialized Form

Constructor Summary
Dfs(Fields sourceFields, String stringPath)
          Constructor Dfs creates a new Dfs instance.
Dfs(Fields sourceFields, String stringPath, boolean replace)
          Constructor Dfs creates a new Dfs instance.
Dfs(Fields sourceFields, URI uri)
          Constructor Dfs creates a new Dfs instance.
Dfs(Fields sourceFields, URI uri, boolean replace)
          Constructor Dfs creates a new Dfs instance.
Dfs(Scheme scheme, String stringPath)
          Constructor Dfs creates a new Dfs instance.
Dfs(Scheme scheme, String stringPath, boolean replace)
          Constructor Dfs creates a new Dfs instance.
Dfs(Scheme scheme, URI uri)
          Constructor Dfs creates a new Dfs instance.
Dfs(Scheme scheme, URI uri, boolean replace)
          Constructor Dfs creates a new Dfs instance.
 
Method Summary
protected  FileSystem getDefaultFileSystem(JobConf jobConf)
           
protected  void setStringPath(String stringPath)
           
 
Methods inherited from class cascading.tap.Hfs
deletePath, equals, getFileSystem, getPath, getPathModified, getQualifiedPath, getTemporaryDirectory, getTempPath, getURIScheme, hashCode, isUseTapCollector, makeDirs, makeTemporaryPathDir, makeURIScheme, openForRead, openForWrite, pathExists, setTemporaryDirectory, setUriScheme, sinkInit, sourceInit, toString
 
Methods inherited from class cascading.tap.Tap
flowInit, getScheme, getSinkFields, getSourceFields, isAppend, isKeep, isReplace, isSink, isSource, outgoingScopeFor, resolveFields, resolveIncomingOperationFields, setScheme, setUseTapCollector, sink, source, taps
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dfs

public Dfs(Fields sourceFields,
           URI uri)
Constructor Dfs creates a new Dfs instance.

Parameters:
sourceFields - of type Fields
uri - of type URI

Dfs

public Dfs(Fields sourceFields,
           URI uri,
           boolean replace)
Constructor Dfs creates a new Dfs instance.

Parameters:
sourceFields - of type Fields
uri - of type URI
replace - of type boolean

Dfs

public Dfs(Fields sourceFields,
           String stringPath)
Constructor Dfs creates a new Dfs instance.

Parameters:
sourceFields - of type Fields
stringPath - of type String

Dfs

public Dfs(Fields sourceFields,
           String stringPath,
           boolean replace)
Constructor Dfs creates a new Dfs instance.

Parameters:
sourceFields - of type Fields
stringPath - of type String
replace - of type boolean

Dfs

public Dfs(Scheme scheme,
           URI uri)
Constructor Dfs creates a new Dfs instance.

Parameters:
scheme - of type Scheme
uri - of type URI

Dfs

public Dfs(Scheme scheme,
           URI uri,
           boolean replace)
Constructor Dfs creates a new Dfs instance.

Parameters:
scheme - of type Scheme
uri - of type URI
replace - of type boolean

Dfs

public Dfs(Scheme scheme,
           String stringPath)
Constructor Dfs creates a new Dfs instance.

Parameters:
scheme - of type Scheme
stringPath - of type String

Dfs

public Dfs(Scheme scheme,
           String stringPath,
           boolean replace)
Constructor Dfs creates a new Dfs instance.

Parameters:
scheme - of type Scheme
stringPath - of type String
replace - of type boolean
Method Detail

setStringPath

protected void setStringPath(String stringPath)
Overrides:
setStringPath in class Hfs

getDefaultFileSystem

protected FileSystem getDefaultFileSystem(JobConf jobConf)
                                   throws IOException
Overrides:
getDefaultFileSystem in class Hfs
Throws:
IOException


Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.