org.alfresco.repo.search.results
Class ResultSetSPIWrapper

java.lang.Object
  extended by org.alfresco.repo.search.results.ResultSetSPIWrapper
All Implemented Interfaces:
java.lang.Iterable, org.alfresco.service.cmr.search.ResultSet, org.alfresco.service.cmr.search.ResultSetSPI

public class ResultSetSPIWrapper
extends java.lang.Object
implements org.alfresco.service.cmr.search.ResultSet

Wrap an SPI result set with the basic interface


Constructor Summary
ResultSetSPIWrapper(org.alfresco.service.cmr.search.ResultSetSPI wrapped)
          Create a wrapped result set
 
Method Summary
 void close()
           
 boolean getBulkFetch()
          Do we bulk fetch
 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)
           
 org.alfresco.service.cmr.repository.NodeRef getNodeRef(int n)
           
 java.util.List getNodeRefs()
           
 org.alfresco.service.cmr.search.ResultSetMetaData getResultSetMetaData()
           
 org.alfresco.service.cmr.search.ResultSetRow 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
 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

ResultSetSPIWrapper

public ResultSetSPIWrapper(org.alfresco.service.cmr.search.ResultSetSPI wrapped)
Create a wrapped result set

Parameters:
wrapped -
Method Detail

close

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

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 org.alfresco.service.cmr.search.ResultSetMetaData getResultSetMetaData()
Specified by:
getResultSetMetaData in interface org.alfresco.service.cmr.search.ResultSetSPI

getRow

public org.alfresco.service.cmr.search.ResultSetRow getRow(int i)
Specified by:
getRow 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

getStart

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

hasMore

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

length

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

iterator

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

setBulkFetch

public boolean setBulkFetch(boolean bulkFetch)
Bulk fetch results in the cache

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

getBulkFetch

public boolean getBulkFetch()
Do we bulk fetch

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.