public final class TupleRemovedEvent extends AbstractTupleEvent
AbstractTupleEvent.getTuple()
will return null unless the event was propagated from a LiveResult
.
The LiveResult
will propagate the removed tuple since it maintains a local copy of all tuples in the query result.keyData, tuple
source
Constructor and Description |
---|
TupleRemovedEvent(Object source,
Long key,
Tuple tuple)
Deprecated.
|
TupleRemovedEvent(Object source,
Long oldKey,
Tuple tuple,
Tuple keyData,
List<com.streambase.liveview.client.internal.TupleFieldComparator> fieldComparators) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(QueryListener listener)
Dispatches this event to the listener
|
getKey, getKeyValue, getTuple
getSource, toString
public TupleRemovedEvent(Object source, Long key, Tuple tuple)
source
- the source of the eventkey
- the key of the tupletuple
- the tuple being removedpublic TupleRemovedEvent(Object source, Long oldKey, Tuple tuple, Tuple keyData, List<com.streambase.liveview.client.internal.TupleFieldComparator> fieldComparators)
source
- the source of the eventoldKey
- the key of the tupletuple
- the tuple being removedkeyData
- The data for the full key. May be null only if oldKey is not 0.fieldComparators
- The pre-built set of comparators for comparing complex keys. May be null only if oldKey is not 0.public void dispatch(QueryListener listener)
dispatch
in class AbstractQueryEvent
listener
- the query listener