Class AbstractIndexTable.ColumnBoundListeners
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.matchers.scopes.tables.AbstractIndexTable.ColumnBoundListeners
-
- All Implemented Interfaces:
AbstractIndexTable.IListenersWithSameMask
- Enclosing class:
- AbstractIndexTable
protected final class AbstractIndexTable.ColumnBoundListeners extends java.lang.Object implements AbstractIndexTable.IListenersWithSameMask
Listeners interested in all tuples seeded by a single columns
-
-
Field Summary
Fields Modifier and Type Field Description protected IMultiLookup<java.lang.Object,IQueryRuntimeContextListener>listenersprotected TupleMaskmask
-
Constructor Summary
Constructors Constructor Description ColumnBoundListeners(int seedPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUpdateListener(Tuple originalSeed, IQueryRuntimeContextListener listener)voiddeliver(Tuple updateTuple, boolean isInsertion)TupleMaskgetSeedMask()booleanremoveUpdateListener(Tuple originalSeed, IQueryRuntimeContextListener listener)
-
-
-
Field Detail
-
mask
protected final TupleMask mask
-
listeners
protected IMultiLookup<java.lang.Object,IQueryRuntimeContextListener> listeners
-
-
Method Detail
-
getSeedMask
public TupleMask getSeedMask()
- Specified by:
getSeedMaskin interfaceAbstractIndexTable.IListenersWithSameMask
-
deliver
public void deliver(Tuple updateTuple, boolean isInsertion)
- Specified by:
deliverin interfaceAbstractIndexTable.IListenersWithSameMask
-
addUpdateListener
public void addUpdateListener(Tuple originalSeed, IQueryRuntimeContextListener listener)
- Specified by:
addUpdateListenerin interfaceAbstractIndexTable.IListenersWithSameMask
-
removeUpdateListener
public boolean removeUpdateListener(Tuple originalSeed, IQueryRuntimeContextListener listener)
- Specified by:
removeUpdateListenerin interfaceAbstractIndexTable.IListenersWithSameMask- Returns:
- true if this was the last listener, and the
AbstractIndexTable.IListenersWithSameMaskcan be disposed of.
-
-