Package org.drools.core.common
Class MapObjectStore
java.lang.Object
org.drools.core.common.MapObjectStore
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<KieService>,ObjectStore,KieService
- Direct Known Subclasses:
IdentityObjectStore
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.kie.api.internal.utils.KieService
UNDEFINED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMapObjectStore(Map<Object, InternalFactHandle> fhMap) protectedMapObjectStore(Storage<Object, InternalFactHandle> fhStorage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandle(InternalFactHandle handle, Object object) voidclear()booleanclearClassStore(Class<?> clazz) getHandleForObject(Object object) getObjectForHandle(InternalFactHandle handle) getStoreForClass(Class<?> clazz) booleanisEmpty()This class is not thread safe, changes to the working memory during iteration may give unexpected resultsiterateFactHandles(ObjectFilter filter) This class is not thread safe, changes to the working memory during iteration may give unexpected resultsiterateNegFactHandles(ObjectFilter filter) iterateNegObjects(ObjectFilter filter) This class is not thread safe, changes to the working memory during iteration may give unexpected resultsiterateObjects(ObjectFilter filter) This class is not thread safe, changes to the working memory during iteration may give unexpected resultsvoidreconnect(InternalFactHandle handle) voidremoveHandle(InternalFactHandle handle) intsize()voidupdateHandle(InternalFactHandle handle, Object object) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.api.internal.utils.KieService
compareTo, servicePriority, serviceTagMethods inherited from interface org.drools.core.common.ObjectStore
iterateFactHandles
-
Constructor Details
-
MapObjectStore
-
MapObjectStore
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
size
public int size()- Specified by:
sizein interfaceObjectStore
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceObjectStore
-
clear
public void clear()- Specified by:
clearin interfaceObjectStore
-
getObjectForHandle
- Specified by:
getObjectForHandlein interfaceObjectStore
-
reconnect
- Specified by:
reconnectin interfaceObjectStore
-
getHandleForObject
- Specified by:
getHandleForObjectin interfaceObjectStore
-
updateHandle
- Specified by:
updateHandlein interfaceObjectStore
-
addHandle
- Specified by:
addHandlein interfaceObjectStore
-
removeHandle
- Specified by:
removeHandlein interfaceObjectStore
-
iterateObjects
Description copied from interface:ObjectStoreThis class is not thread safe, changes to the working memory during iteration may give unexpected results- Specified by:
iterateObjectsin interfaceObjectStore
-
iterateObjects
Description copied from interface:ObjectStoreThis class is not thread safe, changes to the working memory during iteration may give unexpected results- Specified by:
iterateObjectsin interfaceObjectStore
-
iterateFactHandles
Description copied from interface:ObjectStoreThis class is not thread safe, changes to the working memory during iteration may give unexpected results- Specified by:
iterateFactHandlesin interfaceObjectStore
-
iterateFactHandles
Description copied from interface:ObjectStoreThis class is not thread safe, changes to the working memory during iteration may give unexpected results- Specified by:
iterateFactHandlesin interfaceObjectStore
-
iterateNegObjects
- Specified by:
iterateNegObjectsin interfaceObjectStore
-
iterateNegFactHandles
- Specified by:
iterateNegFactHandlesin interfaceObjectStore
-
getStoreForClass
- Specified by:
getStoreForClassin interfaceObjectStore
-
clearClassStore
- Specified by:
clearClassStorein interfaceObjectStore
-