|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.scheme.ConcreteCall<Context,IO>
Context
- IO
- public class ConcreteCall<Context,IO>
The concrete base class for SourceCall
and SinkCall
.
Constructor Summary | |
---|---|
ConcreteCall()
|
Method Summary | |
---|---|
Context |
getContext()
Method getContext returns the context of this SourceCall object. |
TupleEntry |
getIncomingEntry()
Method getIncomingEntry returns a pre-prepared TupleEntry to be populated
with the input values from SourceCall.getInput() . |
IO |
getInput()
Method getInput returns the input mechanism for the underlying platform used to retrieve new values (records, lines, etc). |
TupleEntry |
getOutgoingEntry()
Method getOutgoingEntry returns the final TupleEntry to be passed to the
SinkCall.getOutput() output handler. |
IO |
getOutput()
|
void |
setContext(Context context)
Method setContext sets the context of this SourceCall object. |
void |
setIncomingEntry(TupleEntry incomingEntry)
|
void |
setInput(IO input)
|
void |
setOutgoingEntry(TupleEntry outgoingEntry)
|
void |
setOutput(IO output)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConcreteCall()
Method Detail |
---|
public Context getContext()
SourceCall
getContext
in interface SinkCall<Context,IO>
getContext
in interface SourceCall<Context,IO>
public void setContext(Context context)
SourceCall
setContext
in interface SinkCall<Context,IO>
setContext
in interface SourceCall<Context,IO>
context
- the context of this SourceCall object.public TupleEntry getOutgoingEntry()
SinkCall
TupleEntry
to be passed to the
SinkCall.getOutput()
output handler.
That is, the result of calling getOutgoingEntry() should be passed directly to the
platform specific output handler returned by getOutput().
Note the returned value from this method cannot be modified.
getOutgoingEntry
in interface SinkCall<Context,IO>
public void setOutgoingEntry(TupleEntry outgoingEntry)
public TupleEntry getIncomingEntry()
SourceCall
TupleEntry
to be populated
with the input values from SourceCall.getInput()
.
That is, using the getInput() method, retrieve the current incoming values and
place them into the getIncomingEntry() via TupleEntry.setTuple(cascading.tuple.Tuple)
or by modifying the tuple returned from TupleEntry.getTuple()
.
The returned Tuple entry is guaranteed to be the size of the declared incoming source fields.
The returned TupleEntry from this method is modifiable and is intended to be re-used. This is an exception to
the general rule that passed TupleEntry instances must not be modified.
getIncomingEntry
in interface SourceCall<Context,IO>
public void setIncomingEntry(TupleEntry incomingEntry)
public IO getInput()
SourceCall
getInput
in interface SourceCall<Context,IO>
public void setInput(IO input)
public IO getOutput()
getOutput
in interface SinkCall<Context,IO>
public void setOutput(IO output)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |