java.lang.Object
org.evrete.util.FactStorageWrapper<FH,V>
- All Implemented Interfaces:
FactStorage<FH,V>
public class FactStorageWrapper<FH extends FactHandle,V>
extends Object
implements FactStorage<FH,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the memoryRetrieves a fact value by fact handle.voidInserts a fact into the delta storage.Deletes a fact from the memory for bothMemoryScope.DELTAandMemoryScope.MAINscopes.stream()Returns stream of currently stored values.
-
Constructor Details
-
FactStorageWrapper
-
-
Method Details
-
insert
Description copied from interface:FactStorageInserts a fact into the delta storage.- Specified by:
insertin interfaceFactStorage<FH extends FactHandle,V> - Parameters:
factHandle- the handle for the fact to be insertedvalue- the value associated with the fact handle
-
remove
Description copied from interface:FactStorageDeletes a fact from the memory for bothMemoryScope.DELTAandMemoryScope.MAINscopes.- Specified by:
removein interfaceFactStorage<FH extends FactHandle,V> - Parameters:
factHandle- the previously assigned fact handle- Returns:
- the previously existing value, or
nullif no value was associated with the fact handle
-
get
Description copied from interface:FactStorageRetrieves a fact value by fact handle.- Specified by:
getin interfaceFactStorage<FH extends FactHandle,V> - Parameters:
factHandle- the handle for the fact to be retrieved- Returns:
- the value associated with the fact handle, or null if not found
-
stream
Description copied from interface:FactStorageReturns stream of currently stored values.- Specified by:
streamin interfaceFactStorage<FH extends FactHandle,V> - Returns:
- stream of currently stored mappings.
-
clear
public void clear()Description copied from interface:FactStorageClears the memory- Specified by:
clearin interfaceFactStorage<FH extends FactHandle,V>
-