Interface Response<T>

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
EmptyResponse

public interface Response<T> extends AutoCloseable
Author:
Vince Bickers
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    Responses that contain statistics can hook into here to return.
     
    default List<T>
    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

      default List<T> 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 call close().
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • columns

      String[] columns()
    • getStatistics

      default Optional<QueryStatistics> getStatistics()
      Responses that contain statistics can hook into here to return.
      Returns:
      An empty optional containing no statistics.
      Since:
      3.2