public class SolrJSONResultSet extends Object implements org.alfresco.service.cmr.search.ResultSet, JSONResult
Constructor and Description |
---|
SolrJSONResultSet(org.json.JSONObject json,
org.alfresco.service.cmr.search.SearchParameters searchParameters,
org.alfresco.service.cmr.repository.NodeService nodeService,
NodeDAO nodeDao,
org.alfresco.service.cmr.search.LimitBy limitBy,
int maxResults)
Detached result set based on that provided
|
Modifier and Type | Method and Description |
---|---|
protected List<GenericFacetResponse> |
buildPivot(org.json.JSONObject facet_pivot,
String pivotName,
List<org.alfresco.service.cmr.search.RangeParameters> rangeParameters) |
protected Map<String,List<Map<String,String>>> |
buildRanges(org.json.JSONObject facet_ranges) |
protected Map<String,Map<String,Object>> |
buildStats(org.json.JSONObject statsObj) |
void |
close() |
boolean |
getBulkFetch() |
int |
getBulkFetchSize() |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getChildAssocRef(int n) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocRefs() |
Map<String,List<org.alfresco.util.Pair<String,Integer>>> |
getFacetIntervals() |
Map<String,Integer> |
getFacetQueries() |
Map<String,List<Map<String,String>>> |
getFacetRanges() |
List<org.alfresco.util.Pair<String,Integer>> |
getFieldFacet(String field) |
Map<String,List<org.alfresco.util.Pair<String,Integer>>> |
getFieldFacets() |
Map<org.alfresco.service.cmr.repository.NodeRef,List<org.alfresco.util.Pair<String,List<String>>>> |
getHighlighting() |
long |
getLastIndexedTxId() |
protected Set<Metric> |
getMetrics(Map<String,Object> metrics) |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(int n) |
List<org.alfresco.service.cmr.repository.NodeRef> |
getNodeRefs() |
org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
long |
getNumberFound() |
List<GenericFacetResponse> |
getPivotFacets() |
boolean |
getProcessedDenies() |
Long |
getQueryTime() |
org.alfresco.service.cmr.search.ResultSetMetaData |
getResultSetMetaData() |
org.alfresco.service.cmr.search.ResultSetRow |
getRow(int i) |
float |
getScore(int n) |
org.alfresco.service.cmr.search.SpellCheckResult |
getSpellCheckResult() |
int |
getStart() |
Map<String,Set<Metric>> |
getStats() |
boolean |
hasMore() |
Iterator<org.alfresco.service.cmr.search.ResultSetRow> |
iterator() |
int |
length() |
boolean |
setBulkFetch(boolean bulkFetch) |
int |
setBulkFetchSize(int bulkFetchSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SolrJSONResultSet(org.json.JSONObject json, org.alfresco.service.cmr.search.SearchParameters searchParameters, org.alfresco.service.cmr.repository.NodeService nodeService, NodeDAO nodeDao, org.alfresco.service.cmr.search.LimitBy limitBy, int maxResults)
json
- JSONObjectsearchParameters
- SearchParametersnodeService
- NodeServicenodeDao
- NodeDAOlimitBy
- LimitBymaxResults
- intprotected Map<String,List<Map<String,String>>> buildRanges(org.json.JSONObject facet_ranges) throws org.json.JSONException
org.json.JSONException
protected Map<String,Map<String,Object>> buildStats(org.json.JSONObject statsObj) throws org.json.JSONException
org.json.JSONException
protected List<GenericFacetResponse> buildPivot(org.json.JSONObject facet_pivot, String pivotName, List<org.alfresco.service.cmr.search.RangeParameters> rangeParameters) throws org.json.JSONException
org.json.JSONException
public org.alfresco.service.cmr.repository.NodeService getNodeService()
public void close()
close
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public boolean getBulkFetch()
getBulkFetch
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public int getBulkFetchSize()
getBulkFetchSize
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssocRef(int n)
getChildAssocRef
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocRefs()
getChildAssocRefs
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public org.alfresco.service.cmr.repository.NodeRef getNodeRef(int n)
getNodeRef
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public List<org.alfresco.service.cmr.repository.NodeRef> getNodeRefs()
getNodeRefs
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public org.alfresco.service.cmr.search.ResultSetMetaData getResultSetMetaData()
getResultSetMetaData
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public org.alfresco.service.cmr.search.ResultSetRow getRow(int i)
getRow
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public float getScore(int n)
getScore
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public int getStart()
getStart
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public boolean hasMore()
hasMore
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public int length()
length
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public boolean setBulkFetch(boolean bulkFetch)
setBulkFetch
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public int setBulkFetchSize(int bulkFetchSize)
setBulkFetchSize
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public Iterator<org.alfresco.service.cmr.search.ResultSetRow> iterator()
public Long getQueryTime()
getQueryTime
in interface JSONResult
public long getNumberFound()
getNumberFound
in interface JSONResult
getNumberFound
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public List<org.alfresco.util.Pair<String,Integer>> getFieldFacet(String field)
getFieldFacet
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public Map<String,List<org.alfresco.util.Pair<String,Integer>>> getFacetIntervals()
public List<GenericFacetResponse> getPivotFacets()
public long getLastIndexedTxId()
public Map<String,Integer> getFacetQueries()
getFacetQueries
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public Map<org.alfresco.service.cmr.repository.NodeRef,List<org.alfresco.util.Pair<String,List<String>>>> getHighlighting()
getHighlighting
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public org.alfresco.service.cmr.search.SpellCheckResult getSpellCheckResult()
getSpellCheckResult
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
public boolean getProcessedDenies()
Copyright © 2005–2017 Alfresco Software. All rights reserved.