public final class QueryResults.TupleCursor extends Object implements QueryResults.Cursor
| Modifier | Constructor and Description |
|---|---|
protected |
QueryResults.TupleCursor(QueryResults.Columns columns,
Iterator<Object[]> iterator) |
| Modifier and Type | Method and Description |
|---|---|
QueryResults.Location |
getLocation(int columnNumber)
Get from the current row the location of the node from which the value in the given column was taken.
|
QueryResults.Location |
getLocation(String selectorName)
Get from the current row the location of the node that was produced by the named selector.
|
int |
getRowIndex()
Get the 0-based index of the current row.
|
Object |
getValue(int columnNumber)
Get from the current row the value in the given column.
|
Object |
getValue(String columnName)
Get the value in the named column.
|
boolean |
hasNext()
Determine whether this cursor can be moved from its current position to the next row.
|
void |
next()
Move this cursor position to the next row. obtained for
|
protected QueryResults.TupleCursor(QueryResults.Columns columns, Iterator<Object[]> iterator)
public boolean hasNext()
QueryResults.CursorhasNext in interface QueryResults.Cursorpublic void next()
QueryResults.Cursornext in interface QueryResults.Cursorpublic QueryResults.Location getLocation(int columnNumber)
QueryResults.CursorgetLocation in interface QueryResults.CursorcolumnNumber - the column number (0-based)public QueryResults.Location getLocation(String selectorName)
QueryResults.CursorgetLocation in interface QueryResults.CursorselectorName - the name of the selector that resulted in a node appearing in the current rowpublic int getRowIndex()
QueryResults.CursorgetRowIndex in interface QueryResults.Cursorpublic Object getValue(int columnNumber)
QueryResults.CursorgetValue in interface QueryResults.CursorcolumnNumber - the column number (0-based)public Object getValue(String columnName)
QueryResults.CursorgetValue in interface QueryResults.CursorcolumnName - the name of the columnCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.