org.alfresco.cmis.search
Class CMISResultSetImpl

java.lang.Object
  extended by org.alfresco.cmis.search.CMISResultSetImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, CMISResultSet, org.alfresco.service.cmr.search.ResultSetSPI

public class CMISResultSetImpl
extends java.lang.Object
implements CMISResultSet, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
CMISResultSetImpl(java.util.Map wrapped, CMISQueryOptions options, org.alfresco.service.cmr.search.LimitBy limitBy, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.repo.search.impl.querymodel.Query query, CMISDictionaryService cmisDictionaryService, org.alfresco.service.cmr.dictionary.DictionaryService alfrescoDictionaryService)
           
 
Method Summary
 void close()
           
 boolean getBulkFetch()
          Do we bulk fetch - not supported here
 int getBulkFetchSize()
          Get the bulk fetch size.
 org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssocRef(int n)
           
 java.util.List getChildAssocRefs()
           
 java.util.List getFieldFacet(java.lang.String field)
           
 int getLength()
          Get the number of rows in this result set.
 CMISResultSetMetaData getMetaData()
          Get the result set meta-data.
 org.alfresco.service.cmr.repository.NodeRef getNodeRef(int n)
           
 java.util.List getNodeRefs()
           
 CMISResultSetMetaData getResultSetMetaData()
           
 CMISResultSetRow getRow(int i)
           
 float getScore(int n)
           
 int getStart()
           
 boolean hasMore()
           
 java.util.Iterator iterator()
           
 int length()
           
 boolean setBulkFetch(boolean bulkFetch)
          Bulk fetch results in the cache - not supported here
 int setBulkFetchSize(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
 

Constructor Detail

CMISResultSetImpl

public CMISResultSetImpl(java.util.Map wrapped,
                         CMISQueryOptions options,
                         org.alfresco.service.cmr.search.LimitBy limitBy,
                         org.alfresco.service.cmr.repository.NodeService nodeService,
                         org.alfresco.repo.search.impl.querymodel.Query query,
                         CMISDictionaryService cmisDictionaryService,
                         org.alfresco.service.cmr.dictionary.DictionaryService alfrescoDictionaryService)
Method Detail

close

public void close()
Specified by:
close in interface org.alfresco.service.cmr.search.ResultSetSPI

getMetaData

public CMISResultSetMetaData getMetaData()
Description copied from interface: CMISResultSet
Get the result set meta-data.

Specified by:
getMetaData in interface CMISResultSet
Returns:
the metadata

getRow

public CMISResultSetRow getRow(int i)
Specified by:
getRow in interface org.alfresco.service.cmr.search.ResultSetSPI

hasMore

public boolean hasMore()
Specified by:
hasMore in interface org.alfresco.service.cmr.search.ResultSetSPI

getLength

public int getLength()
Description copied from interface: CMISResultSet
Get the number of rows in this result set. This will be less than or equal to the maximum number of rows requested or the full length if no restriction on length is specified. If a skip count is given, the length represents the number of results after the skip count and does not include the items skipped.

Specified by:
getLength in interface CMISResultSet
Returns:
the length

getStart

public int getStart()
Specified by:
getStart in interface org.alfresco.service.cmr.search.ResultSetSPI

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable

getChildAssocRef

public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssocRef(int n)
Specified by:
getChildAssocRef in interface org.alfresco.service.cmr.search.ResultSetSPI

getChildAssocRefs

public java.util.List getChildAssocRefs()
Specified by:
getChildAssocRefs in interface org.alfresco.service.cmr.search.ResultSetSPI

getNodeRef

public org.alfresco.service.cmr.repository.NodeRef getNodeRef(int n)
Specified by:
getNodeRef in interface org.alfresco.service.cmr.search.ResultSetSPI

getNodeRefs

public java.util.List getNodeRefs()
Specified by:
getNodeRefs in interface org.alfresco.service.cmr.search.ResultSetSPI

getResultSetMetaData

public CMISResultSetMetaData getResultSetMetaData()
Specified by:
getResultSetMetaData in interface org.alfresco.service.cmr.search.ResultSetSPI

getScore

public float getScore(int n)
Specified by:
getScore in interface org.alfresco.service.cmr.search.ResultSetSPI

length

public int length()
Specified by:
length in interface org.alfresco.service.cmr.search.ResultSetSPI

setBulkFetch

public boolean setBulkFetch(boolean bulkFetch)
Bulk fetch results in the cache - not supported here

Specified by:
setBulkFetch in interface org.alfresco.service.cmr.search.ResultSetSPI
Parameters:
bulkFetch -

getBulkFetch

public boolean getBulkFetch()
Do we bulk fetch - not supported here

Specified by:
getBulkFetch in interface org.alfresco.service.cmr.search.ResultSetSPI
Returns:
- true if we do

setBulkFetchSize

public int setBulkFetchSize(int bulkFetchSize)
Set the bulk fetch size

Specified by:
setBulkFetchSize in interface org.alfresco.service.cmr.search.ResultSetSPI
Parameters:
bulkFetchSize -

getBulkFetchSize

public int getBulkFetchSize()
Get the bulk fetch size.

Specified by:
getBulkFetchSize in interface org.alfresco.service.cmr.search.ResultSetSPI
Returns:
the fetch size

getFieldFacet

public java.util.List getFieldFacet(java.lang.String field)
Specified by:
getFieldFacet in interface org.alfresco.service.cmr.search.ResultSetSPI


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.