Class IndexStore
java.lang.Object
com.semedy.reasoner.edb.persistentstore.bplustree.IndexStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong[]the memory piece where all indices are residing in a sequence -
Constructor Summary
ConstructorsConstructorDescriptionIndexStore(int size, ReasoningMonitor monitor) IndexStore(ReasoningMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clear the tuple storeclone()clone a tuple store with the whole contentlong[]return the dataintnewIndex(int len) create a new index of length len and return the addressintnewIndex(long[] buf) create a new index and copy buf into that index and return the addressvoidremoveIndex(int address) remove an index at addressintsize()return the number of tuples
-
Field Details
-
_elementData
public long[] _elementDatathe memory piece where all indices are residing in a sequence
-
-
Constructor Details
-
IndexStore
-
IndexStore
public IndexStore() -
IndexStore
-
-
Method Details
-
newIndex
create a new index of length len and return the address- Parameters:
len-- Returns:
- Throws:
IOException
-
getElementData
public long[] getElementData()return the data- Returns:
-
newIndex
create a new index and copy buf into that index and return the address- Parameters:
buf-- Returns:
- Throws:
IOException
-
removeIndex
public void removeIndex(int address) remove an index at address- Parameters:
address-
-
size
public int size()return the number of tuples- Returns:
-
clear
public void clear()clear the tuple store -
clone
clone a tuple store with the whole content
-