org.modeshape.jcr.query
Class JcrQueryResult.QueryResultRowIterator
java.lang.Object
org.modeshape.jcr.query.JcrQueryResult.QueryResultRowIterator
- All Implemented Interfaces:
- Iterator, RowIterator, RangeIterator
- Direct Known Subclasses:
- JcrQueryResult.SingleSelectorQueryResultRowIterator
- Enclosing class:
- JcrQueryResult
@NotThreadSafe
protected static class JcrQueryResult.QueryResultRowIterator
- extends Object
- implements RowIterator
The RowIterator
implementation returned by the JcrQueryResult
.
- See Also:
JcrQueryResult.getRows()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columnNames
protected final List<String> columnNames
context
protected final JcrQueryContext context
columns
protected final QueryResults.Columns columns
query
protected final String query
JcrQueryResult.QueryResultRowIterator
protected JcrQueryResult.QueryResultRowIterator(JcrQueryContext context,
String query,
QueryResults results,
Iterator<Object[]> tuples,
long numRows)
hasSelector
public boolean hasSelector(String selectorName)
nextRow
public Row nextRow()
-
- Specified by:
nextRow
in interface RowIterator
- See Also:
RowIterator.nextRow()
getPosition
public long getPosition()
-
- Specified by:
getPosition
in interface RangeIterator
- See Also:
RangeIterator.getPosition()
getSize
public long getSize()
-
- Specified by:
getSize
in interface RangeIterator
- See Also:
RangeIterator.getSize()
skip
public void skip(long skipNum)
-
- Specified by:
skip
in interface RangeIterator
- See Also:
RangeIterator.skip(long)
hasNext
public boolean hasNext()
-
- Specified by:
hasNext
in interface Iterator
- See Also:
Iterator.hasNext()
getNextRow
protected Row getNextRow(Object[] tuple)
throws RepositoryException
- Throws:
RepositoryException
getPropertyNameForColumnName
protected String getPropertyNameForColumnName(String columnName)
next
public Object next()
-
- Specified by:
next
in interface Iterator
- See Also:
Iterator.next()
remove
public void remove()
-
- Specified by:
remove
in interface Iterator
- See Also:
Iterator.remove()
jcrPath
protected Value jcrPath(Path path)
jcrName
protected Value jcrName(Name name)
jcrName
protected Value jcrName()
jcrString
protected Value jcrString(String name)
jcrLong
protected Value jcrLong(Long value)
jcrDouble
protected Value jcrDouble(Float score)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.