Interface IBmIndexSlicesManager

    • Method Detail

      • addItem

        boolean addItem​(long id,
                        int order,
                        org.eclipse.xtext.resource.IEObjectDescription item)
        Tries to add index element to index slice
        Parameters:
        id - special unique id for adding index element
        order - additional id corresponding to the place of item in BM index store
        item - index element for adding to index slice, can't be null
        Returns:
        true if index element was added to to even one slice, false if index element is not supported of this index slice. Supporting index items are determined by predicate from #getPredicate()
      • getItemOrder

        Set<Integer> getItemOrder​(long id,
                                  Collection<ISliceFilter> predicates)
        Gets all additional ids corresponding to the place of the item with id in BM index store and contained in index slice corresponding to all predicates
        Parameters:
        id - special unique id for getting index element
        predicates - ids of index slices, can't be null
        Returns:
        additional ids corresponding to the place of the item with id in BM index store, never null