Interface IIndexSlice
-
- All Known Subinterfaces:
IBmIndexSlice
- All Known Implementing Classes:
IndexSlice
public interface IIndexSlice
Special interface for index slice. This interface provides method for adding, deleting and finding index element in slice.
Also this interface provides special mechanism of identification type of index slice byISliceFilter
- see methodgetPredicate()
-
-
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 index sliceSet<Long>
getItems()
Gets unique ids of index elements contained in this index sliceISliceFilter
getPredicate()
Gets specialISliceFilter
that determines elements in this index slice.boolean
removeItem(long id)
Tries to delete index element from index slice
-
-
-
Method Detail
-
getItems
Set<Long> getItems()
Gets unique ids of index elements contained in this index slice- Returns:
- unique ids of index elements contained in this index slice, never
null
-
addItem
boolean addItem(long id, org.eclipse.xtext.resource.IEObjectDescription item)
Tries to add index element to index slice- Parameters:
id
- special unique id for adding index elementitem
- index element for adding to index slice, can't benull
- Returns:
true
if index element was added to slice,false
if index element is not supported of this index slice. If index already has contained element with the sameid
thenfalse
will be returned and index won't change Supporting index items are determined by predicate fromgetPredicate()
-
removeItem
boolean removeItem(long id)
Tries to delete index element from index slice- Parameters:
id
- special unique id for deleting index element- Returns:
true
if item was succeeded deleted,false
otherwise
-
getPredicate
ISliceFilter getPredicate()
Gets specialISliceFilter
that determines elements in this index slice. ThisISliceFilter
is id of slice type- Returns:
- special
ISliceFilter
that determines elements in this index slice, can't benull
-
-