Class ForwardingResultSet

    • Constructor Detail

      • ForwardingResultSet

        public ForwardingResultSet​(ResultSet delegate)
      • ForwardingResultSet

        public ForwardingResultSet​(com.google.common.base.Supplier<ResultSet> supplier)
    • Method Detail

      • next

        public boolean next()
                     throws SpannerException
        Description copied from interface: ResultSet
        Advances the result set to the next row, returning false if no such row exists. This method may block.
        Specified by:
        next in interface ResultSet
        Throws:
        SpannerException
      • getCurrentRowAsStruct

        public Struct getCurrentRowAsStruct()
        Description copied from interface: ResultSet
        Creates an immutable version of the row that the result set is positioned over. This may involve copying internal data structures, and so converting all rows to Struct objects is generally more expensive than processing the ResultSet directly.
        Specified by:
        getCurrentRowAsStruct in interface ResultSet
      • close

        public void close()
        Description copied from interface: ResultSet
        Explicitly close the result set, releasing any associated resources. This must always be called when disposing of a ResultSet before ResultSet.next() has returned false or raised an exception. Calling close() is also allowed if the result set has been fully consumed, so a recommended practice is to unconditionally close the result set once it is done with, typically using a try-with-resources construct.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface ResultSet