|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.tap.Tap<Config,java.lang.Void,Output>
cascading.tap.SinkTap<java.util.Properties,java.io.OutputStream>
cascading.tap.local.StdErrTap
public class StdErrTap
Class StdErrTap provides a local mode tap for reading data from the stderr
stream.
Constructor Summary | |
---|---|
StdErrTap(Scheme<java.util.Properties,?,java.io.OutputStream,?,?> scheme)
|
Method Summary | |
---|---|
boolean |
createResource(java.util.Properties conf)
Method createResource creates the underlying resource. |
boolean |
deleteResource(java.util.Properties conf)
Method deleteResource deletes the resource represented by this instance. |
java.lang.String |
getIdentifier()
Method getIdentifier returns a String representing the resource this Tap instance represents. |
long |
getModifiedTime(java.util.Properties conf)
Method getModifiedTime returns the date this resource was last modified. |
TupleEntryCollector |
openForWrite(FlowProcess<java.util.Properties> flowProcess,
java.io.OutputStream output)
Method openForWrite opens the resource represented by this Tap instance. |
boolean |
resourceExists(java.util.Properties conf)
Method resourceExists returns true if the path represented by this instance exists. |
Methods inherited from class cascading.tap.SinkTap |
---|
getSourceFields, isSource, openForRead, sourceConfInit |
Methods inherited from class cascading.tap.Tap |
---|
commitResource, equals, flowConfInit, getConfigDef, getFullIdentifier, getScheme, getSinkFields, getSinkMode, getStepConfigDef, getTrace, hasConfigDef, hashCode, hasProcessConfigDef, isEquivalentTo, isKeep, isReplace, isSink, isTemporary, isUpdate, openForRead, openForWrite, outgoingScopeFor, presentSinkFields, presentSourceFields, resolveFields, resolveIncomingOperationFields, retrieveSinkFields, retrieveSourceFields, rollbackResource, setScheme, sinkConfInit, taps |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StdErrTap(Scheme<java.util.Properties,?,java.io.OutputStream,?,?> scheme)
Method Detail |
---|
public java.lang.String getIdentifier()
Tap
getIdentifier
in class Tap<java.util.Properties,java.lang.Void,java.io.OutputStream>
public TupleEntryCollector openForWrite(FlowProcess<java.util.Properties> flowProcess, java.io.OutputStream output) throws java.io.IOException
Tap
output
value may be null, if so, sub-classes must inquire with the underlying Scheme
via Scheme.sinkConfInit(cascading.flow.FlowProcess, Tap, Object)
to get the proper
output type and instantiate it before calling super.openForWrite()
.
openForWrite
in class Tap<java.util.Properties,java.lang.Void,java.io.OutputStream>
java.io.IOException
- whenpublic boolean createResource(java.util.Properties conf) throws java.io.IOException
Tap
createResource
in class Tap<java.util.Properties,java.lang.Void,java.io.OutputStream>
conf
- of type JobConf
java.io.IOException
- when there is an error making directoriespublic boolean deleteResource(java.util.Properties conf) throws java.io.IOException
Tap
deleteResource
in class Tap<java.util.Properties,java.lang.Void,java.io.OutputStream>
conf
- of type JobConf
java.io.IOException
- when the resource cannot be deletedpublic boolean resourceExists(java.util.Properties conf) throws java.io.IOException
Tap
resourceExists
in class Tap<java.util.Properties,java.lang.Void,java.io.OutputStream>
conf
- of type JobConf
java.io.IOException
- when the status cannot be determinedpublic long getModifiedTime(java.util.Properties conf) throws java.io.IOException
Tap
getModifiedTime
in class Tap<java.util.Properties,java.lang.Void,java.io.OutputStream>
conf
- of type Config
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |