Class EMFBaseIndexWrapper

  • All Implemented Interfaces:
    IBaseIndex

    public class EMFBaseIndexWrapper
    extends java.lang.Object
    implements IBaseIndex
    Wraps the EMF base index into the IBaseIndex interface.
    • Constructor Detail

      • EMFBaseIndexWrapper

        public EMFBaseIndexWrapper​(NavigationHelper navigationHelper)
        Parameters:
        navigationHelper -
    • Method Detail

      • getNavigationHelper

        public NavigationHelper getNavigationHelper()
        Returns:
        the underlying index object
      • resampleDerivedFeatures

        public void resampleDerivedFeatures()
        Description copied from interface: IBaseIndex
        Updates the value of indexed derived features that are not well-behaving.
        Specified by:
        resampleDerivedFeatures in interface IBaseIndex
      • coalesceTraversals

        public <V> V coalesceTraversals​(java.util.concurrent.Callable<V> callable)
                                 throws java.lang.reflect.InvocationTargetException
        Description copied from interface: IBaseIndex
        The given callback will be executed, and all model traversals and index registrations will be delayed until the execution is done. If there are any outstanding feature, class or datatype registrations, a single coalesced model traversal will initialize the caches and deliver the notifications.
        Specified by:
        coalesceTraversals in interface IBaseIndex
        Throws:
        java.lang.reflect.InvocationTargetException
      • addInstanceObserver

        public boolean addInstanceObserver​(IInstanceObserver observer,
                                           java.lang.Object observedObject)
        Description copied from interface: IBaseIndex
        Register a lightweight observer that is notified if any edge starting at the given Object changes.
        Specified by:
        addInstanceObserver in interface IBaseIndex
        Parameters:
        observer - the listener instance
        observedObject - the observed instance object
        Returns:
        false if no observer can be registered for the given instance (e.g. it is a primitive), or observer was already registered (call has no effect)
      • removeInstanceObserver

        public boolean removeInstanceObserver​(IInstanceObserver observer,
                                              java.lang.Object observedObject)
        Description copied from interface: IBaseIndex
        Unregisters a lightweight observer for the given Object.
        Specified by:
        removeInstanceObserver in interface IBaseIndex
        Parameters:
        observer - the listener instance
        observedObject - the observed instance object
        Returns:
        false if no observer can be registered for the given instance (e.g. it is a primitive), or no observer was registered previously (call has no effect)