Class SimpleQueryResult
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.join.SimpleQueryResult
-
- All Implemented Interfaces:
QueryResult
public class SimpleQueryResult extends Object implements QueryResult
Simple query result implementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleQueryResult(String[] columnNames, String[] selectorNames, RowIterator rowIterator)
Creates a query result with the given column and selector names and row iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getColumnNames()
Returns the column names of this query.NodeIterator
getNodes()
Returns the nodes that match this query.RowIterator
getRows()
Returns the query result rows.String[]
getSelectorNames()
Returns the selector names of this query.
-
-
-
Constructor Detail
-
SimpleQueryResult
protected SimpleQueryResult(String[] columnNames, String[] selectorNames, RowIterator rowIterator)
Creates a query result with the given column and selector names and row iterator.- Parameters:
columnNames
- column namesselectorNames
- selector namesrowIterator
- iterator over matching rows
-
-
Method Detail
-
getColumnNames
public String[] getColumnNames()
Returns the column names of this query. Note that the returned array is not protected against modification by the client application.- Specified by:
getColumnNames
in interfaceQueryResult
- Returns:
- column names
-
getSelectorNames
public String[] getSelectorNames()
Returns the selector names of this query. Note that the returned array is not protected against modification by the client application.- Specified by:
getSelectorNames
in interfaceQueryResult
- Returns:
- selector names
-
getRows
public RowIterator getRows() throws RepositoryException
Returns the query result rows.- Specified by:
getRows
in interfaceQueryResult
- Returns:
- query result rows
- Throws:
RepositoryException
- if the query results have already been iterated through
-
getNodes
public NodeIterator getNodes() throws RepositoryException
Returns the nodes that match this query.- Specified by:
getNodes
in interfaceQueryResult
- Returns:
- matching nodes
- Throws:
RepositoryException
- if this query has more than one selector, or if the query results have already been iterated through
-
-