Class IndexSlicesManager

java.lang.Object
com._1c.g5.modeling.xtext.scoping.IndexSlicesManager
All Implemented Interfaces:
IIndexSlicesManager

public class IndexSlicesManager extends Object implements IIndexSlicesManager
Default implementation of IIndexSlicesManager.
  • Field Details

  • Constructor Details

    • IndexSlicesManager

      public IndexSlicesManager()
  • Method Details

    • 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
    • addSlices

      public void addSlices(Collection<ISliceFilter> predicates)
      Description copied from interface: IIndexSlicesManager
      Adds new supporting index slices for this manager
      Specified by:
      addSlices in interface IIndexSlicesManager
      Parameters:
      predicates - new ids of index slices, can't be null
    • 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
    • clear

      public void clear()
      Description copied from interface: IIndexSlicesManager
      Clear all index slices
      Specified by:
      clear in interface IIndexSlicesManager