public class ResultMapper extends Object
Constructor and Description |
---|
ResultMapper() |
Modifier and Type | Method and Description |
---|---|
protected SolrJSONResultSet |
findSolrResultSet(org.alfresco.service.cmr.search.ResultSet results)
Gets SolrJSONResultSet class if there is one.
|
protected List<FacetFieldContext> |
getFacetBucketsForFacetFields(Map<String,List<org.alfresco.util.Pair<String,Integer>>> facetFields,
SearchQuery searchQuery) |
protected List<GenericFacetResponse> |
getFacetBucketsForFacetFieldsAsFacets(Map<String,List<org.alfresco.util.Pair<String,Integer>>> facetFields,
SearchQuery searchQuery) |
protected List<GenericFacetResponse> |
getFacetBucketsFromFacetQueries(Map<String,Integer> facetQueries,
SearchQuery searchQuery)
Builds a facet field from facet queries.
|
protected List<GenericFacetResponse> |
getFieldStats(SearchRequestContext searchRequestContext,
Map<String,Set<Metric>> stats) |
protected static List<GenericFacetResponse> |
getGenericFacetsForIntervals(Map<String,List<org.alfresco.util.Pair<String,Integer>>> facetFields,
SearchQuery searchQuery)
Returns generic faceting responses for Intervals
|
Node |
getNode(org.alfresco.service.cmr.search.ResultSetRow aRow,
Params params,
Map<String,UserInfo> mapUserInfo,
boolean isHistory)
Builds a node representation based on a ResultSetRow;
|
protected List<GenericFacetResponse> |
getPivots(SearchRequestContext searchRequest,
List<GenericFacetResponse> pivots,
List<GenericFacetResponse> stats) |
static boolean |
hasGroup(SearchQuery searchQuery) |
boolean |
isNullContext(SearchContext context)
Is the context null?
|
void |
setDeletedNodes(DeletedNodes deletedNodes) |
void |
setNodes(Nodes nodes) |
void |
setNodeVersions(NodeVersionsRelation nodeVersions) |
void |
setPropertyLookup(PropertyLookupRegistry propertyLookup) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setStoreMapper(StoreMapper storeMapper) |
Integer |
setTotal(org.alfresco.service.cmr.search.ResultSet results)
Sets the total number found.
|
CollectionWithPagingInfo<Node> |
toCollectionWithPagingInfo(Params params,
SearchRequestContext searchRequestContext,
SearchQuery searchQuery,
org.alfresco.service.cmr.search.ResultSet results)
Turns the results into a CollectionWithPagingInfo
|
SearchContext |
toSearchContext(SolrJSONResultSet solrResultSet,
SearchRequestContext searchRequestContext,
SearchQuery searchQuery,
int notFound)
Uses the results from Solr to set the Search Context
|
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setNodeVersions(NodeVersionsRelation nodeVersions)
public void setDeletedNodes(DeletedNodes deletedNodes)
public void setStoreMapper(StoreMapper storeMapper)
public void setNodes(Nodes nodes)
public void setPropertyLookup(PropertyLookupRegistry propertyLookup)
public CollectionWithPagingInfo<Node> toCollectionWithPagingInfo(Params params, SearchRequestContext searchRequestContext, SearchQuery searchQuery, org.alfresco.service.cmr.search.ResultSet results)
params
- searchQuery
- results
- @return CollectionWithPagingInfopublic Node getNode(org.alfresco.service.cmr.search.ResultSetRow aRow, Params params, Map<String,UserInfo> mapUserInfo, boolean isHistory)
searchRequestContext
- aRow
- params
- mapUserInfo
- isHistory
- public Integer setTotal(org.alfresco.service.cmr.search.ResultSet results)
results
- public SearchContext toSearchContext(SolrJSONResultSet solrResultSet, SearchRequestContext searchRequestContext, SearchQuery searchQuery, int notFound)
SolrJSONResultSet
- searchQuery
- public static boolean hasGroup(SearchQuery searchQuery)
protected List<GenericFacetResponse> getFacetBucketsFromFacetQueries(Map<String,Integer> facetQueries, SearchQuery searchQuery)
facetQueries
- protected List<GenericFacetResponse> getFieldStats(SearchRequestContext searchRequestContext, Map<String,Set<Metric>> stats)
protected List<GenericFacetResponse> getPivots(SearchRequestContext searchRequest, List<GenericFacetResponse> pivots, List<GenericFacetResponse> stats)
protected List<GenericFacetResponse> getFacetBucketsForFacetFieldsAsFacets(Map<String,List<org.alfresco.util.Pair<String,Integer>>> facetFields, SearchQuery searchQuery)
protected List<FacetFieldContext> getFacetBucketsForFacetFields(Map<String,List<org.alfresco.util.Pair<String,Integer>>> facetFields, SearchQuery searchQuery)
protected static List<GenericFacetResponse> getGenericFacetsForIntervals(Map<String,List<org.alfresco.util.Pair<String,Integer>>> facetFields, SearchQuery searchQuery)
facetFields
- searchQuery
- public boolean isNullContext(SearchContext context)
context
- protected SolrJSONResultSet findSolrResultSet(org.alfresco.service.cmr.search.ResultSet results)
results
- Copyright © 2005–2017 Alfresco Software. All rights reserved.