Package org.alfresco.opencmis.search
Class CMISResultSet
- java.lang.Object
-
- org.alfresco.opencmis.search.CMISResultSet
-
- All Implemented Interfaces:
Serializable,Iterable<CMISResultSetRow>,ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
public class CMISResultSet extends Object implements ResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>, Serializable
- Author:
- andyh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CMISResultSet(Map<String,ResultSet> wrapped, CMISQueryOptions options, LimitBy limitBy, NodeService nodeService, Query query, CMISDictionaryService cmisDictionaryService, 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.ChildAssociationRefgetChildAssocRef(int n)List<ChildAssociationRef>getChildAssocRefs()Map<String,Integer>getFacetQueries()List<Pair<String,Integer>>getFieldFacet(String field)Map<NodeRef,List<Pair<String,List<String>>>>getHighlighting()intgetLength()CMISResultSetMetaDatagetMetaData()NodeRefgetNodeRef(int n)List<NodeRef>getNodeRefs()longgetNumberFound()CMISResultSetMetaDatagetResultSetMetaData()CMISResultSetRowgetRow(int i)floatgetScore(int n)SpellCheckResultgetSpellCheckResult()intgetStart()booleanhasMore()Iterator<CMISResultSetRow>iterator()intlength()booleansetBulkFetch(boolean bulkFetch)Bulk fetch results in the cache - not supported hereintsetBulkFetchSize(int bulkFetchSize)Set the bulk fetch size-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CMISResultSet
public CMISResultSet(Map<String,ResultSet> wrapped, CMISQueryOptions options, LimitBy limitBy, NodeService nodeService, Query query, CMISDictionaryService cmisDictionaryService, DictionaryService alfrescoDictionaryService)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getMetaData
public CMISResultSetMetaData getMetaData()
-
getRow
public CMISResultSetRow getRow(int i)
- Specified by:
getRowin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
hasMore
public boolean hasMore()
- Specified by:
hasMorein interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getLength
public int getLength()
-
getStart
public int getStart()
- Specified by:
getStartin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
iterator
public Iterator<CMISResultSetRow> iterator()
- Specified by:
iteratorin interfaceIterable<CMISResultSetRow>
-
getChildAssocRef
public ChildAssociationRef getChildAssocRef(int n)
- Specified by:
getChildAssocRefin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getChildAssocRefs
public List<ChildAssociationRef> getChildAssocRefs()
- Specified by:
getChildAssocRefsin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getNodeRef
public NodeRef getNodeRef(int n)
- Specified by:
getNodeRefin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getNodeRefs
public List<NodeRef> getNodeRefs()
- Specified by:
getNodeRefsin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getResultSetMetaData
public CMISResultSetMetaData getResultSetMetaData()
- Specified by:
getResultSetMetaDatain interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getScore
public float getScore(int n)
- Specified by:
getScorein interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
length
public int length()
- Specified by:
lengthin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
setBulkFetch
public boolean setBulkFetch(boolean bulkFetch)
Bulk fetch results in the cache - not supported here- Specified by:
setBulkFetchin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Parameters:
bulkFetch- boolean
-
getBulkFetch
public boolean getBulkFetch()
Do we bulk fetch - not supported here- Specified by:
getBulkFetchin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Returns:
- - true if we do
-
setBulkFetchSize
public int setBulkFetchSize(int bulkFetchSize)
Set the bulk fetch size- Specified by:
setBulkFetchSizein interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Parameters:
bulkFetchSize- int
-
getBulkFetchSize
public int getBulkFetchSize()
Get the bulk fetch size.- Specified by:
getBulkFetchSizein interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>- Returns:
- the fetch size
-
getFieldFacet
public List<Pair<String,Integer>> getFieldFacet(String field)
- Specified by:
getFieldFacetin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getNumberFound
public long getNumberFound()
- Specified by:
getNumberFoundin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getFacetQueries
public Map<String,Integer> getFacetQueries()
- Specified by:
getFacetQueriesin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getHighlighting
public Map<NodeRef,List<Pair<String,List<String>>>> getHighlighting()
- Specified by:
getHighlightingin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
getSpellCheckResult
public SpellCheckResult getSpellCheckResult()
- Specified by:
getSpellCheckResultin interfaceResultSetSPI<CMISResultSetRow,CMISResultSetMetaData>
-
-