public class StdInTap extends SourceTap<java.util.Properties,java.io.InputStream>
stdin
stream.Constructor and Description |
---|
StdInTap(Scheme<java.util.Properties,java.io.InputStream,?,?,?> scheme) |
Modifier and Type | Method and Description |
---|---|
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.
|
TupleEntryIterator |
openForRead(FlowProcess<java.util.Properties> flowProcess,
java.io.InputStream inputStream)
Method openForRead opens the resource represented by this Tap instance for reading.
|
boolean |
resourceExists(java.util.Properties conf)
Method resourceExists returns true if the path represented by this instance exists.
|
commitResource, createResource, deleteResource, getSinkFields, isSink, openForWrite, rollbackResource, sinkConfInit
createResource, deleteResource, equals, flowConfInit, getConfigDef, getFullIdentifier, getFullIdentifier, getModifiedTime, getScheme, getSinkMode, getSourceFields, getStepConfigDef, getTrace, hasConfigDef, hashCode, hasStepConfigDef, id, isEquivalentTo, isKeep, isReplace, isSource, isTemporary, isUpdate, openForRead, openForWrite, outgoingScopeFor, presentSinkFields, presentSourceFields, resolveIncomingOperationArgumentFields, resolveIncomingOperationPassThroughFields, resourceExists, retrieveSinkFields, retrieveSourceFields, setScheme, sourceConfInit, taps, toString
public StdInTap(Scheme<java.util.Properties,java.io.InputStream,?,?,?> scheme)
public java.lang.String getIdentifier()
Tap
getIdentifier
in class Tap<java.util.Properties,java.io.InputStream,java.lang.Void>
public TupleEntryIterator openForRead(FlowProcess<java.util.Properties> flowProcess, java.io.InputStream inputStream) throws java.io.IOException
Tap
input
value may be null, if so, sub-classes must inquire with the underlying Scheme
via Scheme.sourceConfInit(cascading.flow.FlowProcess, Tap, Object)
to get the proper
input type and instantiate it before calling super.openForRead()
.
Note the returned iterator will return the same instance of TupleEntry
on every call,
thus a copy must be made of either the TupleEntry or the underlying Tuple
instance if they are to be
stored in a Collection.openForRead
in class Tap<java.util.Properties,java.io.InputStream,java.lang.Void>
flowProcess
- of type FlowProcessinputStream
- of type Inputjava.io.IOException
- when the resource cannot be openedpublic boolean resourceExists(java.util.Properties conf) throws java.io.IOException
Tap
resourceExists
in class Tap<java.util.Properties,java.io.InputStream,java.lang.Void>
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.io.InputStream,java.lang.Void>
conf
- of type Configjava.io.IOException