public class EMFBaseIndexWrapper extends java.lang.Object implements IBaseIndex
Constructor and Description |
---|
EMFBaseIndexWrapper(NavigationHelper navigationHelper) |
Modifier and Type | Method and Description |
---|---|
void |
addBaseIndexChangeListener(IncQueryBaseIndexChangeListener listener)
Adds a coarse-grained listener that will be invoked after the NavigationHelper index or the underlying model is changed.
|
boolean |
addIndexingErrorListener(IIndexingErrorListener listener)
Adds a listener for internal errors in the index.
|
boolean |
addInstanceObserver(IInstanceObserver observer,
java.lang.Object observedObject)
Register a lightweight observer that is notified if any edge starting at the given Object changes.
|
<V> V |
coalesceTraversals(java.util.concurrent.Callable<V> callable)
The given callback will be executed, and all model traversals and index registrations will be delayed until the
execution is done.
|
NavigationHelper |
getNavigationHelper() |
void |
removeBaseIndexChangeListener(IncQueryBaseIndexChangeListener listener)
Removes a registered listener.
|
boolean |
removeIndexingErrorListener(IIndexingErrorListener listener)
Removes a listener for internal errors in the index
|
boolean |
removeInstanceObserver(IInstanceObserver observer,
java.lang.Object observedObject)
Unregisters a lightweight observer for the given Object.
|
void |
resampleDerivedFeatures()
Updates the value of indexed derived features that are not well-behaving.
|
public EMFBaseIndexWrapper(NavigationHelper navigationHelper)
navigationHelper
- public NavigationHelper getNavigationHelper()
public void resampleDerivedFeatures()
IBaseIndex
resampleDerivedFeatures
in interface IBaseIndex
public <V> V coalesceTraversals(java.util.concurrent.Callable<V> callable) throws java.lang.reflect.InvocationTargetException
IBaseIndex
coalesceTraversals
in interface IBaseIndex
java.lang.reflect.InvocationTargetException
public boolean addIndexingErrorListener(IIndexingErrorListener listener)
IBaseIndex
addIndexingErrorListener
in interface IBaseIndex
public boolean removeIndexingErrorListener(IIndexingErrorListener listener)
IBaseIndex
removeIndexingErrorListener
in interface IBaseIndex
public void addBaseIndexChangeListener(IncQueryBaseIndexChangeListener listener)
IBaseIndex
IBaseIndex.removeBaseIndexChangeListener(IncQueryBaseIndexChangeListener)
addBaseIndexChangeListener
in interface IBaseIndex
public void removeBaseIndexChangeListener(IncQueryBaseIndexChangeListener listener)
IBaseIndex
IBaseIndex.addBaseIndexChangeListener(IncQueryBaseIndexChangeListener)
removeBaseIndexChangeListener
in interface IBaseIndex
public boolean addInstanceObserver(IInstanceObserver observer, java.lang.Object observedObject)
IBaseIndex
addInstanceObserver
in interface IBaseIndex
observer
- the listener instanceobservedObject
- the observed instance objectpublic boolean removeInstanceObserver(IInstanceObserver observer, java.lang.Object observedObject)
IBaseIndex
removeInstanceObserver
in interface IBaseIndex
observer
- the listener instanceobservedObject
- the observed instance object