Class GroupedMap<GroupedKeyType,ValueType>
java.lang.Object
tools.refinery.interpreter.rete.aggregation.GroupedMap<GroupedKeyType,ValueType>
An optimized
Map implementation where each key is produced by joining together a group tuple and some other
object (via left inheritance). Only a select few Map operations are supported. This collection is
unmodifiable.
Operations on this map assume that client queries also obey the contract that keys are constructed from a group tuple
and an additional object.- Since:
- 2.4
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Tupleprotected final Map<GroupedKeyType, ValueType> protected final IQueryRuntimeContext -
Constructor Summary
ConstructorsConstructorDescriptionGroupedMap(Tuple group, Map<GroupedKeyType, ValueType> mappings, IQueryRuntimeContext runtimeContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
group
-
mappings
-
runtimeContext
-
-
Constructor Details
-
GroupedMap
public GroupedMap(Tuple group, Map<GroupedKeyType, ValueType> mappings, IQueryRuntimeContext runtimeContext)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceMap<GroupedKeyType,ValueType>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<GroupedKeyType,ValueType>
-
containsKey
- Specified by:
containsKeyin interfaceMap<GroupedKeyType,ValueType>
-
containsValue
- Specified by:
containsValuein interfaceMap<GroupedKeyType,ValueType>
-
get
- Specified by:
getin interfaceMap<GroupedKeyType,ValueType>
-
put
- Specified by:
putin interfaceMap<GroupedKeyType,ValueType>
-
remove
- Specified by:
removein interfaceMap<GroupedKeyType,ValueType>
-
putAll
- Specified by:
putAllin interfaceMap<GroupedKeyType,ValueType>
-
clear
public void clear()- Specified by:
clearin interfaceMap<GroupedKeyType,ValueType>
-
keySet
- Specified by:
keySetin interfaceMap<GroupedKeyType,ValueType>
-
values
- Specified by:
valuesin interfaceMap<GroupedKeyType,ValueType>
-
entrySet
- Specified by:
entrySetin interfaceMap<GroupedKeyType,ValueType>
-