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 TypeMethodDescriptionvoidclear()clear relationvoiddestroy()destroy it.voidrelease()swap out.voidremove()remove all tupleslongsize()number of tuplesvoidvoidvoidswapOut()swap out to temp dirvoidswap 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, storeIncrementalMethods 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:SwappableRelationnumber of tuples- Overrides:
sizein classSwappableIncrementalRelation- Returns:
- Throws:
IOExceptionEDBException
-
clear
Description copied from class:SwappableRelationclear relation- Overrides:
clearin classSwappableIncrementalRelation- Throws:
IOException
-
getBufferedTuples
-
storeBufferMM
- Throws:
IOExceptionEDBException
-
swapOutToTupleFile
Description copied from class:SwappableRelationSwap out to a tuple file with a generic name in temp directory- Overrides:
swapOutToTupleFilein classSwappableIncrementalRelation- Returns:
- Throws:
IOExceptionEDBException
-
swapOut
Description copied from class:SwappableRelationswap out to tuple file- Overrides:
swapOutin classSwappableIncrementalRelation- Throws:
IOExceptionEDBException
-
storeBuffer
- Throws:
IOExceptionEDBException
-
swapOut
Description copied from class:SwappableRelationswap out to temp dir- Overrides:
swapOutin classSwappableIncrementalRelation- Throws:
IOExceptionEDBException
-
release
Description copied from class:SwappableRelationswap out. Used in cache manager- Specified by:
releasein interfaceCacheUnit- Overrides:
releasein classSwappableRelation- Throws:
IOExceptionEDBException
-
remove
Description copied from class:SwappableRelationremove all tuples- Overrides:
removein classSwappableIncrementalRelation- Throws:
IOException
-
destroy
public void destroy()Description copied from class:SwappableRelationdestroy it. Used in cache manager- Specified by:
destroyin interfaceCacheUnit- Overrides:
destroyin classSwappableIncrementalRelation
-