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 QueryResultpublic String[] getSelectorNames()
getSelectorNames in interface QueryResultpublic RowIterator getRows() throws RepositoryException
getRows in interface QueryResultRepositoryException - if the query results have already
been iterated throughpublic NodeIterator getNodes() throws RepositoryException
getNodes in interface QueryResultRepositoryException - 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.