|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultSetSPI
This is the common interface for both row (Alfresco node) and column (CMIS style property or function) based results. The meta-data for the results sets contains the detailed info on what columns are available. For row based result sets there is no selector - all the nodes returned do not have to have a specific type or aspect. For example, an FTS search on properties of type d:content has no type constraint implied or otherwise. Searches against properties have an implied type, but as there can be more than one property -> more than one type or aspect implied (eg via OR in FTS or lucene) they are ignored An iterable result set from a searcher query. Implementations must implement the indexes for row lookup as zero-based.
Method Summary | |
---|---|
void |
close()
Close the result set and release any resources held/ The result set is bound to the transaction and will auto close at the end of the transaction. |
boolean |
getBulkFetch()
Do we bulk fetch |
int |
getBulkFetchSize()
Get the bulk fetch size. |
ChildAssociationRef |
getChildAssocRef(int n)
Get the child assoc ref for a particular row. |
java.util.List |
getChildAssocRefs()
Get a list of all the child associations in the results set. |
java.util.List |
getFieldFacet(java.lang.String field)
|
NodeRef |
getNodeRef(int n)
Get the id of the node at the given index (if there is only one selector or no selector) |
java.util.List |
getNodeRefs()
Get a list of all the node refs in the result set (if there is only one selector or no selector) |
ResultSetMetaData |
getResultSetMetaData()
Get the meta data for the results set. |
ResultSetRow |
getRow(int i)
Get a row from the result set by row index, starting at 0. |
float |
getScore(int n)
Get the score for the node at the given position (if there is only one selector or no selector) |
int |
getStart()
Get the start point for this results set in the overall set of rows that match the query - this will be equal to the skip count set when executing the query, and zero if this is not set. |
boolean |
hasMore()
Was this result set curtailed - are there more pages to the result set? |
int |
length()
Get the number of rows in this result set. |
boolean |
setBulkFetch(boolean bulkFetch)
Bulk fetch results in the cache |
int |
setBulkFetchSize(int bulkFetchSize)
Set the bulk fetch size |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
int length()
NodeRef getNodeRef(int n)
n
- zero-based index
AmbiguousSelectorException
float getScore(int n)
n
- zero-based index
AmbiguousSelectorException
void close()
ResultSetRow getRow(int i)
i
- zero-based index
java.util.List getNodeRefs()
AmbiguousSelectorException
java.util.List getChildAssocRefs()
AmbiguousSelectorException
ChildAssociationRef getChildAssocRef(int n)
n
- zero-based index
ResultSetMetaData getResultSetMetaData()
int getStart()
boolean hasMore()
boolean setBulkFetch(boolean bulkFetch)
bulkFetch
- boolean getBulkFetch()
int setBulkFetchSize(int bulkFetchSize)
bulkFetchSize
- int getBulkFetchSize()
java.util.List getFieldFacet(java.lang.String field)
field
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |