|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.query.process.QueryResults.TupleCursor
public final class QueryResults.TupleCursor

An interface used to walk through the results.
| Constructor Summary | |
|---|---|
protected |
QueryResults.TupleCursor(QueryResults.Columns columns,
Iterator<Object[]> iterator)
|
| Method Summary | |
|---|---|
Location |
getLocation(int columnNumber)
Get from the current row the location of the node from which the value in the given column was taken. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected QueryResults.TupleCursor(QueryResults.Columns columns,
Iterator<Object[]> iterator)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface QueryResults.CursorQueryResults.Cursor.hasNext()public void next()
next in interface QueryResults.CursorQueryResults.Cursor.next()public Location getLocation(int columnNumber)
getLocation in interface QueryResults.CursorcolumnNumber - the column number (0-based)
QueryResults.Cursor.getLocation(int)public Location getLocation(String selectorName)
getLocation in interface QueryResults.CursorselectorName - the name of the selector that resulted in a node appearing in the current row
QueryResults.Cursor.getLocation(java.lang.String)public int getRowIndex()
getRowIndex in interface QueryResults.CursorQueryResults.Cursor.getRowIndex()public Object getValue(int columnNumber)
getValue in interface QueryResults.CursorcolumnNumber - the column number (0-based)
QueryResults.Cursor.getValue(int)public Object getValue(String columnName)
getValue in interface QueryResults.CursorcolumnName - the name of the column
QueryResults.Cursor.getValue(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||