public class ResultMapper extends Object
| Constructor and Description |
|---|
ResultMapper() |
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, ResultSet results)
params - searchQuery - results - @return CollectionWithPagingInfopublic Node getNode(ResultSetRow aRow, Params params, Map<String,UserInfo> mapUserInfo, boolean isHistory)
searchRequestContext - aRow - params - mapUserInfo - isHistory - public Integer setTotal(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<Pair<String,Integer>>> facetFields, SearchQuery searchQuery)
protected List<FacetFieldContext> getFacetBucketsForFacetFields(Map<String,List<Pair<String,Integer>>> facetFields, SearchQuery searchQuery)
protected static List<GenericFacetResponse> getGenericFacetsForIntervals(Map<String,List<Pair<String,Integer>>> facetFields, SearchQuery searchQuery)
facetFields - searchQuery - public boolean isNullContext(SearchContext context)
context - protected SolrJSONResultSet findSolrResultSet(ResultSet results)
results - public CollectionWithPagingInfo<TupleList> toCollectionWithPagingInfo(org.json.JSONArray docs, SearchSQLQuery searchQuery) throws org.json.JSONException
org.json.JSONExceptionCopyright © 2005–2021 Alfresco Software. All rights reserved.