Package org.evrete.api
Interface FactStorage<T>
- All Superinterfaces:
Iterable<FactStorage.Entry<T>>,ReIterable<FactStorage.Entry<T>>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddelete(FactHandle handle) getFact(FactHandle handle) Creates and returns new FactHandle for each inserted fact.voidupdate(FactHandle handle, T newInstance) Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.evrete.api.ReIterable
iterator, iterator
-
Method Details
-
insert
Creates and returns new FactHandle for each inserted fact. The contract is that the implementation must return
nullif object is already known and not deleted.- Parameters:
fact- the fact being inserted in the working memory- Returns:
- null if object has been already inserted or a new FactHandle otherwise
-
delete
-
update
-
getFact
-
clear
void clear()
-