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 the necessary number of keys are provided viawrite(ValueHandle).voidwrite(ValueHandle partialKey)This method is similar to theJarOutputStream.putNextEntry(ZipEntry).-
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)
This method is similar to the
JarOutputStream.putNextEntry(ZipEntry). However, it expects both sides to know the number of keys to be written until thewrite(Collection)method is called.- Parameters:
partialKey- The next component of the memory key.
-
write
void write(Collection<FactHandleVersioned> factHandles)
This method will be called after the necessary number of keys are provided via
write(ValueHandle). After the fact handles are provided, the implementation must reset its internal key counter and wait for the next call towrite(ValueHandle).- Parameters:
factHandles- fact handles to save under the sequence of keys
-
-