|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.QueryResultImpl
public class QueryResultImpl
Implements the javax.jcr.query.QueryResult interface.
| Field Summary | |
|---|---|
protected Name[] |
orderProps
The names of properties to use for ordering the result set. |
protected boolean[] |
orderSpecs
The order specifier for each of the order properties. |
protected org.apache.lucene.search.Query |
query
The lucene query to execute. |
protected AbstractQueryImpl |
queryImpl
The query instance which created this query result. |
protected Name[] |
selectProps
The select properties |
protected SessionImpl |
session
The session executing the query |
protected org.apache.jackrabbit.core.query.lucene.SpellSuggestion |
spellSuggestion
The spell suggestion or null if not available. |
| Constructor Summary | |
|---|---|
QueryResultImpl(SearchIndex index,
ItemManager itemMgr,
SessionImpl session,
AccessManager accessMgr,
AbstractQueryImpl queryImpl,
org.apache.lucene.search.Query query,
org.apache.jackrabbit.core.query.lucene.SpellSuggestion spellSuggestion,
Name[] selectProps,
Name[] orderProps,
boolean[] orderSpecs,
boolean documentOrder,
long offset,
long limit)
Creates a new query result. |
|
| Method Summary | |
|---|---|
protected MultiColumnQueryHits |
executeQuery()
Executes the query for this result and returns hits. |
java.lang.String[] |
getColumnNames()
|
javax.jcr.NodeIterator |
getNodes()
|
javax.jcr.query.RowIterator |
getRows()
|
int |
getTotalSize()
Returns the total number of hits. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final SessionImpl session
protected final AbstractQueryImpl queryImpl
protected final org.apache.lucene.search.Query query
protected final org.apache.jackrabbit.core.query.lucene.SpellSuggestion spellSuggestion
null if not available.
protected final Name[] selectProps
protected final Name[] orderProps
protected final boolean[] orderSpecs
| Constructor Detail |
|---|
public QueryResultImpl(SearchIndex index,
ItemManager itemMgr,
SessionImpl session,
AccessManager accessMgr,
AbstractQueryImpl queryImpl,
org.apache.lucene.search.Query query,
org.apache.jackrabbit.core.query.lucene.SpellSuggestion spellSuggestion,
Name[] selectProps,
Name[] orderProps,
boolean[] orderSpecs,
boolean documentOrder,
long offset,
long limit)
throws javax.jcr.RepositoryException
index - the search index where the query is executed.itemMgr - the item manager of the session executing the
query.session - the session executing the query.accessMgr - the access manager of the session executiong the
query.queryImpl - the query instance which created this query
result.query - the lucene query to execute on the index.spellSuggestion - the spell suggestion or null if none
is available.selectProps - the select properties of the query.orderProps - the names of the order properties.orderSpecs - the order specs, one for each order property
name.documentOrder - if true the result is returned in
document order.limit - the maximum result sizeoffset - the offset in the total result set
javax.jcr.RepositoryException| Method Detail |
|---|
public java.lang.String[] getColumnNames()
throws javax.jcr.RepositoryException
getColumnNames in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes()
throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryException
public javax.jcr.query.RowIterator getRows()
throws javax.jcr.RepositoryException
getRows in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryException
protected MultiColumnQueryHits executeQuery()
throws java.io.IOException
java.io.IOException - if an error occurs while executing the query.public int getTotalSize()
-1 if the total size is unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||