Class IndexSlicesManager

    • Constructor Detail

      • IndexSlicesManager

        public IndexSlicesManager()
    • Method Detail

      • getIndexSliceItems

        public Set<Long> getIndexSliceItems()
        Description copied from interface: IIndexSlicesManager
        Gets unique ids of index elements contained in all index slices
        Specified by:
        getIndexSliceItems in interface IIndexSlicesManager
        Returns:
        unique ids of index elements contained in all index slices, never null
      • getIndexSliceItems

        public Set<Long> getIndexSliceItems​(Collection<ISliceFilter> predicates)
        Description copied from interface: IIndexSlicesManager
        Gets unique ids of index elements contained in index slice corresponding to all predicates
        Specified by:
        getIndexSliceItems in interface IIndexSlicesManager
        Parameters:
        predicates - ids of index slices, can't be null
        Returns:
        unique ids of index elements contained in index slice corresponding to all predicates, never null
      • addItem

        public boolean addItem​(long id,
                               org.eclipse.xtext.resource.IEObjectDescription item)
        Description copied from interface: IIndexSlicesManager
        Tries to add index element to each index slice
        Specified by:
        addItem in interface IIndexSlicesManager
        Parameters:
        id - special unique id for adding index element
        item - index element for adding to each index slice, can't be null
        Returns:
        true if index element was added to even one slice, false if index element is not supported of this index slice. Supporting index items are determined by predicates from IIndexSlicesManager.getPredicates()
      • removeItem

        public boolean removeItem​(long id)
        Description copied from interface: IIndexSlicesManager
        Tries to delete index element from each index slice
        Specified by:
        removeItem in interface IIndexSlicesManager
        Parameters:
        id - special unique id for deleting index element
        Returns:
        true if item was succeeded deleted, false otherwise
      • getPredicates

        public Collection<ISliceFilter> getPredicates()
        Description copied from interface: IIndexSlicesManager
        Gets special Predicates that determine all supporting index slices by this manager
        Specified by:
        getPredicates in interface IIndexSlicesManager
        Returns:
        special Predicates that determine all supporting index slices by this manager, can't be null