public interface KeyedFactStorage extends InnerFactMemory
| Modifier and Type | Method and Description |
|---|---|
ReIterator<MemoryKey> |
keys(KeyMode keyMode) |
ReIterator<FactHandleVersioned> |
values(KeyMode mode,
MemoryKey key) |
void |
write(Collection<FactHandleVersioned> factHandles)
This method will be called after necessary count of keys are provided via
write(ValueHandle). |
void |
write(ValueHandle partialKey)
Method similar to the
JarOutputStream.putNextEntry(ZipEntry), except
both sides are expected to know how many keys are to be written until write(Collection)
gets called. |
clear, commitChangesReIterator<MemoryKey> keys(KeyMode keyMode)
ReIterator<FactHandleVersioned> values(KeyMode mode, MemoryKey key)
void write(ValueHandle partialKey)
Method similar to the JarOutputStream.putNextEntry(ZipEntry), except
both sides are expected to know how many keys are to be written until write(Collection)
gets called.
partialKey - next component of the memory keyvoid write(Collection<FactHandleVersioned> factHandles)
This method will be called after necessary count of keys are provided via write(ValueHandle).
After fact handles are provided, the implementation must reset its internal key counter and wait for the
next call of write(ValueHandle).
factHandles - fact handles to save under the sequence of keysCopyright © 2021. All rights reserved.