Package org.evrete.api
Interface KeyedFactStorage
- All Superinterfaces:
InnerFactMemory
public interface KeyedFactStorage extends InnerFactMemory
-
Method Summary
Modifier and Type Method Description ReIterator<MemoryKey>keys(KeyMode keyMode)ReIterator<FactHandleVersioned>values(KeyMode mode, MemoryKey key)voidwrite(Collection<FactHandleVersioned> factHandles)This method will be called after necessary count of keys are provided viawrite(ValueHandle).voidwrite(ValueHandle partialKey)Method similar to theJarOutputStream.putNextEntry(ZipEntry), except both sides are expected to know how many keys are to be written untilwrite(Collection)gets called.Methods inherited from interface org.evrete.api.InnerFactMemory
clear, commitChanges
-
Method Details
-
keys
-
values
-
write
Method similar to the
JarOutputStream.putNextEntry(ZipEntry), except both sides are expected to know how many keys are to be written untilwrite(Collection)gets called.- Parameters:
partialKey- next component of the memory key
-
write
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 ofwrite(ValueHandle).- Parameters:
factHandles- fact handles to save under the sequence of keys
-