Interface IIndexSlicesManager

  • All Known Implementing Classes:
    IndexSlicesManager

    public interface IIndexSlicesManager
    Special interface for working with all index slices. This interface declares useful methods to manage index slices.
    • Method Detail

      • getIndexSliceItems

        Set<Long> getIndexSliceItems()
        Gets unique ids of index elements contained in all index slices
        Returns:
        unique ids of index elements contained in all index slices, never null
      • getIndexSliceItems

        Set<Long> getIndexSliceItems​(Collection<ISliceFilter> predicates)
        Gets unique ids of index elements contained in index slice corresponding to all predicates
        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

        boolean addItem​(long id,
                        org.eclipse.xtext.resource.IEObjectDescription item)
        Tries to add index element to each index slice
        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 getPredicates()
      • removeItem

        boolean removeItem​(long id)
        Tries to delete index element from each index slice
        Parameters:
        id - special unique id for deleting index element
        Returns:
        true if item was succeeded deleted, false otherwise
      • addSlices

        void addSlices​(Collection<ISliceFilter> predicates)
        Adds new supporting index slices for this manager
        Parameters:
        predicates - new ids of index slices, can't be null
      • getPredicates

        Collection<ISliceFilter> getPredicates()
        Gets special Predicates that determine all supporting index slices by this manager
        Returns:
        special Predicates that determine all supporting index slices by this manager, can't be null
      • clear

        void clear()
        Clear all index slices