org.alfresco.repo.search
Class AbstractResultSet

java.lang.Object
  extended by org.alfresco.repo.search.AbstractResultSet
All Implemented Interfaces:
java.lang.Iterable, ResultSet
Direct Known Subclasses:
ChildAssocRefResultSet, DetachedResultSet, LuceneResultSet

public abstract class AbstractResultSet
extends java.lang.Object
implements ResultSet


Constructor Summary
AbstractResultSet(Path[] propertyPaths)
           
 
Method Summary
 void close()
          Close the result set.
 java.util.List getChildAssocRefs()
          Get a list of all the child associations in the results set.
 java.util.List getNodeRefs()
          Get a list of all the node refs in the result set
 Path[] getPropertyPaths()
          Get the relative paths to all the elements contained in this result set
 float getScore(int n)
          Get the score for the node at the given position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.service.cmr.search.ResultSet
getChildAssocRef, getNodeRef, getResultSetMetaData, getRow, length
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

AbstractResultSet

public AbstractResultSet(Path[] propertyPaths)
Method Detail

getPropertyPaths

public Path[] getPropertyPaths()
Description copied from interface: ResultSet
Get the relative paths to all the elements contained in this result set

Specified by:
getPropertyPaths in interface ResultSet

getScore

public float getScore(int n)
Description copied from interface: ResultSet
Get the score for the node at the given position

Specified by:
getScore in interface ResultSet
Parameters:
n - zero-based index

close

public void close()
Description copied from interface: ResultSet
Close the result set. This must be called to allow the release of underlying resources.

Specified by:
close in interface ResultSet

getNodeRefs

public java.util.List getNodeRefs()
Description copied from interface: ResultSet
Get a list of all the node refs in the result set

Specified by:
getNodeRefs in interface ResultSet

getChildAssocRefs

public java.util.List getChildAssocRefs()
Description copied from interface: ResultSet
Get a list of all the child associations in the results set.

Specified by:
getChildAssocRefs in interface ResultSet


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