public class SortedResultSet extends Object implements org.alfresco.service.cmr.search.ResultSet
Constructor and Description |
---|
SortedResultSet(org.alfresco.service.cmr.search.ResultSet resultSet,
org.alfresco.service.cmr.repository.NodeService nodeService,
List<org.alfresco.service.cmr.search.SearchParameters.SortDefinition> sortDefinitions,
org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
Locale locale)
Source and resources required to sort
|
SortedResultSet(org.alfresco.service.cmr.search.ResultSet resultSet,
org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.search.SearchParameters searchParametersx,
org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
getBulkFetch()
Do we bulk fetch
|
int |
getBulkFetchSize()
Get the bulk fetch size.
|
org.alfresco.service.cmr.repository.ChildAssociationRef |
getChildAssocRef(int n) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocRefs() |
Map<String,Integer> |
getFacetQueries() |
List<org.alfresco.util.Pair<String,Integer>> |
getFieldFacet(String field) |
Map<org.alfresco.service.cmr.repository.NodeRef,List<org.alfresco.util.Pair<String,List<String>>>> |
getHighlighting() |
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() |
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() |
boolean |
hasMore() |
Iterator<org.alfresco.service.cmr.search.ResultSetRow> |
iterator() |
int |
length() |
boolean |
setBulkFetch(boolean bulkFetch)
Bulk fetch results in the cache
|
int |
setBulkFetchSize(int bulkFetchSize)
Set the bulk fetch size
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SortedResultSet(org.alfresco.service.cmr.search.ResultSet resultSet, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchParameters searchParametersx, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, Locale locale)
public SortedResultSet(org.alfresco.service.cmr.search.ResultSet resultSet, org.alfresco.service.cmr.repository.NodeService nodeService, List<org.alfresco.service.cmr.search.SearchParameters.SortDefinition> sortDefinitions, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, Locale locale)
resultSet
- ResultSetnodeService
- NodeServicenamespacePrefixResolver
- NamespacePrefixResolverdictionaryService
- DictionaryServicelocale
- Localepublic void close()
close
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.NodeRef> getNodeRefs()
getNodeRefs
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 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.repository.NodeService getNodeService()
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 length()
length
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 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 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>
bulkFetch
- booleanpublic 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 setBulkFetchSize(int bulkFetchSize)
setBulkFetchSize
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
bulkFetchSize
- intpublic int getBulkFetchSize()
getBulkFetchSize
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 long getNumberFound()
getNumberFound
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
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>
Copyright © 2005–2017 Alfresco Software. All rights reserved.