Package com.semedy.reasoner.edb.ramstore
Class TupleStoreWithReferenceCounters
java.lang.Object
com.semedy.reasoner.edb.ramstore.TupleStore
com.semedy.reasoner.edb.ramstore.TupleStoreWithReferenceCounters
- Author:
- juergen
-
Field Summary
Fields inherited from class com.semedy.reasoner.edb.ramstore.TupleStore
_elementData, _elements -
Constructor Summary
ConstructorsConstructorDescriptionTupleStoreWithReferenceCounters(int arity) TupleStoreWithReferenceCounters(int arity, int size, ReasoningMonitor monitor) TupleStoreWithReferenceCounters(int arity, ReasoningMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionintdecrementNGetReferenceCount(int t) decrement and get reference count for tuple tintgetReferenceCount(int t) returns a reference counter for tuple tvoidincReferenceCount(int t) increment reference count for tuple tintnewTuple()create a new tuple of length arity and return the addressvoidsetReferenceCount(int t, int count) set the reference count for tuple tMethods inherited from class com.semedy.reasoner.edb.ramstore.TupleStore
clear, clone, getArity, getElementData, newTuple, newTuple, removeTuple, size, sizeInBytes
-
Constructor Details
-
TupleStoreWithReferenceCounters
public TupleStoreWithReferenceCounters(int arity) - Parameters:
arity-
-
TupleStoreWithReferenceCounters
- Parameters:
arity-
-
TupleStoreWithReferenceCounters
- Parameters:
arity-
-
-
Method Details
-
getReferenceCount
public int getReferenceCount(int t) returns a reference counter for tuple t- Overrides:
getReferenceCountin classTupleStore- Parameters:
t- , tuple address- Returns:
-
setReferenceCount
public void setReferenceCount(int t, int count) set the reference count for tuple t- Overrides:
setReferenceCountin classTupleStore- Parameters:
t- , tuplecount- , reference count
-
incReferenceCount
public void incReferenceCount(int t) increment reference count for tuple t- Overrides:
incReferenceCountin classTupleStore- Parameters:
t- , tuple
-
decrementNGetReferenceCount
public int decrementNGetReferenceCount(int t) decrement and get reference count for tuple t- Overrides:
decrementNGetReferenceCountin classTupleStore- Parameters:
t- , tuple- Returns:
-
newTuple
Description copied from class:TupleStorecreate a new tuple of length arity and return the address- Overrides:
newTuplein classTupleStore- Returns:
- Throws:
IOException
-