public class GroupedMap<GroupedKeyType,ValueType> extends java.lang.Object implements java.util.Map<Tuple,ValueType>
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.Modifier and Type | Field and Description |
---|---|
protected Tuple |
group |
protected java.util.Map<GroupedKeyType,ValueType> |
mappings |
protected IQueryRuntimeContext |
runtimeContext |
Constructor and Description |
---|
GroupedMap(Tuple group,
java.util.Map<GroupedKeyType,ValueType> mappings,
IQueryRuntimeContext runtimeContext) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<Tuple,ValueType>> |
entrySet() |
ValueType |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.Set<Tuple> |
keySet() |
ValueType |
put(Tuple key,
ValueType value) |
void |
putAll(java.util.Map<? extends Tuple,? extends ValueType> map) |
ValueType |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection<ValueType> |
values() |
protected final Tuple group
protected final java.util.Map<GroupedKeyType,ValueType> mappings
protected final IQueryRuntimeContext runtimeContext
public GroupedMap(Tuple group, java.util.Map<GroupedKeyType,ValueType> mappings, IQueryRuntimeContext runtimeContext)
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public ValueType get(java.lang.Object key)
public ValueType remove(java.lang.Object key)
public java.util.Set<Tuple> keySet()
public java.util.Collection<ValueType> values()