Package org.evrete.api
Interface FactStorage<T>
- All Superinterfaces:
Iterable<FactStorage.Entry<T>>,ReIterable<FactStorage.Entry<T>>
public interface FactStorage<T> extends ReIterable<FactStorage.Entry<T>>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFactStorage.Entry<Z> -
Method Summary
Modifier and Type Method Description voidclear()voiddelete(FactHandle handle)TgetFact(FactHandle handle)FactHandleinsert(T fact)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()
-