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
ConstructorDescriptionTupleStoreWithReferenceCounters
(int arity) TupleStoreWithReferenceCounters
(int arity, int size, ReasoningMonitor monitor) TupleStoreWithReferenceCounters
(int arity, ReasoningMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionint
decrementNGetReferenceCount
(int t) decrement and get reference count for tuple tint
getReferenceCount
(int t) returns a reference counter for tuple tvoid
incReferenceCount
(int t) increment reference count for tuple tint
newTuple()
create a new tuple of length arity and return the addressvoid
setReferenceCount
(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:
getReferenceCount
in classTupleStore
- Parameters:
t
- , tuple address- Returns:
-
setReferenceCount
public void setReferenceCount(int t, int count) set the reference count for tuple t- Overrides:
setReferenceCount
in classTupleStore
- Parameters:
t
- , tuplecount
- , reference count
-
incReferenceCount
public void incReferenceCount(int t) increment reference count for tuple t- Overrides:
incReferenceCount
in classTupleStore
- Parameters:
t
- , tuple
-
decrementNGetReferenceCount
public int decrementNGetReferenceCount(int t) decrement and get reference count for tuple t- Overrides:
decrementNGetReferenceCount
in classTupleStore
- Parameters:
t
- , tuple- Returns:
-
newTuple
Description copied from class:TupleStore
create a new tuple of length arity and return the address- Overrides:
newTuple
in classTupleStore
- Returns:
- Throws:
IOException
-