|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.search.AbstractResultSet
org.alfresco.repo.search.impl.lucene.LuceneResultSet
public class LuceneResultSet
Implementation of a ResultSet on top of Lucene Hits class.
| Constructor Summary | |
|---|---|
LuceneResultSet(org.apache.lucene.search.Hits hits,
org.apache.lucene.search.Searcher searcher,
NodeService nodeService,
TenantService tenantService,
Path[] propertyPaths,
SearchParameters searchParameters,
LuceneConfig config)
Wrap a lucene seach result with node support |
|
| Method Summary | |
|---|---|
void |
close()
Close the result set. |
ChildAssociationRef |
getChildAssocRef(int n)
Get the child assoc ref for a particular row. |
org.apache.lucene.document.Document |
getDocument(int n)
|
NodeRef |
getNodeRef(int n)
Get the id of the node at the given index |
NodeService |
getNodeService()
|
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 |
ResultSetRowIterator |
iterator()
|
int |
length()
Get the size of the result set |
| Methods inherited from class org.alfresco.repo.search.AbstractResultSet |
|---|
getChildAssocRefs, getNodeRefs, getPropertyPaths |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneResultSet(org.apache.lucene.search.Hits hits,
org.apache.lucene.search.Searcher searcher,
NodeService nodeService,
TenantService tenantService,
Path[] propertyPaths,
SearchParameters searchParameters,
LuceneConfig config)
storeRef - hits - | Method Detail |
|---|
public ResultSetRowIterator iterator()
public int length()
ResultSet
public NodeRef getNodeRef(int n)
ResultSet
n - zero-based index
public float getScore(int n)
throws SearcherException
ResultSet
getScore in interface ResultSetgetScore in class AbstractResultSetn - zero-based index
SearcherExceptionpublic org.apache.lucene.document.Document getDocument(int n)
public void close()
ResultSet
close in interface ResultSetclose in class AbstractResultSetpublic NodeService getNodeService()
public ResultSetRow getRow(int i)
ResultSet
i - zero-based indexpublic ChildAssociationRef getChildAssocRef(int n)
ResultSet
n - zero-based indexpublic ResultSetMetaData getResultSetMetaData()
ResultSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||