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 Summary
Modifier and TypeMethodDescriptionbooleanaddItem(long id, org.eclipse.xtext.resource.IEObjectDescription item) Tries to add index element to each index slicevoidaddSlices(Collection<ISliceFilter> predicates) Adds new supporting index slices for this managervoidclear()Clear all index slicesGets unique ids of index elements contained in all index slicesgetIndexSliceItems(Collection<ISliceFilter> predicates) Gets unique ids of index elements contained in index slice corresponding to allpredicatesGets specialPredicates that determine all supporting index slices by this managerbooleanremoveItem(long id) Tries to delete index element from each index slice 
- 
Method Details
- 
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
Gets unique ids of index elements contained in index slice corresponding to allpredicates- Parameters:
 predicates- ids of index slices, can't benull- Returns:
 - unique ids of index elements contained in index slice corresponding to all 
predicates, nevernull 
 - 
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 elementitem- index element for adding to each index slice, can't benull- Returns:
 trueif index element was added to even one slice,falseif index element is not supported of this index slice. Supporting index items are determined by predicates fromgetPredicates()
 - 
removeItem
boolean removeItem(long id) Tries to delete index element from each index slice- Parameters:
 id- special unique id for deleting index element- Returns:
 trueif item was succeeded deleted,falseotherwise
 - 
addSlices
Adds new supporting index slices for this manager- Parameters:
 predicates- new ids of index slices, can't benull
 - 
getPredicates
Collection<ISliceFilter> getPredicates()Gets specialPredicates that determine all supporting index slices by this manager- Returns:
 - special 
Predicates that determine all supporting index slices by this manager, can't benull 
 - 
clear
void clear()Clear all index slices 
 -