Package org.evrete.api
Interface KeyedFactStorage
-
- All Superinterfaces:
InnerFactMemory
public interface KeyedFactStorage extends InnerFactMemory
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
keys
ReIterator<MemoryKey> keys(KeyMode keyMode)
-
values
ReIterator<FactHandleVersioned> values(KeyMode mode, MemoryKey key)
-
write
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 untilwrite(Collection)gets called.- Parameters:
partialKey- next component of the memory key
-
write
void 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 ofwrite(ValueHandle).- Parameters:
factHandles- fact handles to save under the sequence of keys
-
-