Package com.semedy.reasoner.edb.ramstore
Interface MainMemoryIndex
- All Superinterfaces:
Index
- All Known Implementing Classes:
AVLTree
,HashIndex
,InvertedList
,PrimaryHashIndex
,PrimaryIndex
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addTuple
(int i) additional add method for main memory indicesboolean
containsTuple
(int i) contains method for main memory indiceselements()
iterator for all elementsint
getTupleAddress
(int tuple) get the address of a tupleint
getTupleAddress
(long[] tuple) get the address of a tupleboolean
removeTuple
(int i) additional remove method for main memory indicesMethods inherited from interface com.semedy.reasoner.api.edb.Index
containsTuple, containsTuple, getIndexedPositions, getNumberOfMatchingTuples, selectMatchingTuples, selectMatchingTuples, selectMatchingTuples, size, sizeInBytes
-
Method Details
-
containsTuple
contains method for main memory indices- Parameters:
i
-- Returns:
- Throws:
IOException
-
addTuple
additional add method for main memory indices- Parameters:
i
-- Returns:
- Throws:
IOException
-
removeTuple
boolean removeTuple(int i) additional remove method for main memory indices- Parameters:
i
-- Returns:
-
elements
TupleEnumerator elements()iterator for all elements- Returns:
-
getTupleAddress
int getTupleAddress(int tuple) get the address of a tuple- Parameters:
tuple
-- Returns:
-
getTupleAddress
int getTupleAddress(long[] tuple) get the address of a tuple- Parameters:
tuple
-- Returns:
-