Class SwappableBufferedIncrementalRelation
java.lang.Object
com.semedy.reasoner.edb.persistentstore.AbstractCacheUnit
com.semedy.reasoner.reasoning.processes.SwappableRelation
com.semedy.reasoner.reasoning.processes.SwappableIncrementalRelation
com.semedy.reasoner.reasoning.processes.SwappableBufferedIncrementalRelation
- All Implemented Interfaces:
CacheUnit
Store for a buffered incremental relation.
Either buffered incremental relation is in main memory or it is persistent.
Main memory incremental relation can be swapped out.
Either buffered incremental relation is in main memory or it is persistent.
Main memory incremental relation can be swapped out.
- Author:
- angele
-
Field Summary
Fields inherited from class com.semedy.reasoner.reasoning.processes.SwappableRelation
_tupleStore
-
Constructor Summary
ConstructorsConstructorDescriptionSwappableBufferedIncrementalRelation
(int arity, boolean cepReasoning, boolean retracts, ReasoningMonitor monitor, String tempDir, boolean releasable, boolean sorted) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clear relationvoid
destroy()
destroy it.void
release()
swap out.void
remove()
remove all tupleslong
size()
number of tuplesvoid
void
void
swapOut()
swap out to temp dirvoid
swap out to tuple fileSwap out to a tuple file with a generic name in temp directoryMethods inherited from class com.semedy.reasoner.reasoning.processes.SwappableIncrementalRelation
addTuple, addTuple, addTuple, addTupleMM, addTupleMM, addTupleP, addTupleP, getAllTuples, getIncrementalTuples, getTupleStore, isInMemory, setDontCheck4Duplicates, sizeInBytes, storeIncremental
Methods inherited from class com.semedy.reasoner.reasoning.processes.SwappableRelation
finalize, getTuples, isReleasable, swapout
-
Constructor Details
-
SwappableBufferedIncrementalRelation
public SwappableBufferedIncrementalRelation(int arity, boolean cepReasoning, boolean retracts, ReasoningMonitor monitor, String tempDir, boolean releasable, boolean sorted) - Parameters:
arity
-cepReasoning
-monitor
-tempDir
-
-
-
Method Details
-
size
Description copied from class:SwappableRelation
number of tuples- Overrides:
size
in classSwappableIncrementalRelation
- Returns:
- Throws:
IOException
EDBException
-
clear
Description copied from class:SwappableRelation
clear relation- Overrides:
clear
in classSwappableIncrementalRelation
- Throws:
IOException
-
getBufferedTuples
-
storeBufferMM
- Throws:
IOException
EDBException
-
swapOutToTupleFile
Description copied from class:SwappableRelation
Swap out to a tuple file with a generic name in temp directory- Overrides:
swapOutToTupleFile
in classSwappableIncrementalRelation
- Returns:
- Throws:
IOException
EDBException
-
swapOut
Description copied from class:SwappableRelation
swap out to tuple file- Overrides:
swapOut
in classSwappableIncrementalRelation
- Throws:
IOException
EDBException
-
storeBuffer
- Throws:
IOException
EDBException
-
swapOut
Description copied from class:SwappableRelation
swap out to temp dir- Overrides:
swapOut
in classSwappableIncrementalRelation
- Throws:
IOException
EDBException
-
release
Description copied from class:SwappableRelation
swap out. Used in cache manager- Specified by:
release
in interfaceCacheUnit
- Overrides:
release
in classSwappableRelation
- Throws:
IOException
EDBException
-
remove
Description copied from class:SwappableRelation
remove all tuples- Overrides:
remove
in classSwappableIncrementalRelation
- Throws:
IOException
-
destroy
public void destroy()Description copied from class:SwappableRelation
destroy it. Used in cache manager- Specified by:
destroy
in interfaceCacheUnit
- Overrides:
destroy
in classSwappableIncrementalRelation
-