public abstract class SpliceGate extends Gate<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>> implements ElementDuct, Collapsing
Modifier and Type | Class and Description |
---|---|
static class |
SpliceGate.Role |
Modifier and Type | Field and Description |
---|---|
protected FlowProcess |
flowProcess |
protected Grouping<TupleEntry,TupleEntryIterator> |
grouping |
protected java.util.List<Scope> |
incomingScopes |
protected TupleBuilder[] |
keyBuilder |
protected TupleEntry |
keyEntry |
protected Fields[] |
keyFields |
protected Duct[] |
orderedPrevious |
protected java.util.List<Scope> |
outgoingScopes |
protected SpliceGate.Role |
role |
protected TupleBuilder[] |
sortBuilder |
protected Fields[] |
sortFields |
protected Splice |
splice |
protected TupleEntryChainIterator |
tupleEntryIterator |
protected TupleBuilder[] |
valuesBuilder |
protected Fields[] |
valuesFields |
allPrevious
Constructor and Description |
---|
SpliceGate(FlowProcess flowProcess,
Splice splice) |
SpliceGate(FlowProcess flowProcess,
Splice splice,
SpliceGate.Role role) |
Modifier and Type | Method and Description |
---|---|
void |
addIncomingScope(Scope incomingScope) |
void |
addOutgoingScope(Scope outgoingScope) |
void |
cleanup() |
protected TupleBuilder |
createDefaultNarrowBuilder(Fields incomingFields,
Fields narrowFields) |
protected TupleBuilder |
createNarrowBuilder(Fields incomingFields,
Fields narrowFields) |
protected TupleBuilder |
createNulledBuilder(Fields incomingFields,
Fields keyField) |
boolean |
equals(java.lang.Object object) |
java.util.Set<java.lang.String> |
getBranchNames() |
FlowElement |
getFlowElement() |
java.util.List<Scope> |
getIncomingScopes() |
java.util.List<Scope> |
getOutgoingScopes() |
protected void |
handleException(java.lang.Throwable exception,
TupleEntry tupleEntry) |
protected void |
handleReThrowableException(java.lang.String message,
java.lang.Throwable throwable) |
int |
hashCode() |
boolean |
hasTrapHandler() |
void |
initialize()
Called immediately after bind
|
protected void |
makePosMap(java.util.Map<Duct,java.lang.Integer> posMap) |
protected void |
orderDucts(StreamGraph streamGraph) |
void |
setBranchNames(java.util.Set<java.lang.String> branchNames) |
void |
setTrapHandler(TrapHandler trapHandler) |
java.lang.String |
toString() |
bind, getAllPreviousFor
complete, getNext, getNextFor, prepare, receive, receiveFirst, start
protected Duct[] orderedPrevious
protected final FlowProcess flowProcess
protected SpliceGate.Role role
protected final Splice splice
protected final java.util.List<Scope> incomingScopes
protected final java.util.List<Scope> outgoingScopes
protected Fields[] keyFields
protected Fields[] sortFields
protected Fields[] valuesFields
protected TupleBuilder[] keyBuilder
protected TupleBuilder[] valuesBuilder
protected TupleBuilder[] sortBuilder
protected Grouping<TupleEntry,TupleEntryIterator> grouping
protected TupleEntry keyEntry
protected TupleEntryChainIterator tupleEntryIterator
public SpliceGate(FlowProcess flowProcess, Splice splice)
public SpliceGate(FlowProcess flowProcess, Splice splice, SpliceGate.Role role)
public void setBranchNames(java.util.Set<java.lang.String> branchNames)
setBranchNames
in interface ElementDuct
public java.util.Set<java.lang.String> getBranchNames()
getBranchNames
in interface ElementDuct
public void setTrapHandler(TrapHandler trapHandler)
setTrapHandler
in interface ElementDuct
public boolean hasTrapHandler()
hasTrapHandler
in interface ElementDuct
protected void handleReThrowableException(java.lang.String message, java.lang.Throwable throwable)
protected void handleException(java.lang.Throwable exception, TupleEntry tupleEntry)
protected TupleBuilder createNarrowBuilder(Fields incomingFields, Fields narrowFields)
protected TupleBuilder createDefaultNarrowBuilder(Fields incomingFields, Fields narrowFields)
protected TupleBuilder createNulledBuilder(Fields incomingFields, Fields keyField)
public void initialize()
Duct
initialize
in class Duct<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>>
public FlowElement getFlowElement()
getFlowElement
in interface ElementDuct
public java.util.List<Scope> getOutgoingScopes()
getOutgoingScopes
in interface ElementDuct
public java.util.List<Scope> getIncomingScopes()
getIncomingScopes
in interface ElementDuct
public void addIncomingScope(Scope incomingScope)
addIncomingScope
in interface ElementDuct
public void addOutgoingScope(Scope outgoingScope)
addOutgoingScope
in interface ElementDuct
public void cleanup()
cleanup
in class Duct<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>>
protected void orderDucts(StreamGraph streamGraph)
protected void makePosMap(java.util.Map<Duct,java.lang.Integer> posMap)
public final boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class Duct<TupleEntry,Grouping<TupleEntry,TupleEntryIterator>>