| Package | Description |
|---|---|
| org.evrete.api |
| Modifier and Type | Method and Description |
|---|---|
FactHandle |
FactHandleVersioned.getHandle() |
FactHandle |
FactStorage.Entry.getHandle() |
FactHandle |
RuleSession.insert(Object fact)
Inserts a fact in working memory and returns a serializable fact handle.
|
default FactHandle |
RuleSession.insert(String type,
Object fact) |
FactHandle |
FactStorage.insert(T fact)
Creates and returns new FactHandle for each inserted fact.
|
FactHandle |
RuleSession.insertAs(String type,
Object fact)
Inserts a fact and explicitly specifies its
Type name. |
| Modifier and Type | Method and Description |
|---|---|
void |
FactStorage.delete(FactHandle handle) |
StatefulSession |
StatefulSession.delete(FactHandle handle)
Deletes a fact from working memory.
|
T |
FactStorage.getFact(FactHandle handle) |
<T> T |
StatefulSession.getFact(FactHandle handle)
Returns fact by its handle.
|
StatefulSession |
StatefulSession.update(FactHandle handle,
Object newValue)
Updates a fact that already exists in the working memory
|
void |
FactStorage.update(FactHandle handle,
T newInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
StatelessSession.fire(BiConsumer<FactHandle,Object> consumer)
Fires the session and calls the consumer for each memory object and its fact handle.
|
StatefulSession |
StatefulSession.forEachFact(BiConsumer<FactHandle,Object> consumer)
A full-scan memory inspection method.
|
default StatefulSession |
StatefulSession.forEachFact(BiPredicate<FactHandle,Object> filter,
BiConsumer<FactHandle,Object> consumer) |
default StatefulSession |
StatefulSession.forEachFact(BiPredicate<FactHandle,Object> filter,
BiConsumer<FactHandle,Object> consumer) |
| Constructor and Description |
|---|
FactHandleVersioned(FactHandle handle) |
FactHandleVersioned(FactHandle handle,
int version) |
Copyright © 2021. All rights reserved.