Class SingleColumnQueryResult
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.QueryResultImpl
-
- org.apache.jackrabbit.core.query.lucene.SingleColumnQueryResult
-
- All Implemented Interfaces:
QueryResult
,JackrabbitQueryResult
public class SingleColumnQueryResult extends QueryResultImpl
SingleColumnQueryResult
implements a query result that returns a single column. That is, executes a lucene query.
-
-
Field Summary
Fields Modifier and Type Field Description protected Path[]
orderProps
The relative paths of properties to use for ordering the result set.protected boolean[]
orderSpecs
The order specifier for each of the order properties.-
Fields inherited from class org.apache.jackrabbit.core.query.lucene.QueryResultImpl
columns, docOrder, index, queryImpl, sessionContext, spellSuggestion
-
-
Constructor Summary
Constructors Constructor Description SingleColumnQueryResult(SearchIndex index, SessionContext sessionContext, AbstractQueryImpl queryImpl, Query query, org.apache.jackrabbit.core.query.lucene.SpellSuggestion spellSuggestion, ColumnImpl[] columns, Path[] orderProps, boolean[] orderSpecs, String[] orderFuncs, boolean documentOrder, long offset, long limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExcerptProvider
createExcerptProvider()
Creates an excerpt provider for this result set.protected MultiColumnQueryHits
executeQuery(long resultFetchHint)
Executes the query for this result and returns hits.-
Methods inherited from class org.apache.jackrabbit.core.query.lucene.QueryResultImpl
getColumnNames, getNodes, getResults, getRows, getSelectorNames, getTotalSize, isAccessGranted
-
-
-
-
Field Detail
-
orderProps
protected final Path[] orderProps
The relative paths of properties to use for ordering the result set.
-
orderSpecs
protected final boolean[] orderSpecs
The order specifier for each of the order properties.
-
-
Constructor Detail
-
SingleColumnQueryResult
public SingleColumnQueryResult(SearchIndex index, SessionContext sessionContext, AbstractQueryImpl queryImpl, Query query, org.apache.jackrabbit.core.query.lucene.SpellSuggestion spellSuggestion, ColumnImpl[] columns, Path[] orderProps, boolean[] orderSpecs, String[] orderFuncs, boolean documentOrder, long offset, long limit) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
executeQuery
protected MultiColumnQueryHits executeQuery(long resultFetchHint) throws IOException
Executes the query for this result and returns hits. The caller must close the query hits when he is done using it.- Specified by:
executeQuery
in classQueryResultImpl
- Parameters:
resultFetchHint
- a hint on how many results should be fetched.- Returns:
- hits for this query result.
- Throws:
IOException
- if an error occurs while executing the query.
-
createExcerptProvider
protected ExcerptProvider createExcerptProvider() throws IOException
Creates an excerpt provider for this result set.- Specified by:
createExcerptProvider
in classQueryResultImpl
- Returns:
- an excerpt provider.
- Throws:
IOException
- if an error occurs.
-
-