Package com.semedy.reasoner.edb.ramstore
Class PrimaryHashIndex
java.lang.Object
com.semedy.reasoner.edb.ramstore.HashIndex
com.semedy.reasoner.edb.ramstore.PrimaryHashIndex
- All Implemented Interfaces:
Index
,MainMemoryIndex
Hashindex for tuples
- Author:
- angele
-
Constructor Summary
ConstructorDescriptionPrimaryHashIndex
(TupleStore tuplestore, int arity, int initialSize, ReasoningMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionelements()
iterator for all elementsint
getTupleAddress
(int tuple) get the address of a tupleint
getTupleAddress
(long[] tuple) get the address of a tupleMethods inherited from class com.semedy.reasoner.edb.ramstore.HashIndex
addTuple, addTuple, clear, containsTuple, containsTuple, containsTuple, getIndexedPositions, getNumberOfMatchingTuples, getTupleStore, hasSelectMatchingTuples, indexedValues, removeTuple, selectMatchingTuples, selectMatchingTuples, selectMatchingTuples, size, sizeInBytes
-
Constructor Details
-
PrimaryHashIndex
public PrimaryHashIndex(TupleStore tuplestore, int arity, int initialSize, ReasoningMonitor monitor)
-
-
Method Details
-
getTupleAddress
public int getTupleAddress(int tuple) get the address of a tuple- Specified by:
getTupleAddress
in interfaceMainMemoryIndex
- Overrides:
getTupleAddress
in classHashIndex
- Parameters:
tuple
-- Returns:
-
getTupleAddress
public int getTupleAddress(long[] tuple) get the address of a tuple- Specified by:
getTupleAddress
in interfaceMainMemoryIndex
- Overrides:
getTupleAddress
in classHashIndex
- Parameters:
tuple
-- Returns:
-
elements
Description copied from interface:MainMemoryIndex
iterator for all elements- Specified by:
elements
in interfaceMainMemoryIndex
- Overrides:
elements
in classHashIndex
- Returns:
-