Interface IIndexSlicesManager
-
- All Known Subinterfaces:
IBmIndexSlicesManager
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addItem(long id, org.eclipse.xtext.resource.IEObjectDescription item)
Tries to add index element to each index slicevoid
addSlices(Collection<ISliceFilter> predicates)
Adds new supporting index slices for this managervoid
clear()
Clear all index slicesSet<Long>
getIndexSliceItems()
Gets unique ids of index elements contained in all index slicesSet<Long>
getIndexSliceItems(Collection<ISliceFilter> predicates)
Gets unique ids of index elements contained in index slice corresponding to allpredicates
Collection<ISliceFilter>
getPredicates()
Gets specialPredicate
s that determine all supporting index slices by this managerboolean
removeItem(long id)
Tries to delete index element from each index slice
-
-
-
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 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:
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 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:
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 benull
-
getPredicates
Collection<ISliceFilter> getPredicates()
Gets specialPredicate
s that determine all supporting index slices by this manager- Returns:
- special
Predicate
s that determine all supporting index slices by this manager, can't benull
-
clear
void clear()
Clear all index slices
-
-