Interface PgqlResultSet

  • All Superinterfaces:
    java.lang.AutoCloseable, java.lang.Iterable<oracle.pgql.lang.ResultAccess>, oracle.pgql.lang.ResultAccess, oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>
    All Known Implementing Classes:
    oracle.pg.rdbms.pgql.PgqlResultSetImpl, PgViewResultSet

    public interface PgqlResultSet
    extends oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>
    This interface provides a ResultSet for a PGQL query execution. It extends the oracle.pgql.lang.ResultSet interface with methods to get meta data for the result set and also to determine the data type for a particular value.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void close()
      Closes the underlying JDBC ResultSet and Statement.
      int getValueType​(int elementIdx)
      Returns the type of value for the given element.
      int getValueType​(java.lang.String elementName)
      Returns the type of value for the given element.
      PgqlResultSet print()
      Prints all results to System.out.
      default PgqlResultSet print​(long numResults)
      Prints numResults results to System.out.
      default PgqlResultSet print​(long numResults, int from)
      Prints numResults results from fromth result to System.out.
      PgqlResultSet print​(java.io.PrintStream printStream, long numResults, int from)
      Same as print(long, int) except that this method prints content to printStream.
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from interface oracle.pgql.lang.ResultAccess

        getBoolean, getBoolean, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLegacyDate, getLegacyDate, getList, getList, getLong, getLong, getObject, getObject, getString, getString, getTime, getTime, getTimestamp, getTimestamp, getTimestampWithTimezone, getTimestampWithTimezone, getTimeWithTimezone, getTimeWithTimezone, getVertexLabels, getVertexLabels
      • Methods inherited from interface oracle.pgql.lang.ResultSet

        absolute, afterLast, beforeFirst, first, getMetaData, last, next, previous, relative
    • Method Detail

      • getValueType

        int getValueType​(int elementIdx)
                  throws oracle.pgql.lang.PgqlException
        Returns the type of value for the given element. The returned values correspond to values in the T column of the PG relational schema.
        Parameters:
        elementIdx - element index
        Returns:
        the type of value
        Throws:
        oracle.pgql.lang.PgqlException - when an error occurs while retrieving the value type
      • getValueType

        int getValueType​(java.lang.String elementName)
                  throws oracle.pgql.lang.PgqlException
        Returns the type of value for the given element. The returned values correspond to values in the T column of the PG relational schema.
        Parameters:
        elementName - element name
        Returns:
        the type of value
        Throws:
        oracle.pgql.lang.PgqlException - when an error occurs while retrieving the value type
      • close

        void close()
            throws oracle.pgql.lang.PgqlException
        Closes the underlying JDBC ResultSet and Statement.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>
        Throws:
        oracle.pgql.lang.PgqlException
      • print

        default PgqlResultSet print​(long numResults)
        Prints numResults results to System.out. If numResults is larger than the number of available results, only the number of available results are printed.
        Parameters:
        numResults - number of results
        Returns:
        PgqlResultSet
      • print

        default PgqlResultSet print​(long numResults,
                                    int from)
        Prints numResults results from fromth result to System.out.
        Parameters:
        numResults - number of results
        from - first result to be printed (start counting from 0)
        Returns:
        PgqlResultSet
      • print

        PgqlResultSet print​(java.io.PrintStream printStream,
                            long numResults,
                            int from)
        Same as print(long, int) except that this method prints content to printStream.
        Parameters:
        printStream - stream to which results are printed
        numResults - number of results
        from - first result to be printed (start counting from 0)
        Returns:
        PgqlResultSet