Class DomainMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetBlockChildQuery(String allChildrenQuery) Indicates that the resulting domain will contain all child documents of the parents in the current domainsetBlockParentQuery(String allParentsQuery) Indicates that the resulting domain will contain all parent documents of the children in the existing domainsetJoinTransformation(String from, String to) Transforms the domain by running a join query with the providedfromandtoparameterswithFilter(String filter) Indicates that the domain should be narrowed by the specified filterIndicates that the domain should be the following querywithTagsToExclude(String excludeTagsValue) Provide a tag or tags that correspond to filters or queries to exclude from the domainMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
DomainMap
public DomainMap()
-
-
Method Details
-
withFilter
Indicates that the domain should be narrowed by the specified filterMay be called multiple times. Each added filter is retained and used to narrow the domain.
-
withQuery
Indicates that the domain should be the following queryMay be called multiple times. Each specified query is retained and included in the domain.
-
withTagsToExclude
Provide a tag or tags that correspond to filters or queries to exclude from the domainMay be called multiple times. Each exclude-string is retained and used for removing queries/filters from the domain specification.
- Parameters:
excludeTagsValue- a comma-delimited String containing filter/query tags to exclude
-
setBlockParentQuery
Indicates that the resulting domain will contain all parent documents of the children in the existing domain- Parameters:
allParentsQuery- a query used to identify all parent documents in the collection
-
setBlockChildQuery
Indicates that the resulting domain will contain all child documents of the parents in the current domain- Parameters:
allChildrenQuery- a query used to identify all child documents in the collection
-
setJoinTransformation
Transforms the domain by running a join query with the providedfromandtoparametersJoin modifies the current domain by selecting the documents whose values in field
tomatch values for the fieldfromin the current domain.- Parameters:
from- a field-name whose values are matched againsttoby the jointo- a field name whose values should match values specified by thefromfield
-