|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.tap.Tap<Config,Input,Void> cascading.tap.SourceTap<Properties,InputStream> cascading.tap.local.StdInTap
public class StdInTap
Class StdInTap provides a local mode tap for reading data from the stdin
stream.
Constructor Summary | |
---|---|
StdInTap(Scheme<Properties,InputStream,?,?,?> scheme)
|
Method Summary | |
---|---|
String |
getIdentifier()
Method getIdentifier returns a String representing the resource this Tap instance represents. |
long |
getModifiedTime(Properties conf)
Method getModifiedTime returns the date this resource was last modified. |
TupleEntryIterator |
openForRead(FlowProcess<Properties> flowProcess,
InputStream inputStream)
Method openForRead opens the resource represented by this Tap instance. |
boolean |
resourceExists(Properties conf)
Method resourceExists returns true if the path represented by this instance exists. |
Methods inherited from class cascading.tap.SourceTap |
---|
commitResource, createResource, deleteResource, getSinkFields, isSink, openForWrite, rollbackResource, sinkConfInit |
Methods inherited from class cascading.tap.Tap |
---|
equals, flowConfInit, getConfigDef, getFullIdentifier, getScheme, getSinkMode, getSourceFields, getStepConfigDef, getTrace, hasConfigDef, hashCode, hasStepConfigDef, id, isEquivalentTo, isKeep, isReplace, isSource, isTemporary, isUpdate, openForRead, openForWrite, outgoingScopeFor, presentSinkFields, presentSourceFields, resolveFields, resolveIncomingOperationFields, retrieveSinkFields, retrieveSourceFields, setScheme, sourceConfInit, taps, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StdInTap(Scheme<Properties,InputStream,?,?,?> scheme)
Method Detail |
---|
public String getIdentifier()
Tap
getIdentifier
in class Tap<Properties,InputStream,Void>
public TupleEntryIterator openForRead(FlowProcess<Properties> flowProcess, InputStream inputStream) throws 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<Properties,InputStream,Void>
IOException
public boolean resourceExists(Properties conf) throws IOException
Tap
resourceExists
in class Tap<Properties,InputStream,Void>
conf
- of type JobConf
IOException
- when the status cannot be determinedpublic long getModifiedTime(Properties conf) throws IOException
Tap
getModifiedTime
in class Tap<Properties,InputStream,Void>
conf
- of type Config
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |