|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.tap.Tap<JobConf,RecordReader,OutputCollector>
cascading.tap.hadoop.Hfs
cascading.tap.hadoop.TempHfs
public class TempHfs
Class TempHfs creates a temporary Tap
instance for use internally.
Field Summary |
---|
Fields inherited from class cascading.tap.hadoop.Hfs |
---|
LOCAL_MODE_SCHEME, TEMPORARY_DIRECTORY |
Constructor Summary | |
---|---|
TempHfs(java.lang.String name)
Constructor TempHfs creates a new TempHfs instance. |
|
TempHfs(java.lang.String name,
boolean isNull)
Constructor TempHfs creates a new TempHfs instance. |
|
TempHfs(java.lang.String name,
java.lang.Class schemeClass)
Constructor TempDfs creates a new TempDfs instance. |
Method Summary | |
---|---|
boolean |
deleteResource(JobConf conf)
Method deleteResource deletes the resource represented by this instance. |
boolean |
equals(java.lang.Object object)
|
java.lang.Class |
getSchemeClass()
|
java.net.URI |
getURIScheme(JobConf jobConf)
|
int |
hashCode()
|
boolean |
isTemporary()
Method isTemporary returns true if this Tap is temporary (used for intermediate results). |
Scope |
outgoingScopeFor(java.util.Set<Scope> incoming)
Method outgoingScopeFor returns the Scope this FlowElement hands off to the next FlowElement. |
void |
sinkConfInit(FlowProcess<JobConf> process,
JobConf conf)
Method sinkInit initializes this instance as a sink. |
void |
sourceConfInit(FlowProcess<JobConf> process,
JobConf conf)
Method sourceInit initializes this instance as a source. |
java.lang.String |
toString()
|
Methods inherited from class cascading.tap.hadoop.Hfs |
---|
commitResource, createResource, getBlockSize, getChildIdentifiers, getDefaultFileSystem, getDefaultFileSystemURIScheme, getFileSystem, getFullIdentifier, getIdentifier, getLocalModeScheme, getModifiedTime, getPath, getReplication, getSize, getTemporaryDirectory, getTempPath, isDirectory, makeTemporaryPathDirString, makeURIScheme, openForRead, openForWrite, resourceExists, setLocalModeScheme, setStringPath, setTemporaryDirectory, setUriScheme |
Methods inherited from class cascading.tap.Tap |
---|
flowConfInit, getConfigDef, getScheme, getSinkFields, getSinkMode, getSourceFields, getStepConfigDef, getTrace, hasConfigDef, hasProcessConfigDef, isEquivalentTo, isKeep, isReplace, isSink, isSource, isUpdate, openForRead, openForWrite, presentSinkFields, presentSourceFields, resolveFields, resolveIncomingOperationFields, retrieveSinkFields, retrieveSourceFields, rollbackResource, setScheme, taps |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TempHfs(java.lang.String name)
name
- of type Stringpublic TempHfs(java.lang.String name, boolean isNull)
name
- of type StringisNull
- of type booleanpublic TempHfs(java.lang.String name, java.lang.Class schemeClass)
name
- of type StringMethod Detail |
---|
public java.lang.Class getSchemeClass()
public java.net.URI getURIScheme(JobConf jobConf)
getURIScheme
in class Hfs
public Scope outgoingScopeFor(java.util.Set<Scope> incoming)
FlowElement
outgoingScopeFor
in interface FlowElement
outgoingScopeFor
in class Tap<JobConf,RecordReader,OutputCollector>
incoming
- of type Setpublic void sourceConfInit(FlowProcess<JobConf> process, JobConf conf)
Tap
Flow
instance or if it participates in multiple times in a given Flow or across different Flows in
a Cascade
.
In the context of a Flow, it will be called after
FlowListener.onStarting(cascading.flow.Flow)
sourceConfInit
in class Hfs
conf
- of type JobConf @throws IOException on resource initialization failure.public void sinkConfInit(FlowProcess<JobConf> process, JobConf conf)
Tap
Flow
instance or if it participates in multiple times in a given Flow or across different Flows in
a Cascade
.
Note this method will be called in context of this Tap being used as a traditional 'sink' and as a 'trap'.
In the context of a Flow, it will be called after
FlowListener.onStarting(cascading.flow.Flow)
sinkConfInit
in class Hfs
conf
- of type JobConf @throws IOException on resource initialization failure.public boolean deleteResource(JobConf conf) throws java.io.IOException
Tap
deleteResource
in class Hfs
conf
- of type JobConf
java.io.IOException
- when the resource cannot be deletedpublic boolean isTemporary()
Tap
isTemporary
in class Tap<JobConf,RecordReader,OutputCollector>
public java.lang.String toString()
toString
in class Hfs
public boolean equals(java.lang.Object object)
equals
in class Hfs
public int hashCode()
hashCode
in class Hfs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |