public abstract class HadoopGroupGate extends SpliceGate
SpliceGate.Role
Modifier and Type | Field and Description |
---|---|
protected HadoopGroupByClosure |
closure |
protected org.apache.hadoop.mapred.OutputCollector |
collector |
flowProcess, grouping, incomingScopes, keyBuilder, keyEntry, keyFields, orderedPrevious, outgoingScopes, role, sortBuilder, sortFields, splice, tupleEntryIterator, valuesBuilder, valuesFields
allPrevious
Constructor and Description |
---|
HadoopGroupGate(FlowProcess flowProcess,
Splice splice,
SpliceGate.Role role) |
Modifier and Type | Method and Description |
---|---|
void |
bind(StreamGraph streamGraph) |
void |
complete(Duct previous) |
void |
prepare() |
void |
run(Tuple key,
java.util.Iterator values) |
void |
start(Duct previous) |
protected abstract Tuple |
unwrapGrouping(Tuple key) |
addIncomingScope, addOutgoingScope, cleanup, createDefaultNarrowBuilder, createNarrowBuilder, createNulledBuilder, equals, getBranchNames, getFlowElement, getIncomingScopes, getOutgoingScopes, handleException, handleReThrowableException, hashCode, hasTrapHandler, initialize, makePosMap, orderDucts, setBranchNames, setTrapHandler, toString
getAllPreviousFor
getNext, getNextFor, receive, receiveFirst
protected HadoopGroupByClosure closure
protected org.apache.hadoop.mapred.OutputCollector collector
public HadoopGroupGate(FlowProcess flowProcess, Splice splice, SpliceGate.Role role)
public void bind(StreamGraph streamGraph)
bind
in class Gate<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>>
public void prepare()
prepare
in class Duct<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>>
public void start(Duct previous)
start
in class Duct<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>>
public void complete(Duct previous)
complete
in class Duct<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>>
public void run(Tuple key, java.util.Iterator values)