Package org.neo4j.ogm.response
Interface Response<T>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
EmptyResponse
- Author:
- Vince Bickers
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()String[]columns()default Optional<QueryStatistics>Responses that contain statistics can hook into here to return.next()toList()Convert remaining items in this response to list This might be used to materialize whole response for checking number of results, allowing to close transaction etc.
-
Method Details
-
next
T next() -
toList
Convert remaining items in this response to list This might be used to materialize whole response for checking number of results, allowing to close transaction etc. Doesn't callclose(). -
close
void close()- Specified by:
closein interfaceAutoCloseable
-
columns
String[] columns() -
getStatistics
Responses that contain statistics can hook into here to return.- Returns:
- An empty optional containing no statistics.
- Since:
- 3.2
-