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 TypeMethodDescriptionvoidclose()getEdge(int elementIdx) Gets the value of the designated element by element index as aPgxEdgeGets the value of the designated element by element name as aPgxEdgegetGraph()Gets the graph of this result set.getId()Gets the ID of this result set.longGets the number of resultsList<? extends PgqlResultElement> 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 aPgxVertex<ID extends Comparable<ID>>
PgxVertex<ID> Gets the value of the designated element by element name as aPgxVertexprint()Prints all results toSystem.out.default PgqlResultSetprint(long numResults) PrintsnumResultsresults toSystem.out.default PgqlResultSetprint(long numResults, int from) PrintsnumResultsresults fromfromth result toSystem.out.print(PrintStream printStream, long numResults, int from) Same asprint(long, int)except that this method prints content toprintStream.default PgxFrametoFrame()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, spliteratorMethods 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, getVertexLabelsMethods inherited from interface oracle.pgql.lang.ResultSet
absolute, afterLast, beforeFirst, first, getMetaData, last, next, previous, relativeMethods 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 aPgxVertex- 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 aPgxVertex- Parameters:
elementName- element name- Returns:
PgxVertex- Throws:
oracle.pgql.lang.PgqlException
-
getEdge
-
getEdge
-
getId
String getId()Gets the ID of this result set.- Specified by:
getIdin interfaceoracle.pgx.common.IdentifiableResultSet- Returns:
- the ID
-
getGraph
-
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
-
print
PrintsnumResultsresults toSystem.out. IfnumResultsis larger thangetNumResults(), onlygetNumResults()results are printed.- Parameters:
numResults- number of result- Returns:
PgqlResultSet
-
print
PrintsnumResultsresults fromfromth result toSystem.out.- Parameters:
numResults- number of resultfrom- first result to be printed (start counting from 0)- Returns:
PgqlResultSet
-
print
Same asprint(long, int)except that this method prints content toprintStream.- Parameters:
printStream- stream to which results are printednumResults- number of resultsfrom- first result to be printed (start counting from 0)- Returns:
PgqlResultSet
-
toFrameAsync
-
toFrame
Copies the content of this result set into a new PgxFrame.- Returns:
- a new PgxFrame containing the content of the result set
- Throws:
InterruptedExceptionExecutionException
-
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceoracle.pgql.lang.ResultSet<PgxResult>
-