Interface PgqlResultSet

All Superinterfaces:
AutoCloseable, oracle.pgx.common.IdentifiableResultSet, Iterable<PgxResult>, oracle.pgql.lang.ResultAccess, oracle.pgql.lang.ResultSet<PgxResult>, oracle.pgql.lang.spatial.STResultAccess

public interface PgqlResultSet extends oracle.pgql.lang.ResultSet<PgxResult>, oracle.pgql.lang.spatial.STResultAccess, oracle.pgx.common.IdentifiableResultSet
Result set of a pattern matching query. Note: retrieving results from the server is not thread-safe
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    getEdge(int elementIdx)
    Gets the value of the designated element by element index as a PgxEdge
    getEdge(String elementName)
    Gets the value of the designated element by element name as a PgxEdge
    Gets the graph of this result set.
    Gets the ID of this result set.
    long
    Gets the number of results
    Gets the list of PGQL result elements information
    <ID extends Comparable<ID>>
    PgxVertex<ID>
    getVertex(int elementIdx)
    Gets the value of the designated element by element index as a PgxVertex
    <ID extends Comparable<ID>>
    PgxVertex<ID>
    getVertex(String elementName)
    Gets the value of the designated element by element name as a PgxVertex
    Prints all results to System.out.
    print(long numResults)
    Prints numResults results to System.out.
    print(long numResults, int from)
    Prints numResults results from fromth result to System.out.
    print(PrintStream printStream, long numResults, int from)
    Same as print(long, int) except that this method prints content to printStream.
    default PgxFrame
    Copies the content of this result set into a new PgxFrame.
    Copies the content of this result set into a new PgxFrame.

    Methods inherited from interface 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

    Methods inherited from interface oracle.pgql.lang.spatial.STResultAccess

    getPoint2D, getPoint2D
  • Method Details

    • getVertex

      <ID extends Comparable<ID>> PgxVertex<ID> getVertex(int elementIdx) throws oracle.pgql.lang.PgqlException
      Gets the value of the designated element by element index as a PgxVertex
      Parameters:
      elementIdx - element index
      Returns:
      PgxVertex
      Throws:
      oracle.pgql.lang.PgqlException
    • getVertex

      <ID extends Comparable<ID>> PgxVertex<ID> getVertex(String elementName) throws oracle.pgql.lang.PgqlException
      Gets the value of the designated element by element name as a PgxVertex
      Parameters:
      elementName - element name
      Returns:
      PgxVertex
      Throws:
      oracle.pgql.lang.PgqlException
    • getEdge

      PgxEdge getEdge(int elementIdx) throws oracle.pgql.lang.PgqlException
      Gets the value of the designated element by element index as a PgxEdge
      Parameters:
      elementIdx - element index
      Returns:
      PgxEdge
      Throws:
      oracle.pgql.lang.PgqlException
    • getEdge

      PgxEdge getEdge(String elementName) throws oracle.pgql.lang.PgqlException
      Gets the value of the designated element by element name as a PgxEdge
      Parameters:
      elementName - element name
      Returns:
      PgxEdge
      Throws:
      oracle.pgql.lang.PgqlException
    • getId

      String getId()
      Gets the ID of this result set.
      Specified by:
      getId in interface oracle.pgx.common.IdentifiableResultSet
      Returns:
      the ID
    • getGraph

      PgxGraph getGraph()
      Gets the graph of this result set.
      Returns:
      the graph.
    • getPgqlResultElements

      List<? extends PgqlResultElement> getPgqlResultElements()
      Gets the list of PGQL result elements information
      Returns:
      result element information
    • getNumResults

      long getNumResults()
      Gets the number of results
      Returns:
      number of results
    • print

      PgqlResultSet print()
      Prints all results to System.out.
      Returns:
      PgqlResultSet
    • print

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

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

      PgqlResultSet print(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
    • toFrameAsync

      default PgxFuture<PgxFrame> toFrameAsync()
      Copies the content of this result set into a new PgxFrame.
      Returns:
      a new PgxFrame containing the content of the result set
    • toFrame

      Copies the content of this result set into a new PgxFrame.
      Returns:
      a new PgxFrame containing the content of the result set
      Throws:
      InterruptedException
      ExecutionException
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface oracle.pgql.lang.ResultSet<PgxResult>