public class StdErrTap extends SinkTap<java.util.Properties,java.io.OutputStream>
stderr
stream.Constructor and Description |
---|
StdErrTap(Scheme<java.util.Properties,?,java.io.OutputStream,?,?> scheme) |
Modifier and Type | Method and Description |
---|---|
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 for writing.
|
boolean |
resourceExists(java.util.Properties conf)
Method resourceExists returns true if the path represented by this instance exists.
|
getSourceFields, isSource, openForRead, sourceConfInit
commitResource, createResource, deleteResource, equals, flowConfInit, getConfigDef, getFullIdentifier, getFullIdentifier, getModifiedTime, getScheme, getSinkFields, getSinkMode, getStepConfigDef, getTrace, hasConfigDef, hashCode, hasStepConfigDef, id, isEquivalentTo, isKeep, isReplace, isSink, isTemporary, isUpdate, openForRead, openForWrite, outgoingScopeFor, presentSinkFields, presentSourceFields, resolveIncomingOperationArgumentFields, resolveIncomingOperationPassThroughFields, resourceExists, retrieveSinkFields, retrieveSourceFields, rollbackResource, setScheme, sinkConfInit, taps, toString
public StdErrTap(Scheme<java.util.Properties,?,java.io.OutputStream,?,?> scheme)
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
SinkMode
setting. If SinkMode is
SinkMode.REPLACE
, this call may fail. See Tap.openForWrite(cascading.flow.FlowProcess)
.
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>
flowProcess
- of type FlowProcessoutput
- of type Outputjava.io.IOException
- when the resource cannot be openedpublic 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 Configjava.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 Configjava.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 Configjava.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 Configjava.io.IOException