Package org.alfresco.opencmis.search
Class CMISResultSet
- java.lang.Object
-
- org.alfresco.opencmis.search.CMISResultSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<CMISResultSetRow>,org.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
public class CMISResultSet extends java.lang.Object implements org.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>, java.io.Serializable
- Author:
- andyh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CMISResultSet(java.util.Map<java.lang.String,org.alfresco.service.cmr.search.ResultSet> wrapped, org.alfresco.opencmis.search.CMISQueryOptions options, org.alfresco.service.cmr.search.LimitBy limitBy, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.repo.search.impl.querymodel.Query query, org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService, org.alfresco.service.cmr.dictionary.DictionaryService alfrescoDictionaryService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleangetBulkFetch()Do we bulk fetch - not supported hereintgetBulkFetchSize()Get the bulk fetch size.org.alfresco.service.cmr.repository.ChildAssociationRefgetChildAssocRef(int n)java.util.List<org.alfresco.service.cmr.repository.ChildAssociationRef>getChildAssocRefs()java.util.Map<java.lang.String,java.lang.Integer>getFacetQueries()java.util.List<org.alfresco.util.Pair<java.lang.String,java.lang.Integer>>getFieldFacet(java.lang.String field)java.util.Map<org.alfresco.service.cmr.repository.NodeRef,java.util.List<org.alfresco.util.Pair<java.lang.String,java.util.List<java.lang.String>>>>getHighlighting()intgetLength()CMISResultSetMetaDatagetMetaData()org.alfresco.service.cmr.repository.NodeRefgetNodeRef(int n)java.util.List<org.alfresco.service.cmr.repository.NodeRef>getNodeRefs()longgetNumberFound()CMISResultSetMetaDatagetResultSetMetaData()CMISResultSetRowgetRow(int i)floatgetScore(int n)org.alfresco.service.cmr.search.SpellCheckResultgetSpellCheckResult()intgetStart()booleanhasMore()java.util.Iterator<CMISResultSetRow>iterator()intlength()booleansetBulkFetch(boolean bulkFetch)Bulk fetch results in the cache - not supported hereintsetBulkFetchSize(int bulkFetchSize)Set the bulk fetch size
-
-
-
Constructor Detail
-
CMISResultSet
public CMISResultSet(java.util.Map<java.lang.String,org.alfresco.service.cmr.search.ResultSet> wrapped, org.alfresco.opencmis.search.CMISQueryOptions options, org.alfresco.service.cmr.search.LimitBy limitBy, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.repo.search.impl.querymodel.Query query, org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService, org.alfresco.service.cmr.dictionary.DictionaryService alfrescoDictionaryService)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getMetaData
public CMISResultSetMetaData getMetaData()
-
getRow
public CMISResultSetRow getRow(int i)
- Specified by:
getRowin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
hasMore
public boolean hasMore()
- Specified by:
hasMorein interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getLength
public int getLength()
-
getStart
public int getStart()
- Specified by:
getStartin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
iterator
public java.util.Iterator<CMISResultSetRow> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<CMISResultSetRow>
-
getChildAssocRef
public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssocRef(int n)
- Specified by:
getChildAssocRefin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getChildAssocRefs
public java.util.List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocRefs()
- Specified by:
getChildAssocRefsin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef(int n)
- Specified by:
getNodeRefin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getNodeRefs
public java.util.List<org.alfresco.service.cmr.repository.NodeRef> getNodeRefs()
- Specified by:
getNodeRefsin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getResultSetMetaData
public CMISResultSetMetaData getResultSetMetaData()
- Specified by:
getResultSetMetaDatain interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getScore
public float getScore(int n)
- Specified by:
getScorein interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
length
public int length()
- Specified by:
lengthin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
setBulkFetch
public boolean setBulkFetch(boolean bulkFetch)
Bulk fetch results in the cache - not supported here- Specified by:
setBulkFetchin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Parameters:
bulkFetch- boolean
-
getBulkFetch
public boolean getBulkFetch()
Do we bulk fetch - not supported here- Specified by:
getBulkFetchin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Returns:
- - true if we do
-
setBulkFetchSize
public int setBulkFetchSize(int bulkFetchSize)
Set the bulk fetch size- Specified by:
setBulkFetchSizein interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Parameters:
bulkFetchSize- int
-
getBulkFetchSize
public int getBulkFetchSize()
Get the bulk fetch size.- Specified by:
getBulkFetchSizein interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Returns:
- the fetch size
-
getFieldFacet
public java.util.List<org.alfresco.util.Pair<java.lang.String,java.lang.Integer>> getFieldFacet(java.lang.String field)
- Specified by:
getFieldFacetin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getNumberFound
public long getNumberFound()
- Specified by:
getNumberFoundin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getFacetQueries
public java.util.Map<java.lang.String,java.lang.Integer> getFacetQueries()
- Specified by:
getFacetQueriesin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getHighlighting
public java.util.Map<org.alfresco.service.cmr.repository.NodeRef,java.util.List<org.alfresco.util.Pair<java.lang.String,java.util.List<java.lang.String>>>> getHighlighting()
- Specified by:
getHighlightingin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getSpellCheckResult
public org.alfresco.service.cmr.search.SpellCheckResult getSpellCheckResult()
- Specified by:
getSpellCheckResultin interfaceorg.alfresco.service.cmr.search.ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
-