| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.graph.query.process.QueryResults
@Immutable public class QueryResults

The resulting output of a query.
| Nested Class Summary | |
|---|---|
|  class | QueryResults.TupleCursorAn interface used to walk through the results. | 
| Nested classes/interfaces inherited from interface org.jboss.dna.graph.query.QueryResults | 
|---|
| QueryResults.Columns, QueryResults.Cursor, QueryResults.Statistics | 
| Field Summary | 
|---|
| Fields inherited from interface org.jboss.dna.graph.query.QueryResults | 
|---|
| FORMATTER | 
| Constructor Summary | |
|---|---|
| QueryResults(QueryResults.Columns columns,
             QueryResults.Statistics statistics)Create an empty QueryResultsobject for the supplied context, command, and result columns. | |
| QueryResults(QueryResults.Columns columns,
             QueryResults.Statistics statistics,
             List<Object[]> tuples)Create a results object for the supplied context, command, and result columns and with the supplied tuples. | |
| QueryResults(QueryResults.Columns columns,
             QueryResults.Statistics statistics,
             List<Object[]> tuples,
             Problems problems,
             String plan)Create a results object for the supplied context, command, and result columns and with the supplied tuples. | |
| QueryResults(QueryResults.Columns columns,
             QueryResults.Statistics statistics,
             Problems problems)Create an empty QueryResultsobject for the supplied context, command, and result columns. | |
| Method Summary | |
|---|---|
|  QueryResults.Columns | getColumns()Get the description of the columns contained in these results. | 
|  QueryResults.Cursor | getCursor()Get a cursor that can be used to walk through the results. | 
|  String | getPlan()Get a description of the query plan, if requested. | 
|  Problems | getProblems()Get the problems encountered during execution. | 
|  int | getRowCount()Get the number of rows in the results. | 
|  QueryResults.Statistics | getStatistics()Get the statistics that describe the time metrics for this query. | 
|  List<Object[]> | getTuples()Get the actual tuples that contain the results. | 
|  boolean | hasErrors()Return true if there is at least one error recorded in the problems. | 
|  boolean | hasWarnings()Return true if there is at least one warning recorded in the problems. | 
|  String | toString() | 
|  String | toString(TypeSystem typeSystem,
         int maxTuples)Get a string representation of this result object, with a maximum number of tuples to include. | 
|  void | toString(TypeSystem typeSystem,
         StringBuilder sb)Get a string representation of this result object. | 
|  void | toString(TypeSystem typeSystem,
         StringBuilder sb,
         int maxTuples)Get a string representation of this result object, with a maximum number of tuples to include. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public QueryResults(QueryResults.Columns columns,
                    QueryResults.Statistics statistics,
                    List<Object[]> tuples,
                    Problems problems,
                    String plan)
columns - the definition of the query result columnsstatistics - the statistics for this query; may not be nulltuples - the tuplesproblems - the problems; may be null if there are no problemsplan - the text representation of the query plan, if the hints asked for it
public QueryResults(QueryResults.Columns columns,
                    QueryResults.Statistics statistics,
                    List<Object[]> tuples)
columns - the definition of the query result columnsstatistics - the statistics for this query; may not be nulltuples - the tuples
public QueryResults(QueryResults.Columns columns,
                    QueryResults.Statistics statistics,
                    Problems problems)
QueryResults object for the supplied context, command, and result columns.
columns - the definition of the query result columnsstatistics - the statistics for this query; may not be nullproblems - the problems; may be null if there are no problems
public QueryResults(QueryResults.Columns columns,
                    QueryResults.Statistics statistics)
QueryResults object for the supplied context, command, and result columns.
columns - the definition of the query result columnsstatistics - the statistics for this query; may not be null| Method Detail | 
|---|
public QueryResults.Columns getColumns()
tuples.
getColumns in interface QueryResultsQueryResults.getColumns()public QueryResults.Cursor getCursor()
getCursor in interface QueryResultsQueryResults.TupleCursor.hasNext() may return true)public List<Object[]> getTuples()
getTuples in interface QueryResultsQueryResults.getTuples()public int getRowCount()
getRowCount in interface QueryResultsQueryResults.getRowCount()public String getPlan()
getPlan in interface QueryResultsQueryResults.getPlan()public Problems getProblems()
getProblems in interface QueryResultsQueryResults.getProblems()public boolean hasErrors()
problems.
hasErrors in interface QueryResultsQueryResults.hasErrors()public boolean hasWarnings()
problems.
hasWarnings in interface QueryResultsQueryResults.hasWarnings()public QueryResults.Statistics getStatistics()
getStatistics in interface QueryResultsQueryResults.getStatistics()public String toString()
toString in class ObjectObject.toString()
public String toString(TypeSystem typeSystem,
                       int maxTuples)
typeSystem - the type system that can be used to convert the values to a string; may be null if
        Object.toString() should be usedmaxTuples - the maximum number of tuples to print, or Integer.MAX_VALUE if all the tuples are to be printed
public void toString(TypeSystem typeSystem,
                     StringBuilder sb)
typeSystem - the type system that can be used to convert the values to a string; may be null if
        Object.toString() should be usedsb - the string builder to which the results should be written; may not be null
public void toString(TypeSystem typeSystem,
                     StringBuilder sb,
                     int maxTuples)
typeSystem - the type system that can be used to convert the values to a string; may be null if
        Object.toString() should be usedsb - the string builder to which the results should be written; may not be nullmaxTuples - the maximum number of tuples to print, or Integer.MAX_VALUE if all the tuples are to be printed| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||