|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.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 String
public TempHfs(String name,
boolean isNull)
name - of type StringisNull - of type boolean
public TempHfs(String name,
Class schemeClass)
name - of type String| Method Detail |
|---|
public Class getSchemeClass()
public URI getURIScheme(JobConf jobConf)
throws IOException
getURIScheme in class HfsIOExceptionpublic Scope outgoingScopeFor(Set<Scope> incoming)
FlowElement
outgoingScopeFor in interface FlowElementoutgoingScopeFor in class Tapincoming - of type SetFlowElement.outgoingScopeFor(Set)
public void sourceInit(JobConf conf)
throws IOException
TapFlow
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 Hfsconf - of type JobConf
IOException - on resource initialization failure.
public void sinkInit(JobConf conf)
throws IOException
TapFlow
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 Hfsconf - of type JobConf
IOException - on resource initialization failure.public boolean isWriteDirect()
TapTupleEntryCollector should be used to sink values.
isWriteDirect in class Hfs
public boolean deletePath(JobConf conf)
throws IOException
Tap
deletePath in class Hfsconf - of type JobConf
IOException - when the resource cannot be deletedpublic String toString()
toString in class HfsObject.toString()public boolean equals(Object object)
equals in class HfsTap.equals(Object)public int hashCode()
hashCode in class HfsTap.hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||