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 TypeMethodDescriptionbooleanaddTuple(int i) additional add method for main memory indicesbooleancontainsTuple(int i) contains method for main memory indiceselements()iterator for all elementsintgetTupleAddress(int tuple) get the address of a tupleintgetTupleAddress(long[] tuple) get the address of a tuplebooleanremoveTuple(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:
-