|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.tap.Tap cascading.tap.Hfs cascading.tap.TempHfs
public class TempHfs
Class TempHfs creates a temporary Tap
instance for use internally.
Constructor Summary | |
---|---|
TempHfs(String name)
Constructor TempHfs creates a new TempHfs instance. |
|
TempHfs(String name,
boolean isNull)
Constructor TempHfs creates a new TempHfs instance. |
|
TempHfs(String name,
Class schemeClass)
Constructor TempDfs creates a new TempDfs instance. |
Method Summary | |
---|---|
boolean |
deletePath(JobConf conf)
Method deletePath deletes the resource represented by this instance. |
boolean |
equals(Object object)
|
Class |
getSchemeClass()
|
URI |
getURIScheme(JobConf jobConf)
|
int |
hashCode()
|
boolean |
isWriteDirect()
Method isWriteDirect returns true if this instances TupleEntryCollector should be used to sink values. |
Scope |
outgoingScopeFor(Set<Scope> incoming)
Method outgoingScopeFor returns the Scope this FlowElement hands off to the next FlowElement. |
void |
sinkInit(JobConf conf)
Method sinkInit initializes this instance as a sink. |
void |
sourceInit(JobConf conf)
Method sourceInit initializes this instance as a source. |
String |
toString()
|
Methods inherited from class cascading.tap.Hfs |
---|
getDefaultFileSystem, getDefaultFileSystemURIScheme, getFileSystem, getPath, getPathModified, getQualifiedPath, getTemporaryDirectory, getTempPath, makeDirs, makeTemporaryPathDir, makeURIScheme, openForRead, openForWrite, pathExists, setStringPath, setTemporaryDirectory, setUriScheme |
Methods inherited from class cascading.tap.Tap |
---|
flowInit, getIdentifier, getScheme, getSinkFields, getSinkMode, getSourceFields, isAppend, isEquivalentTo, isKeep, isReplace, isSink, isSource, isUpdate, resolveFields, resolveIncomingOperationFields, setScheme, setWriteDirect, sink, source, taps |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TempHfs(String name)
name
- of type Stringpublic TempHfs(String name, boolean isNull)
name
- of type StringisNull
- of type booleanpublic TempHfs(String name, Class schemeClass)
name
- of type StringMethod Detail |
---|
public Class getSchemeClass()
public URI getURIScheme(JobConf jobConf) throws IOException
getURIScheme
in class Hfs
IOException
public Scope outgoingScopeFor(Set<Scope> incoming)
FlowElement
outgoingScopeFor
in interface FlowElement
outgoingScopeFor
in class Tap
incoming
- of type SetFlowElement.outgoingScopeFor(Set)
public void sourceInit(JobConf conf) throws IOException
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)
sourceInit
in class Hfs
conf
- of type JobConf
IOException
- on resource initialization failure.public void sinkInit(JobConf conf) throws IOException
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)
sinkInit
in class Hfs
conf
- of type JobConf
IOException
- on resource initialization failure.public boolean isWriteDirect()
Tap
TupleEntryCollector
should be used to sink values.
isWriteDirect
in class Hfs
public boolean deletePath(JobConf conf) throws IOException
Tap
deletePath
in class Hfs
conf
- of type JobConf
IOException
- when the resource cannot be deletedpublic String toString()
toString
in class Hfs
Object.toString()
public boolean equals(Object object)
equals
in class Hfs
Tap.equals(Object)
public int hashCode()
hashCode
in class Hfs
Tap.hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |