Package io.inversion
Class Results<M extends Map<String,?>>
java.lang.Object
io.inversion.Results<M>
- All Implemented Interfaces:
Iterable<M>
Results are returned by a Db and transformed by Actions into Response content.
Dbs are not responsible for mapping from column names to json names so a Results rows and terms will use column names until they are potentially transformed by an Action.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected intThe total number of rows (if known) in the Db that match the query, not the number of rows returned in this Results.static Stringprotected final List<io.inversion.rql.Term>The RQL terms that will get the next page of results the DB things there are more results.protected Querythe query that produced these results.The data the query produced.protected String -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
LAST_QUERY
-
next
The RQL terms that will get the next page of results the DB things there are more results.Dbs are not responsible for mapping from column names to json names so these terms will have column names when initially returned from the Db.
Actions should map the keys to the corresponding json name property names before returning to the caller.
-
query
the query that produced these results. -
rows
The data the query produced.Dbs are not responsible for mapping from column names to json names so these maps will have column names keys when initially returned from the Db.
Actions should map them to the corresponding json property names before returning to the caller.
-
foundRows
protected int foundRowsThe total number of rows (if known) in the Db that match the query, not the number of rows returned in this Results.For paginated listings, foundRows generally be greater than rows.size()
-
debugQuery
-
testQuery
-
-
Constructor Details
-
Results
-
Results
-
-
Method Details