Package com.semedy.reasoner.api.edb
Interface Index
- All Known Subinterfaces:
MainMemoryIndex
,SortedIndex
- All Known Implementing Classes:
AVLTree
,HashIndex
,InvertedList
,PersistentSecondarySortedIndex
,PrimaryHashIndex
,PrimaryIndex
public interface Index
Secondary index for a relation of tuples
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsTuple
(long[] values) returns true if there exist matching valuesboolean
containsTuple
(TupleBuffer values) returns true if there exist matching valuesint[]
Returns the indexed positionslong
getNumberOfMatchingTuples
(long[] values) returns the number of matching tuplesselectMatchingTuples
(long[] values) returns an enumerator for matching tuplesselectMatchingTuples
(long[] values, TupleEnumerator it) returns an enumerator for matching tuples reuse tuple enumeratorselectMatchingTuples
(TupleBuffer values) returns an enumerator for matching tupleslong
size()
returns the number of indexed tupleslong
Returns size in bytes used in main memory.
-
Method Details
-
selectMatchingTuples
returns an enumerator for matching tuples- Parameters:
values
- , values for indexed positions- Returns:
- enumerator for matching tuples
- Throws:
IOException
EDBException
-
selectMatchingTuples
returns an enumerator for matching tuples- Parameters:
values
- , values for indexed positions- Returns:
- enumerator for matching tuples
- Throws:
IOException
EDBException
-
selectMatchingTuples
TupleEnumerator selectMatchingTuples(long[] values, TupleEnumerator it) throws IOException, EDBException returns an enumerator for matching tuples reuse tuple enumerator- Parameters:
values
-it
-- Returns:
- Throws:
EDBException
IOException
-
containsTuple
returns true if there exist matching values- Parameters:
values
- , values for indexed positions- Returns:
- boolean, true if there exist matching values
- Throws:
IOException
-
containsTuple
returns true if there exist matching values- Parameters:
values
- , values for indexed positions- Returns:
- boolean, true if there exist matching values
- Throws:
IOException
-
getNumberOfMatchingTuples
returns the number of matching tuples- Parameters:
values
- , values for indexed positions- Returns:
- number of matching tuples
- Throws:
EDBException
IOException
-
getIndexedPositions
int[] getIndexedPositions()Returns the indexed positions- Returns:
- the indexed positions
-
sizeInBytes
long sizeInBytes()Returns size in bytes used in main memory. Used for cache management- Returns:
-
size
long size()returns the number of indexed tuples- Returns:
-