public class SimpleQueryResult extends Object implements QueryResult
Modifier | Constructor and Description |
---|---|
protected |
SimpleQueryResult(String[] columnNames,
String[] selectorNames,
RowIterator rowIterator)
Creates a query result with the given column and selector names and
row iterator.
|
Modifier and Type | Method and 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.
|
protected SimpleQueryResult(String[] columnNames, String[] selectorNames, RowIterator rowIterator)
columnNames
- column namesselectorNames
- selector namesrowIterator
- iterator over matching rowspublic String[] getColumnNames()
getColumnNames
in interface QueryResult
public String[] getSelectorNames()
getSelectorNames
in interface QueryResult
public RowIterator getRows() throws RepositoryException
getRows
in interface QueryResult
RepositoryException
- if the query results have already
been iterated throughpublic NodeIterator getNodes() throws RepositoryException
getNodes
in interface QueryResult
RepositoryException
- if this query has more than one selector,
or if the query results have already been
iterated throughCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.