Class DomainMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.apache.solr.client.solrj.request.json.DomainMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class DomainMap extends HashMap<String,Object>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description DomainMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainMap
setBlockChildQuery(String allChildrenQuery)
Indicates that the resulting domain will contain all child documents of the parents in the current domainDomainMap
setBlockParentQuery(String allParentsQuery)
Indicates that the resulting domain will contain all parent documents of the children in the existing domainDomainMap
setJoinTransformation(String from, String to)
Transforms the domain by running a join query with the providedfrom
andto
parametersDomainMap
withFilter(String filter)
Indicates that the domain should be narrowed by the specified filterDomainMap
withQuery(String query)
Indicates that the domain should be the following queryDomainMap
withTagsToExclude(String excludeTagsValue)
Provide a tag or tags that correspond to filters or queries to exclude from the domain-
Methods 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, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
withFilter
public DomainMap withFilter(String filter)
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
public DomainMap withQuery(String query)
Indicates that the domain should be the following queryMay be called multiple times. Each specified query is retained and included in the domain.
-
withTagsToExclude
public DomainMap withTagsToExclude(String excludeTagsValue)
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
public DomainMap setBlockParentQuery(String allParentsQuery)
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
public DomainMap setBlockChildQuery(String allChildrenQuery)
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
public DomainMap setJoinTransformation(String from, String to)
Transforms the domain by running a join query with the providedfrom
andto
parametersJoin modifies the current domain by selecting the documents whose values in field
to
match values for the fieldfrom
in the current domain.- Parameters:
from
- a field-name whose values are matched againstto
by the jointo
- a field name whose values should match values specified by thefrom
field
-
-