Class PgxSession
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.Destroyable
-
- oracle.pgx.api.PgxManagedObject
-
- oracle.pgx.api.PgxSession
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class PgxSession extends PgxManagedObject
A PGX session represents an active user connected to aServerInstance
. Every session gets a workspace assigned on the server, which can be used to read graph data, create transient data or custom algorithms for the sake of graph analysis. Once a session gets destroyed, all data in the session workspace gets freed.
-
-
Field Summary
Fields Modifier and Type Field Description static long
LATEST_SNAPSHOT
the timestamp of the most recent snapshot: used to easily move to the newest snapshot as a second argument ofsetSnapshot(PgxGraph, long)
;}
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgxFuture<CompiledProgram>
compileProgramCodeAsync(java.lang.String code)
Compiles a Green-Marl program for parallel execution with all optimizations enabled.PgxFuture<CompiledProgram>
compileProgramCodeAsync(java.lang.String code, boolean overwrite)
Compiles a Green-Marl program for parallel execution with all optimizations enabled.PgxFuture<CompiledProgram>
compileProgramCodeAsync(java.lang.String code, boolean overwrite, boolean parallel, java.util.List<GmCompilerOptimization> disabledOptimizations, boolean verbose)
Compiles a Green-Marl program.Analyst
createAnalyst()
Creates a new analyst.PgxFrame
createFrame(java.util.List<ColumnDescriptor> schema, java.util.Map<java.lang.String,java.lang.Iterable<?>> columnData, java.lang.String frameName)
Blocking version ofcreateFrameAsync(List, Map, String)
.PgxFuture<PgxFrame>
createFrameAsync(java.util.List<ColumnDescriptor> schema, java.util.Map<java.lang.String,java.lang.Iterable<?>> columnData, java.lang.String frameName)
Creates a new frame from client-side dataPgxFrameBuilder
createFrameBuilder(java.util.List<ColumnDescriptor> schema)
Creates a new frame builder with which it is possible to parameterize the building of the row frameGraphBuilder<java.lang.Integer>
createGraphBuilder()
Creates a graph builder with integer vertex IDs usingIdGenerationStrategy.AUTO_GENERATED
for edge ID generation strategy<ID extends java.lang.Comparable<ID>>
GraphBuilder<ID>createGraphBuilder(IdType idType)
Creates a graph builder with the given vertex ID type usingIdGenerationStrategy.AUTO_GENERATED
for edge ID generation strategy<ID extends java.lang.Comparable<ID>>
GraphBuilder<ID>createGraphBuilder(IdType idType, IdGenerationStrategy vertexIdGenerationStrategy, IdGenerationStrategy edgeIdGenerationStrategy)
Creates a graph builder with the given vertex ID type and Ids ModeGraphBuilder<java.lang.Integer>
createGraphBuilder(IdGenerationStrategy vertexIdGenerationStrategy, IdGenerationStrategy edgeIdGenerationStrategy)
Creates a graph builder with integer vertex IDs and Ids ModePgxGraphFromFramesCreator
createGraphFromFrames(java.lang.String graphName)
Creates a graph from frames creator with which it is possible to specify the different vertex and edge tables of a graph from frames.PgxGraph
createGraphFromFrames(java.lang.String graphName, PgxFrame vertexFrame, PgxFrame edgeFrame)
Creates an homogeneous graph from the specified frames that represent the vertices and edges of the graph.PgxFuture<PgxGraph>
createGraphFromFramesAsync(java.lang.String graphName, PgxFrame vertexFrame, PgxFrame edgeFrame)
Creates an homogeneous graph from the specified frames that represent the vertices and edges of the graph.<K,V>
PgxMap<K,V>createMap(PropertyType keyType, PropertyType valueType)
Blocking version ofcreateMapAsync(PropertyType, PropertyType)
.<K,V>
PgxMap<K,V>createMap(PropertyType keyType, PropertyType valueType, java.lang.String name)
Blocking version ofcreateMapAsync(PropertyType, PropertyType, String)
.<K,V>
PgxFuture<PgxMap<K,V>>createMapAsync(PropertyType keyType, PropertyType valueType)
Convenience method aroundcreateMapAsync(PropertyType, PropertyType, String)
passing name asnull
.<K,V>
PgxFuture<PgxMap<K,V>>createMapAsync(PropertyType keyType, PropertyType valueType, java.lang.String name)
Creates a map.<T> ScalarSequence<T>
createSequence(PropertyType contentType)
Blocking version ofcreateSequenceAsync(PropertyType)
.<T> ScalarSequence<T>
createSequence(PropertyType contentType, java.lang.String name)
Blocking version ofcreateSequenceAsync(PropertyType, String)
.<T> PgxFuture<ScalarSequence<T>>
createSequenceAsync(PropertyType contentType)
Convenience method aroundcreateSequenceAsync(PropertyType, String)
passing name asnull
.<T> PgxFuture<ScalarSequence<T>>
createSequenceAsync(PropertyType contentType, java.lang.String name)
Creates a sequence of scalars.<T> ScalarSet<T>
createSet(PropertyType contentType)
Blocking version ofcreateSetAsync(PropertyType)
.<T> ScalarSet<T>
createSet(PropertyType contentType, java.lang.String name)
Blocking version ofcreateSetAsync(PropertyType, String)
.<T> PgxFuture<ScalarSet<T>>
createSetAsync(PropertyType contentType)
Convenience method aroundcreateSetAsync(PropertyType, String)
passing name asnull
.<T> PgxFuture<ScalarSet<T>>
createSetAsync(PropertyType contentType, java.lang.String name)
Creates a set of scalars.PgxFuture<GraphConfig>
describeGraphAsync(oracle.pgx.loaders.location.GraphLocation location)
Describes the graph contained in a given graph locationGraphConfig
describeGraphFile(java.lang.String path)
Blocking version ofdescribeGraphFileAsync(String)
.GraphConfig
describeGraphFile(java.lang.String path, Format format)
Blocking version ofdescribeGraphFileAsync(String, Format)
.PgxFuture<GraphConfig>
describeGraphFileAsync(java.lang.String path)
Describes the graph contained in the file at the given path.PgxFuture<GraphConfig>
describeGraphFileAsync(java.lang.String path, Format format)
Describes the graph contained in the file at the given path.GraphConfig
describeGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath)
Blocking version ofdescribeGraphFilesAsync(String, String)
.GraphConfig
describeGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, Format format)
Blocking version ofdescribeGraphFilesAsync(String, String, Format)
.GraphConfig
describeGraphFiles(java.util.List<java.lang.String> filePaths)
Blocking version ofdescribeGraphFilesAsync(List)
.GraphConfig
describeGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths)
Blocking version ofdescribeGraphFilesAsync(List, List)
.GraphConfig
describeGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, Format format)
Blocking version ofdescribeGraphFilesAsync(List, List, Format)
.GraphConfig
describeGraphFiles(java.util.List<java.lang.String> filePaths, Format format)
Blocking version ofdescribeGraphFilesAsync(List, Format)
.PgxFuture<GraphConfig>
describeGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath)
Describes the graph contained in the files at the given paths.PgxFuture<GraphConfig>
describeGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, Format format)
Describes the graph contained in the files at the given paths.PgxFuture<GraphConfig>
describeGraphFilesAsync(java.util.List<java.lang.String> filePaths)
Describes the graph contained in the files at the given paths.PgxFuture<GraphConfig>
describeGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths)
Describes the graph contained in the files at the given paths.PgxFuture<GraphConfig>
describeGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, Format format)
Describes the graph contained in the files at the given paths.PgxFuture<GraphConfig>
describeGraphFilesAsync(java.util.List<java.lang.String> filePaths, Format format)
Describes the graph contained in the files at the given paths.PgxFuture<java.lang.Void>
destroyAsync()
Destroys the active session.PgqlResultSet
executePgql(java.lang.String pgqlString)
Blocking version ofexecutePgqlAsync(String)
.PgxFuture<PgqlResultSet>
executePgqlAsync(java.lang.String pgqlString)
Submits any query with a ON-clause.Operation
explainPgql(java.lang.String pgqlString)
Blocking version ofexplainPgql(String)
.PgxFuture<Operation>
explainPgqlAsync(java.lang.String pgqlString)
Explain the execution plan of a pattern matching query.java.util.Set<java.lang.String>
getAvailableCompiledProgramIds()
Blocking version ofgetAvailableCompiledProgramIdsAsync()
.PgxFuture<java.util.Set<java.lang.String>>
getAvailableCompiledProgramIdsAsync()
Gets the set of available compiled program IDs.java.util.Deque<GraphMetaData>
getAvailableSnapshots(PgxGraph snapshot)
Blocking version ofgetAvailableSnapshotsAsync(PgxGraph)
.PgxFuture<java.util.Deque<GraphMetaData>>
getAvailableSnapshotsAsync(PgxGraph graph)
Gets a list of theGraphMetaData
information of available in-memory snapshots ofgraph
.CompiledProgram
getCompiledProgram(java.lang.String id)
Blocking version ofgetCompiledProgramAsync(String)
.PgxFuture<CompiledProgram>
getCompiledProgramAsync(java.lang.String id)
Gets a compiled program by ID.ExecutionEnvironment
getExecutionEnvironment()
Gets the execution environment for this session.PgxGraph
getGraph(java.lang.String name)
Blocking version ofgetGraphAsync(String)
.PgxGraph
getGraph(Namespace namespace, java.lang.String name)
Blocking version ofgetGraphAsync(String)
.PgxFuture<PgxGraph>
getGraphAsync(java.lang.String name)
References a graph with namename
loaded inside PGX.PgxFuture<PgxGraph>
getGraphAsync(Namespace namespace, java.lang.String name)
References a graph with namename
within the given namespace: - ifnamespace
isNamespace.PRIVATE
, than the search occurs on already referenced snapshots of the graph with namename
and the most recent snapshot is returned - ifnamespace
isNamespace.PUBLIC
, then the search occurs on published graphs and the most recent snapshot of the published graph with namename
is returned - ifnamespace
isnull
, then the PRIVATE namespace is searched first and, if no snapshot is found, the PUBLIC namespace is then searched, according to the shadowing rulesjava.util.List<java.lang.String>
getGraphs(Namespace namespace)
Blocking version ofgetGraphsAsync(Namespace)
.PgxFuture<java.util.List<java.lang.String>>
getGraphsAsync(Namespace namespace)
Returns a collection of graph names accessible under the given namespace.java.lang.String
getId()
Gets the session ID.java.lang.Long
getIdleTimeout()
Gets the idle timeout of this session.java.lang.String
getName()
Alias forgetId()
PgqlResultSet
getPgqlResultSet(java.lang.String id)
Blocking version ofgetPgqlResultSetAsync(String)
.PgxFuture<PgqlResultSet>
getPgqlResultSetAsync(java.lang.String id)
Gets a PGQL result set by ID.ServerInstance
getServerInstance()
Gets the server instance.SessionContext
getSessionContext()
Gets the context describing the sessionjava.lang.String
getSource()
Gets the source.java.lang.Long
getTaskTimeout()
Gets the task timeout of this session.PgxPreparedStatement
preparePgql(java.lang.String pgqlString)
Blocking version ofpreparePgqlAsync(String)
.PgxFuture<PgxPreparedStatement>
preparePgqlAsync(java.lang.String pgqlString)
Prepares a pattern matching query with a ON-clause.PgqlResultSet
queryPgql(java.lang.String pgqlString)
Blocking version ofqueryPgql(String)
.PgxFuture<PgqlResultSet>
queryPgqlAsync(java.lang.String pgqlString)
Submits a pattern matching query with a ON-clause.PgxGenericFrameReader
readFrame()
Creates a new frame reader with which it is possible to parameterize the loading of the row framePgxGraph
readGraphAsOf(GraphConfig config, long creationTimestamp)
Blocking version ofreadGraphAsOfAsync(GraphConfig, long)
.PgxGraph
readGraphAsOf(GraphConfig config, long creationTimestamp, java.lang.String newGraphName)
Blocking version ofreadGraphAsOfAsync(GraphConfig, long, String)
.PgxGraph
readGraphAsOf(GraphConfig config, GraphMetaData metaData)
Blocking version ofreadGraphAsOfAsync(GraphConfig, GraphMetaData)
.PgxGraph
readGraphAsOf(GraphConfig config, GraphMetaData metaData, java.lang.String newGraphName)
Blocking version ofreadGraphAsOfAsync(GraphConfig, GraphMetaData, String)
.PgxFuture<PgxGraph>
readGraphAsOfAsync(GraphConfig config, long creationTimestamp)
Reads a graph and its properties of a specific version (creationTimestamp) into memory.PgxFuture<PgxGraph>
readGraphAsOfAsync(GraphConfig config, long creationTimestamp, java.lang.String newGraphName)
Reads a graph and its properties of a specific version (creationTimestamp) into memory.PgxFuture<PgxGraph>
readGraphAsOfAsync(GraphConfig config, GraphMetaData metaData)
Reads a graph and its properties of a specific version (metaData) into memory.PgxFuture<PgxGraph>
readGraphAsOfAsync(GraphConfig config, GraphMetaData metaData, java.lang.String newGraphName)
Reads a graph and its properties of a specific version (metaData) into memory.PgxGraph
readGraphByName(java.lang.String schemaName, java.lang.String graphName, GraphSource source)
Blocking version ofreadGraphByNameAsync(String, String, GraphSource, ReadGraphOption...)
.PgxGraph
readGraphByName(java.lang.String schemaName, java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Blocking version ofreadGraphByNameAsync(String, String, GraphSource, ReadGraphOption...)
.PgxGraph
readGraphByName(java.lang.String name, GraphSource source)
Blocking version ofreadGraphByNameAsync(String, GraphSource, ReadGraphOption...)
.PgxGraph
readGraphByName(java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Blocking version ofreadGraphByNameAsync(String, GraphSource, ReadGraphOption...)
.PgxFuture<PgxGraph>
readGraphByNameAsync(java.lang.String schemaName, java.lang.String graphName, GraphSource source)
Reads a graph identified by the given name into memory.PgxFuture<PgxGraph>
readGraphByNameAsync(java.lang.String schemaName, java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Reads a graph identified by the given schema name and graph name into memory.PgxFuture<PgxGraph>
readGraphByNameAsync(java.lang.String graphName, GraphSource source)
Reads a graph identified by the given name into memory.PgxFuture<PgxGraph>
readGraphByNameAsync(java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Reads a graph identified by the given name into memory.PgxGraph
readGraphFile(java.lang.String path)
Blocking version ofreadGraphFileAsync(String)
.PgxGraph
readGraphFile(java.lang.String path, java.lang.String newGraphName)
Blocking version ofreadGraphFileAsync(String, String)
.PgxGraph
readGraphFile(java.lang.String path, Format format)
Blocking version ofreadGraphFileAsync(String, Format)
.PgxGraph
readGraphFile(java.lang.String path, Format format, java.lang.String newGraphName)
Blocking version ofreadGraphFileAsync(String, Format, String)
.PgxFuture<PgxGraph>
readGraphFileAsync(java.lang.String path)
Loads the graph contained in the file at the given path.PgxFuture<PgxGraph>
readGraphFileAsync(java.lang.String path, java.lang.String newGraphName)
Loads the graph contained in the file at the given path.PgxFuture<PgxGraph>
readGraphFileAsync(java.lang.String path, Format format)
Loads the graph contained in the file at the given path.PgxFuture<PgxGraph>
readGraphFileAsync(java.lang.String path, Format format, java.lang.String newGraphName)
Loads the graph contained in the files at the given path.PgxGraph
readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath)
Blocking version ofreadGraphFilesAsync(String, String)
.PgxGraph
readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, java.lang.String newGraphName)
Blocking version ofreadGraphFilesAsync(String, String, String)
.PgxGraph
readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, Format format)
Blocking version ofreadGraphFilesAsync(String, String, Format)
.PgxGraph
readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, Format format, java.lang.String newGraphName)
Blocking version ofreadGraphFilesAsync(String, String, Format, String)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> filePaths)
Blocking version ofreadGraphFilesAsync(List)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> filePaths, java.lang.String newGraphName)
Blocking version ofreadGraphFilesAsync(List, String)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths)
Blocking version ofreadGraphFilesAsync(List, List)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, java.lang.String newGraphName)
Blocking version ofreadGraphFilesAsync(List, List, String)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, Format format)
Blocking version ofreadGraphFilesAsync(List, List, Format)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, Format format, java.lang.String newGraphName)
Blocking version ofreadGraphFilesAsync(List, List, Format, String)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> filePaths, Format format)
Blocking version ofreadGraphFilesAsync(List, Format)
.PgxGraph
readGraphFiles(java.util.List<java.lang.String> filePaths, Format format, java.lang.String newGraphName)
Blocking version ofreadGraphFilesAsync(List, String)
.PgxFuture<PgxGraph>
readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, Format format)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, Format format, java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> filePaths)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> filePaths, java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, Format format)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, Format format, java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> filePaths, Format format)
Loads the graph contained in the files at the given paths.PgxFuture<PgxGraph>
readGraphFilesAsync(java.util.List<java.lang.String> filePaths, Format format, java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PgxGraph
readGraphWithProperties(java.lang.String path)
Blocking version ofreadGraphWithPropertiesAsync(String)
.PgxGraph
readGraphWithProperties(java.lang.String path, java.lang.String newGraphName)
Blocking version ofreadGraphWithPropertiesAsync(String, String)
.PgxGraph
readGraphWithProperties(GraphConfig config)
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig)
.PgxGraph
readGraphWithProperties(GraphConfig config, boolean updateIfNotFresh)
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, boolean)
.PgxGraph
readGraphWithProperties(GraphConfig config, boolean updateIfNotFresh, java.lang.String newGraphName)
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, boolean, String)
.PgxGraph
readGraphWithProperties(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit)
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, long, TimeUnit)
.PgxGraph
readGraphWithProperties(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit, boolean blockIfFull, java.lang.String newGraphName)
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, long, TimeUnit, boolean, String)
.PgxGraph
readGraphWithProperties(GraphConfig config, java.lang.String newGraphName)
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, String)
.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(java.lang.String path)
Reads a graph and its properties, specified by a path to a graph config, into memory.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(java.lang.String path, java.lang.String newGraphName)
Reads a graph and its properties, specified by a path to a graph config, into memory.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(GraphConfig config)
Reads a graph and its properties, specified in the graph config, into memory.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(GraphConfig config, boolean updateIfNotFresh)
Reads a graph and its properties, specified in the graph config, into memory.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(GraphConfig config, boolean updateIfNotFresh, java.lang.String newGraphName)
Reads a graph and its properties, specified in the graph config, into memory.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit)
Reads a graph and its properties, specified in the graph config, into memory.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit, boolean blockIfFull, java.lang.String newGraphName)
Reads a graph and its properties, specified in the graph config, into memory.PgxFuture<PgxGraph>
readGraphWithPropertiesAsync(GraphConfig config, java.lang.String newGraphName)
Reads a graph and its properties, specified a graph config, into memory.GenericSubgraphReader
readSubgraph()
Creates a new subgraph reader with which it is possible to parameterize the loading of a subgraphvoid
registerKeystore(java.lang.String keystorePath, char[] keystorePassword)
Register the keystore to read needed secrets.java.util.List<?>
runConcurrently(java.util.List<java.util.function.Supplier<PgxFuture<?>>> asyncRequest)
Blocking version of#runConcurrentlyAsync(List<Supplier>)
.PgxFuture<java.util.List<?>>
runConcurrentlyAsync(java.util.List<java.util.function.Supplier<PgxFuture<?>>> asyncRequestsSuppliers)
Submits lists of supplied functions to run concurrently in the servervoid
setSnapshot(PgxGraph graph, long creationTimestamp)
Blocking version ofsetSnapshotAsync(PgxGraph, long)
.void
setSnapshot(PgxGraph graph, long creationTimestamp, boolean forceDeleteProperties)
Blocking version ofsetSnapshotAsync(PgxGraph, long, boolean)
.void
setSnapshot(PgxGraph graph, GraphMetaData metaData)
Blocking version ofsetSnapshotAsync(PgxGraph, GraphMetaData)
.void
setSnapshot(PgxGraph graph, GraphMetaData metaData, boolean forceDeleteProperties)
Blocking version ofsetSnapshotAsync(PgxGraph, GraphMetaData, boolean)
.PgxFuture<java.lang.Void>
setSnapshotAsync(PgxGraph graph, long creationTimestamp)
Sets a graph to a specific snapshot.PgxFuture<java.lang.Void>
setSnapshotAsync(PgxGraph graph, long creationTimestamp, boolean forceDeleteTransientProperties)
Sets a graph to a specific snapshot.PgxFuture<java.lang.Void>
setSnapshotAsync(PgxGraph graph, GraphMetaData metaData)
Sets a graph to a specific snapshot.PgxFuture<java.lang.Void>
setSnapshotAsync(PgxGraph graph, GraphMetaData metaData, boolean forceDeleteTransientProperties)
Sets a graph to a specific snapshot.java.lang.String
toString()
-
Methods inherited from class oracle.pgx.api.PgxManagedObject
equals, hashCode
-
Methods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
-
-
-
Field Detail
-
LATEST_SNAPSHOT
public static final long LATEST_SNAPSHOT
the timestamp of the most recent snapshot: used to easily move to the newest snapshot as a second argument ofsetSnapshot(PgxGraph, long)
;}- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
Gets the session ID.- Returns:
- the Session ID
-
getSessionContext
public SessionContext getSessionContext()
Gets the context describing the session- Returns:
- the session context
-
getSource
public java.lang.String getSource()
Gets the source.- Returns:
- the source
-
getName
public java.lang.String getName()
Alias forgetId()
- Specified by:
getName
in classPgxManagedObject
- Returns:
- identifier of this session
-
getIdleTimeout
public java.lang.Long getIdleTimeout()
Gets the idle timeout of this session. A value ofnull
indicates this session uses the default session idle timeout as specified by the PGX instance.- Returns:
- the idle timeout in seconds. May be
null
.
-
getTaskTimeout
public java.lang.Long getTaskTimeout()
Gets the task timeout of this session. A value ofnull
indicates this session uses the default session task timeout as specified by the PGX instance.- Returns:
- the task timeout in seconds. May be
null
.
-
getServerInstance
public ServerInstance getServerInstance()
Gets the server instance.- Returns:
- the server instance.
-
registerKeystore
public void registerKeystore(java.lang.String keystorePath, char[] keystorePassword)
Register the keystore to read needed secrets.- Parameters:
keystorePath
- the path to the keystore to register.keystorePassword
- the path to the keystore to register.
-
createAnalyst
public Analyst createAnalyst()
Creates a new analyst. TheAnalyst
gives access to all built-in algorithms.- Returns:
- the analyst
-
getExecutionEnvironment
public ExecutionEnvironment getExecutionEnvironment()
Gets the execution environment for this session. TheExecutionEnvironment
gives access to detailed scheduling configuration- Returns:
- the execution environment
-
createFrameBuilder
public PgxFrameBuilder createFrameBuilder(java.util.List<ColumnDescriptor> schema) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Creates a new frame builder with which it is possible to parameterize the building of the row frame- Parameters:
schema
- the schema of the frame to be built- Returns:
- a frame builder object with which it is possible to parameterize the building
- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.- Since:
- 21.3
-
createFrame
public PgxFrame createFrame(java.util.List<ColumnDescriptor> schema, java.util.Map<java.lang.String,java.lang.Iterable<?>> columnData, java.lang.String frameName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofcreateFrameAsync(List, Map, String)
. CallscreateFrameAsync(List, Map, String)
and waits for the returnedPgxFuture
to complete.- Parameters:
schema
- the schema of the frame to buildcolumnData
- the data of the frame to buildframeName
- the name of the frame to build- Returns:
- the frame built
- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.- Since:
- 21.3
-
createFrameAsync
public PgxFuture<PgxFrame> createFrameAsync(java.util.List<ColumnDescriptor> schema, java.util.Map<java.lang.String,java.lang.Iterable<?>> columnData, java.lang.String frameName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Creates a new frame from client-side data- Parameters:
schema
- the schema of the frame to buildcolumnData
- the data of the frame to buildframeName
- the name of the frame to build- Returns:
- the frame built
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
- Since:
- 21.3
-
readFrame
public PgxGenericFrameReader readFrame()
Creates a new frame reader with which it is possible to parameterize the loading of the row frame- Returns:
- a frame reader object with which it is possible to parameterize the loading
- Since:
- 3.2.0
-
createGraphFromFrames
public PgxGraphFromFramesCreator createGraphFromFrames(java.lang.String graphName)
Creates a graph from frames creator with which it is possible to specify the different vertex and edge tables of a graph from frames.- Parameters:
graphName
- the name of the graph to create- Returns:
- a graph from frames creator object
- Since:
- 3.2.0
-
createGraphFromFramesAsync
public PgxFuture<PgxGraph> createGraphFromFramesAsync(java.lang.String graphName, PgxFrame vertexFrame, PgxFrame edgeFrame)
Creates an homogeneous graph from the specified frames that represent the vertices and edges of the graph.- Parameters:
graphName
- the name of the graph to createvertexFrame
- the frame that contains the vertices of the graphedgeFrame
- the frame that contains the edges of the graph- Returns:
- the newly created graph
-
createGraphFromFrames
public PgxGraph createGraphFromFrames(java.lang.String graphName, PgxFrame vertexFrame, PgxFrame edgeFrame) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Creates an homogeneous graph from the specified frames that represent the vertices and edges of the graph.- Parameters:
graphName
- the name of the graph to createvertexFrame
- the frame that contains the vertices of the graphedgeFrame
- the frame that contains the edges of the graph- Returns:
- the newly created graph
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
-
createGraphBuilder
public GraphBuilder<java.lang.Integer> createGraphBuilder(IdGenerationStrategy vertexIdGenerationStrategy, IdGenerationStrategy edgeIdGenerationStrategy)
Creates a graph builder with integer vertex IDs and Ids Mode- Parameters:
vertexIdGenerationStrategy
- the vertices Id generation strategy to be usededgeIdGenerationStrategy
- the edges Id generation strategy to be used- Returns:
- an empty graph builder instance
- Since:
- 3.1.0
- See Also:
createGraphBuilder(IdType)
-
createGraphBuilder
public <ID extends java.lang.Comparable<ID>> GraphBuilder<ID> createGraphBuilder(IdType idType, IdGenerationStrategy vertexIdGenerationStrategy, IdGenerationStrategy edgeIdGenerationStrategy)
Creates a graph builder with the given vertex ID type and Ids Mode- Type Parameters:
ID
- the type of the vertex ID- Parameters:
idType
- the vertex ID typevertexIdGenerationStrategy
- the vertices Id generation strategy to be usededgeIdGenerationStrategy
- the edges Id generation strategy to be used- Returns:
- an empty graph builder instance
- Since:
- 3.1.0
-
createGraphBuilder
public GraphBuilder<java.lang.Integer> createGraphBuilder()
Creates a graph builder with integer vertex IDs usingIdGenerationStrategy.AUTO_GENERATED
for edge ID generation strategy- Returns:
- an empty graph builder instance
- See Also:
createGraphBuilder(IdType)
-
createGraphBuilder
public <ID extends java.lang.Comparable<ID>> GraphBuilder<ID> createGraphBuilder(IdType idType)
Creates a graph builder with the given vertex ID type usingIdGenerationStrategy.AUTO_GENERATED
for edge ID generation strategy- Type Parameters:
ID
- the type of the vertex ID- Parameters:
idType
- the vertex ID type- Returns:
- an empty graph builder instance
-
destroyAsync
public PgxFuture<java.lang.Void> destroyAsync()
Destroys the active session.- Specified by:
destroyAsync
in classDestroyable
- Returns:
- a future which will be completed once the destruction request finishes.
-
describeGraphFileAsync
public PgxFuture<GraphConfig> describeGraphFileAsync(java.lang.String path)
Describes the graph contained in the file at the given path.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
path
- graph file path- Returns:
- configuration which can be used to load the graph
-
describeGraphFileAsync
public PgxFuture<GraphConfig> describeGraphFileAsync(java.lang.String path, @Nullable Format format)
Describes the graph contained in the file at the given path.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
path
- graph file pathformat
- file format- Returns:
- configuration which can be used to load the graph
-
describeGraphFilesAsync
public PgxFuture<GraphConfig> describeGraphFilesAsync(java.util.List<java.lang.String> filePaths)
Describes the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
filePaths
- paths to the files- Returns:
- configuration which can be used to load the graph
-
describeGraphFilesAsync
public PgxFuture<GraphConfig> describeGraphFilesAsync(java.util.List<java.lang.String> filePaths, @Nullable Format format)
Describes the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
filePaths
- paths to the files- Returns:
- configuration which can be used to load the graph
-
describeGraphFilesAsync
public PgxFuture<GraphConfig> describeGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath)
Describes the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
vertexFilePath
- path to the vertex fileedgeFilePath
- path to the edge file- Returns:
- configuration which can be used to load the graph
-
describeGraphFilesAsync
public PgxFuture<GraphConfig> describeGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable Format format)
Describes the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
vertexFilePath
- path to the vertex fileedgeFilePath
- path to the edge fileformat
- file format- Returns:
- configuration which can be used to load the graph
-
describeGraphFilesAsync
public PgxFuture<GraphConfig> describeGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths)
Describes the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
vertexFilePaths
- paths to the vertex filesedgeFilePaths
- paths to the edge files- Returns:
- configuration which can be used to load the graph
-
describeGraphFilesAsync
public PgxFuture<GraphConfig> describeGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable Format format)
Describes the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
vertexFilePaths
- paths to the vertex filesedgeFilePaths
- paths to the edge filesformat
- file format- Returns:
- configuration which can be used to load the graph
-
describeGraphAsync
public PgxFuture<GraphConfig> describeGraphAsync(oracle.pgx.loaders.location.GraphLocation location)
Describes the graph contained in a given graph locationPGX will try to detect the graph configuration. If the configuration cannot be determined or if the graph format does not match the given format, the future is completed exceptionally.
- Parameters:
location
- the graph location- Returns:
- configuration which can be used to load the graph
-
readGraphFileAsync
public PgxFuture<PgxGraph> readGraphFileAsync(java.lang.String path)
Loads the graph contained in the file at the given path.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
path
- graph file path- Returns:
- graph at the given location
- See Also:
describeGraphFileAsync(String)
-
readGraphFileAsync
public PgxFuture<PgxGraph> readGraphFileAsync(java.lang.String path, @Nullable Format format)
Loads the graph contained in the file at the given path.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
path
- graph file pathformat
- file format- Returns:
- graph at the given location
- See Also:
describeGraphFileAsync(String, Format)
-
readGraphFileAsync
public PgxFuture<PgxGraph> readGraphFileAsync(java.lang.String path, @Nullable java.lang.String newGraphName)
Loads the graph contained in the file at the given path.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
path
- graph file pathnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFileAsync(String)
-
readGraphFileAsync
public PgxFuture<PgxGraph> readGraphFileAsync(java.lang.String path, @Nullable Format format, @Nullable java.lang.String newGraphName)
Loads the graph contained in the files at the given path.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
path
- graph file pathformat
- file formatnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(String, String, Format)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> filePaths)
Loads the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
filePaths
- paths to the files- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> filePaths, @Nullable Format format)
Loads the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
filePaths
- paths to the vertex filesformat
- file format- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List, Format)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> filePaths, @Nullable java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
filePaths
- paths to the vertex filesnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> filePaths, @Nullable Format format, @Nullable java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
filePaths
- paths to the graph filesformat
- file formatnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List, Format)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath)
Loads the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
vertexFilePath
- path to the vertex fileedgeFilePath
- path to the edge file- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(String, String)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable Format format)
Loads the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
vertexFilePath
- path to the vertex fileedgeFilePath
- path to the edge fileformat
- file format- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(String, String, Format)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
vertexFilePath
- path to the vertex fileedgeFilePath
- path to the edge filenewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(String, String)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable Format format, @Nullable java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
vertexFilePath
- path to the vertex fileedgeFilePath
- path to the edge fileformat
- file formatnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(String, String, Format)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths)
Loads the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
vertexFilePaths
- paths to the vertex filesedgeFilePaths
- paths to the edge files- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List, List)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable Format format)
Loads the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
vertexFilePaths
- paths to the vertex filesedgeFilePaths
- paths to the edge filesformat
- file format- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List, List, Format)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PGX will try to detect the file format and the graph configuration. If the format or the configuration cannot be determined, the future is completed exceptionally.
- Parameters:
vertexFilePaths
- paths to the vertex filesedgeFilePaths
- paths to the edge filesnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List, List)
-
readGraphFilesAsync
public PgxFuture<PgxGraph> readGraphFilesAsync(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable Format format, @Nullable java.lang.String newGraphName)
Loads the graph contained in the files at the given paths.PGX will try to detect the graph configuration. If the configuration cannot be determined or if the file format does not match the given format, the future is completed exceptionally.
- Parameters:
vertexFilePaths
- paths to the vertex filesedgeFilePaths
- paths to the edge filesformat
- file formatnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- Returns:
- graph at the given location
- See Also:
describeGraphFilesAsync(List, List, Format)
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(java.lang.String path)
Reads a graph and its properties, specified by a path to a graph config, into memory.- Parameters:
path
- a path to a graph config, e.g. 'path/to/config.json' or 'http://myserver.com/my-config.json'- See Also:
- Path syntax documentation
-
readSubgraph
public GenericSubgraphReader readSubgraph()
Creates a new subgraph reader with which it is possible to parameterize the loading of a subgraph- Returns:
- a subgraph reader object with which it is possible to parameterize the loading
- Since:
- 22.1.1
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(java.lang.String path, java.lang.String newGraphName)
Reads a graph and its properties, specified by a path to a graph config, into memory.- Parameters:
path
- a path to a graph config, e.g. 'path/to/config.json' or 'http://myserver.com/my-config.json'newGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- See Also:
- Path syntax documentation
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(GraphConfig config)
Reads a graph and its properties, specified in the graph config, into memory.- Parameters:
config
- the graph config
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(GraphConfig config, @Nullable java.lang.String newGraphName)
Reads a graph and its properties, specified a graph config, into memory.- Parameters:
config
- the graph confignewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(GraphConfig config, boolean updateIfNotFresh)
Reads a graph and its properties, specified in the graph config, into memory.- Parameters:
config
- the graph configupdateIfNotFresh
- if a newer data version exists in the backing data source (seePgxGraph.isFresh()
), this flag tells whether to read it and create another snapshot inside PGX. If the "snapshots_source" field ofconfig
isSnapshotsSource.REFRESH
, the returned graph may have multiple snapshots, depending on whether previous reads with the sameconfig
occurred; otherwise, if the "snapshots_source" field isSnapshotsSource.CHANGE_SET
, only the most recent snapshot (either pre-existing or freshly read) will be visible
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(GraphConfig config, boolean updateIfNotFresh, java.lang.String newGraphName)
Reads a graph and its properties, specified in the graph config, into memory.- Parameters:
config
- the graph configupdateIfNotFresh
- if a newer data version exists in the backing data source (seePgxGraph.isFresh()
), this flag tells whether to read it and create another snapshot inside PGX. If the "snapshots_source" field ofconfig
isSnapshotsSource.REFRESH
, the returned graph may have multiple snapshots, depending on whether previous reads with the sameconfig
occurred; otherwise, if the "snapshots_source" field isSnapshotsSource.CHANGE_SET
, only the most recent snapshot (either pre-existing or freshly read) will be visiblenewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit)
Reads a graph and its properties, specified in the graph config, into memory.- Parameters:
config
- the graph configmaxAge
- if another snapshot of the given graph already exists, the age of the latest existing snapshot will be compared to the given maxAge. If the latest snapshot is in the given range, it will be returned, otherwise a new snapshot will be created.maxAgeTimeUnit
- the time unit of the maxAge parameter
-
readGraphWithPropertiesAsync
public PgxFuture<PgxGraph> readGraphWithPropertiesAsync(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit, boolean blockIfFull, java.lang.String newGraphName)
Reads a graph and its properties, specified in the graph config, into memory.- Parameters:
config
- the graph configmaxAge
- if another snapshot of the given graph already exists, the age of the latest existing snapshot will be compared to the given maxAge. If the latest snapshot is in the given range, it will be returned, otherwise a new snapshot will be created.maxAgeTimeUnit
- the time unit of the maxAge parameterblockIfFull
- iftrue
and a new snapshot needs to be created but no more snapshots are allowed by the server configuration, the returned future will not complete until space becomes available. If full and this flage isfalse
, the returned future will complete exceptionally instead.newGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.
-
readGraphByNameAsync
public PgxFuture<PgxGraph> readGraphByNameAsync(java.lang.String graphName, GraphSource source)
Reads a graph identified by the given name into memory.- Parameters:
graphName
- the name of the graphsource
- type of the source from where to load the graph from- Since:
- 21.3.0
-
readGraphByNameAsync
public PgxFuture<PgxGraph> readGraphByNameAsync(java.lang.String schemaName, java.lang.String graphName, GraphSource source)
Reads a graph identified by the given name into memory.- Parameters:
schemaName
- the name of the schemagraphName
- the name of the graphsource
- type of the source from where to load the graph from- Since:
- 23.1.0
-
readGraphByNameAsync
public PgxFuture<PgxGraph> readGraphByNameAsync(java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Reads a graph identified by the given name into memory.- Parameters:
graphName
- the name of the graphsource
- type of the source from where to load the graphoptions
- options for loading the graph. List of possible ReadGraphOptions below:OPTIMIZED_FOR_UPDATES: Specify if the loaded graph will be optimized for updates (Default).
OPTIMIZED_FOR_READ: Specify if the loaded graph will be optimized for reads.
SYNCHRONIZABLE: If used and graph cannot be synchronized, PGX will throw an Exception.
ON_MISSING_VERTEX_IGNORE_EDGE: Ignore edges with missing source/destination vertex (without logging).
ON_MISSING_VERTEX_IGNORE_EDGE_LOG: Ignore edges with missing source/destination vertex and log every ignored edge.
ON_MISSING_VERTEX_IGNORE_EDGE_LOG_ONCE: Ignore edges with missing source/destination vertex and log the first ignored edge.
ON_MISSING_VERTEX_ERROR: Throw an error when an edge misses source/destination vertex (Default).
- Since:
- 22.2
-
readGraphByNameAsync
public PgxFuture<PgxGraph> readGraphByNameAsync(java.lang.String schemaName, java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Reads a graph identified by the given schema name and graph name into memory.- Parameters:
schemaName
- the name of the schemagraphName
- the name of the graphsource
- type of the source from where to load the graphoptions
- options for loading the graph. List of possible ReadGraphOptions below:OPTIMIZED_FOR_UPDATES: Specify if the loaded graph will be optimized for updates (Default).
OPTIMIZED_FOR_READ: Specify if the loaded graph will be optimized for reads.
SYNCHRONIZABLE: If used and graph cannot be synchronized, PGX will throw an Exception.
ON_MISSING_VERTEX_IGNORE_EDGE: Ignore edges with missing source/destination vertex (without logging).
ON_MISSING_VERTEX_IGNORE_EDGE_LOG: Ignore edges with missing source/destination vertex and log every ignored edge.
ON_MISSING_VERTEX_IGNORE_EDGE_LOG_ONCE: Ignore edges with missing source/destination vertex and log the first ignored edge.
ON_MISSING_VERTEX_ERROR: Throw an error when an edge misses source/destination vertex (Default).
- Since:
- 23.1.0
-
readGraphAsOfAsync
public PgxFuture<PgxGraph> readGraphAsOfAsync(GraphConfig config, GraphMetaData metaData)
Reads a graph and its properties of a specific version (metaData) into memory.- Parameters:
config
- the graph configmetaData
- the metaData object returned by(GraphConfig)
identifying the version to be checked out- See Also:
setSnapshotAsync(PgxGraph, GraphMetaData)
-
readGraphAsOfAsync
public PgxFuture<PgxGraph> readGraphAsOfAsync(GraphConfig config, GraphMetaData metaData, java.lang.String newGraphName)
Reads a graph and its properties of a specific version (metaData) into memory.- Parameters:
config
- the graph configmetaData
- the metaData object returned by(GraphConfig)
identifying the version to be checked outnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- See Also:
setSnapshotAsync(PgxGraph, GraphMetaData)
-
readGraphAsOfAsync
public PgxFuture<PgxGraph> readGraphAsOfAsync(GraphConfig config, long creationTimestamp)
Reads a graph and its properties of a specific version (creationTimestamp) into memory. The creationTimestamp must be a valid version of the graph.- Parameters:
config
- the graph configcreationTimestamp
- the creation timestamp (milliseconds since jan 1st 1970) identifying the version to be checked out- See Also:
setSnapshotAsync(PgxGraph, long)
-
readGraphAsOfAsync
public PgxFuture<PgxGraph> readGraphAsOfAsync(GraphConfig config, long creationTimestamp, java.lang.String newGraphName)
Reads a graph and its properties of a specific version (creationTimestamp) into memory. The creationTimestamp must be a valid version of the graph.- Parameters:
config
- the graph configcreationTimestamp
- the creation timestamp (milliseconds since jan 1st 1970) identifying the version to be checked outnewGraphName
- how the graph should be named. Ifnull
, a name will be generated. If a graph with that name already exists, the returned future will complete exceptionally.- See Also:
setSnapshotAsync(PgxGraph, long)
-
getGraphAsync
public PgxFuture<PgxGraph> getGraphAsync(java.lang.String name)
References a graph with namename
loaded inside PGX. The search for the snapshot to return is done according to the following rules: - first, PGX searches among the snapshots the session is already referencing, if it finds any it returns the most recent one belonging to the graph with namename
- if no graph with namename
is already being referenced, PGX searches among published graphs and, if the search is successful, it returns the most recent snapshots of the published graph with namename
Multiple calls of this method with the same parameters will return different
PgxGraph
objects referencing the same graph, with the server keeping track of how many references a session has to each graph. Therefore, a graph is released within the server either if: - all the references are moved to another graph (e.g. viasetSnapshot(PgxGraph, long)
- thePgxGraph.destroy()
method is called on one reference: note that this invalidates all referencesThe graph will be first looked up in the session private namespace, if it is not found there it will be looked up in the public namespace. If a graph with the given name is not found in either the private or public namespace,
null
will be returned. A call to this will be semantically the same as the following code:PgxGraph g = session.getGraph(Namespace.PRIVATE, name); if (g == null) { g = session.getGraph(Namespace.PUBLIC, name); }
- Parameters:
name
- the name of the graph- Returns:
- the graph with the given name.
null
if no such graph exists - See Also:
getGraphAsync(Namespace, String)
,Namespace.PRIVATE
,Namespace.PUBLIC
-
getGraphAsync
public PgxFuture<PgxGraph> getGraphAsync(Namespace namespace, java.lang.String name)
References a graph with namename
within the given namespace: - ifnamespace
isNamespace.PRIVATE
, than the search occurs on already referenced snapshots of the graph with namename
and the most recent snapshot is returned - ifnamespace
isNamespace.PUBLIC
, then the search occurs on published graphs and the most recent snapshot of the published graph with namename
is returned - ifnamespace
isnull
, then the PRIVATE namespace is searched first and, if no snapshot is found, the PUBLIC namespace is then searched, according to the shadowing rulesMultiple calls of this method with the same parameters will return different
PgxGraph
objects referencing the same graph, with the server keeping track of how many references a session has to each graph. Therefore, a graph is released within the server either if: - all the references are moved to another graph (e.g. viasetSnapshot(PgxGraph, long)
- thePgxGraph.destroy()
method is called on one reference: note that this invalidates all references- Parameters:
namespace
- the namespace where to look up the graph. can be null, which implies same behavior asgetGraphAsync(String)
name
- the name of the graph- Returns:
- the graph with the given name from the given namespace.
null
if no such graph exists - Since:
- 19.4.0
- See Also:
getGraphAsync(String)
,Namespace.PRIVATE
,Namespace.PUBLIC
-
getGraphsAsync
public PgxFuture<java.util.List<java.lang.String>> getGraphsAsync(Namespace namespace)
Returns a collection of graph names accessible under the given namespace.- Returns:
- a collection of accessible graphs
- Since:
- 19.4.0
-
compileProgramCodeAsync
public PgxFuture<CompiledProgram> compileProgramCodeAsync(java.lang.String code)
Compiles a Green-Marl program for parallel execution with all optimizations enabled.- Parameters:
code
- the Green-Marl code to compile
-
compileProgramCodeAsync
public PgxFuture<CompiledProgram> compileProgramCodeAsync(java.lang.String code, boolean overwrite)
Compiles a Green-Marl program for parallel execution with all optimizations enabled.- Parameters:
code
- the Green-Marl code to compileoverwrite
- if the procedure in the given code already exists, overwrite iftrue
, throw an exception otherwise
-
compileProgramCodeAsync
public PgxFuture<CompiledProgram> compileProgramCodeAsync(java.lang.String code, boolean overwrite, boolean parallel, java.util.List<GmCompilerOptimization> disabledOptimizations, boolean verbose)
Compiles a Green-Marl program.- Parameters:
code
- the Green-Marl code to compileparallel
- iffalse
, the compiled program will be optimized for sequential executiondisabledOptimizations
- list of compiler optimizations to disableverbose
- iftrue
, the compiler will output compilation stages
-
getPgqlResultSetAsync
public PgxFuture<PgqlResultSet> getPgqlResultSetAsync(java.lang.String id)
Gets a PGQL result set by ID.- Parameters:
id
- the PGQL result set ID- Returns:
- the requested PGQL result set or NULL if no such result set exists for this session
-
getAvailableCompiledProgramIdsAsync
public PgxFuture<java.util.Set<java.lang.String>> getAvailableCompiledProgramIdsAsync()
Gets the set of available compiled program IDs.- Returns:
- the set of available compiled program IDs.
-
getCompiledProgramAsync
public PgxFuture<CompiledProgram> getCompiledProgramAsync(java.lang.String id)
Gets a compiled program by ID.- Parameters:
id
- the ID of the compiled program- Returns:
- the compiled program.
-
getAvailableSnapshotsAsync
public PgxFuture<java.util.Deque<GraphMetaData>> getAvailableSnapshotsAsync(PgxGraph graph)
Gets a list of theGraphMetaData
information of available in-memory snapshots ofgraph
.- Parameters:
graph
- the graph whose information is returned; note thatgraph
can reference any snapshot of the graph (seesetSnapshot(PgxGraph, long)
): all snapshotsGraphMetaData
objects will be retrieved anyway- Returns:
- A list of graph meta data objects, each belonging to a snapshot of
graph
currently loaded into memory. The list is sorted by descending order based on theGraphMetaData.getCreationTimestamp()
value (milliseconds since Jan 1st 1970) - the timestamp when the snapshot was created.
-
setSnapshotAsync
public PgxFuture<java.lang.Void> setSnapshotAsync(PgxGraph graph, long creationTimestamp)
Sets a graph to a specific snapshot. You can use this method to jump back and forth in time between various snapshots of the same graph. If successful, the given graph will point to the requested snapshot after the returned future completes.- Parameters:
graph
- the graph to be checked out to a different version. Note that transient properties cannot be checked out to a different graph version. If the given graph contains any transient properties, the returned future will complete exceptionally with anUnsupportedOperationException
set as cause. You can usesetSnapshotAsync(PgxGraph, long, boolean)
to force a checkout on a graph with transient properties.creationTimestamp
- the creation timestamp (milliseconds since Jan 1st 1970) identifying the version to be checked out
-
setSnapshotAsync
public PgxFuture<java.lang.Void> setSnapshotAsync(PgxGraph graph, GraphMetaData metaData)
Sets a graph to a specific snapshot. You can use this method to jump back and forth in time between various snapshots of the same graph. If successful, the given graph will point to the requested snapshot after the returned future completes.- Parameters:
graph
- the graph to be checked out to a different version. Note that transient properties cannot be checked out to a different graph version. If the given graph contains any transient properties, the returned future will complete exceptionally with anUnsupportedOperationException
set as cause. You can usesetSnapshotAsync(PgxGraph, long, boolean)
to force a checkout on a graph with transient properties.metaData
- the metaData object returned bygetAvailableSnapshotsAsync(PgxGraph)
identifying the version to be checked out
-
setSnapshotAsync
public PgxFuture<java.lang.Void> setSnapshotAsync(PgxGraph graph, GraphMetaData metaData, boolean forceDeleteTransientProperties)
Sets a graph to a specific snapshot. You can use this method to jump back and forth in time between various snapshots of the same graph. If successful, the given graph will point to the requested snapshot after the returned future completes.- Parameters:
graph
- the graph to be checked out to a different snapshot versionmetaData
- the metaData object returned by(GraphConfig)
identifying the version to be checked outforceDeleteTransientProperties
- Graphs with transient properties cannot be checked out to a different version. If this flag is set totrue
, the checked out graph will no longer contain any transient properties. Iffalse
, the returned future will complete exceptionally with anUnsupportedOperationException
as its cause.
-
setSnapshotAsync
public PgxFuture<java.lang.Void> setSnapshotAsync(PgxGraph graph, long creationTimestamp, boolean forceDeleteTransientProperties)
Sets a graph to a specific snapshot. You can use this method to jump back and forth in time between various snapshots of the same graph. If successful, the given graph will point to the requested snapshot after the returned future completes.- Parameters:
graph
- the graph to be checked out to a different snapshot versioncreationTimestamp
- the creation timestamp (milliseconds since Jan 1st 1970) identifying the version to be checked outforceDeleteTransientProperties
- Graphs with transient properties cannot be checked out to a different version. If this flag is set totrue
, the checked out graph will no longer contain any transient properties. Iffalse
, the returned future will complete exceptionally with anUnsupportedOperationException
as its cause.
-
queryPgqlAsync
public PgxFuture<PgqlResultSet> queryPgqlAsync(java.lang.String pgqlString)
Submits a pattern matching query with a ON-clause. The ON-clause indicates the graph on which the query will be executed. The graph name in the ON-clause is evaluated with the same semantics asgetGraphAsync(String)
.- Parameters:
pgqlString
- query string in PGQL- Returns:
- the query result set
-
preparePgqlAsync
public PgxFuture<PgxPreparedStatement> preparePgqlAsync(java.lang.String pgqlString)
Prepares a pattern matching query with a ON-clause. The ON-clause indicates the graph on which the query will be executed. The graph name in the ON-clause is evaluated with the same semantics asgetGraphAsync(String)
.- Parameters:
pgqlString
- query string in PGQL- Returns:
- a prepared statement object
-
executePgqlAsync
public PgxFuture<PgqlResultSet> executePgqlAsync(java.lang.String pgqlString)
Submits any query with a ON-clause. The ON-clause indicates the graph on which the query will be executed. The graph name in the ON-clause is evaluated with the same semantics asgetGraphAsync(String)
.- Parameters:
pgqlString
- query string in PGQL- Returns:
- the query result set
-
explainPgqlAsync
public PgxFuture<Operation> explainPgqlAsync(java.lang.String pgqlString)
Explain the execution plan of a pattern matching query. Note: Different PGX versions may return different execution plans.- Parameters:
pgqlString
- query string in PGQL- Returns:
- the query plan
-
createSetAsync
public <T> PgxFuture<ScalarSet<T>> createSetAsync(PropertyType contentType, java.lang.String name)
Creates a set of scalars.- Parameters:
contentType
- content type of the set.name
- the set's name.- Returns:
- A named
ScalarSet
of content type contentType.
-
createSequenceAsync
public <T> PgxFuture<ScalarSequence<T>> createSequenceAsync(PropertyType contentType, java.lang.String name)
Creates a sequence of scalars.- Parameters:
contentType
- content type of the sequence.name
- the sequence's name.- Returns:
- A named
ScalarSequence
of content type contentType.
-
createSetAsync
public <T> PgxFuture<ScalarSet<T>> createSetAsync(PropertyType contentType)
Convenience method aroundcreateSetAsync(PropertyType, String)
passing name asnull
.
-
createSequenceAsync
public <T> PgxFuture<ScalarSequence<T>> createSequenceAsync(PropertyType contentType)
Convenience method aroundcreateSequenceAsync(PropertyType, String)
passing name asnull
.
-
createMapAsync
public <K,V> PgxFuture<PgxMap<K,V>> createMapAsync(PropertyType keyType, PropertyType valueType, java.lang.String name)
Creates a map.- Parameters:
keyType
- key content type of the map.valueType
- value content type of the map.name
- the map's name.- Returns:
- A named
PgxMap
of key content type keyType and value content type valueType.
-
createMapAsync
public <K,V> PgxFuture<PgxMap<K,V>> createMapAsync(PropertyType keyType, PropertyType valueType)
Convenience method aroundcreateMapAsync(PropertyType, PropertyType, String)
passing name asnull
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
describeGraphFile
public GraphConfig describeGraphFile(java.lang.String path) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFileAsync(String)
. CallsdescribeGraphFileAsync(String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
describeGraphFile
public GraphConfig describeGraphFile(java.lang.String path, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFileAsync(String, Format)
. CallsdescribeGraphFileAsync(String, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
describeGraphFiles
public GraphConfig describeGraphFiles(java.util.List<java.lang.String> filePaths) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFilesAsync(List)
. CallsdescribeGraphFilesAsync(List)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
describeGraphFiles
public GraphConfig describeGraphFiles(java.util.List<java.lang.String> filePaths, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFilesAsync(List, Format)
. CallsdescribeGraphFilesAsync(List, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
describeGraphFiles
public GraphConfig describeGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFilesAsync(String, String)
. CallsdescribeGraphFilesAsync(String, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
describeGraphFiles
public GraphConfig describeGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFilesAsync(String, String, Format)
. CallsdescribeGraphFilesAsync(String, String, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
describeGraphFiles
public GraphConfig describeGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFilesAsync(List, List)
. CallsdescribeGraphFilesAsync(List, List)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
describeGraphFiles
public GraphConfig describeGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofdescribeGraphFilesAsync(List, List, Format)
. CallsdescribeGraphFilesAsync(List, List, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFile
public PgxGraph readGraphFile(java.lang.String path) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFileAsync(String)
. CallsreadGraphFileAsync(String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFile
public PgxGraph readGraphFile(java.lang.String path, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFileAsync(String, Format)
. CallsreadGraphFileAsync(String, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFile
public PgxGraph readGraphFile(java.lang.String path, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFileAsync(String, String)
. CallsreadGraphFileAsync(String, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFile
public PgxGraph readGraphFile(java.lang.String path, @Nullable Format format, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFileAsync(String, Format, String)
. CallsreadGraphFileAsync(String, Format, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> filePaths) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List)
. CallsreadGraphFilesAsync(List)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> filePaths, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List, Format)
. CallsreadGraphFilesAsync(List, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> filePaths, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List, String)
. CallsreadGraphFilesAsync(List, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> filePaths, @Nullable Format format, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List, String)
. CallsreadGraphFilesAsync(List, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(String, String)
. CallsreadGraphFilesAsync(String, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(String, String, Format)
. CallsreadGraphFilesAsync(String, String, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(String, String, String)
. CallsreadGraphFilesAsync(String, String, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.lang.String vertexFilePath, java.lang.String edgeFilePath, @Nullable Format format, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(String, String, Format, String)
. CallsreadGraphFilesAsync(String, String, Format, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List, List)
. CallsreadGraphFilesAsync(List, List)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable Format format) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List, List, Format)
. CallsreadGraphFilesAsync(List, List, Format)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List, List, String)
. CallsreadGraphFilesAsync(List, List, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphFiles
public PgxGraph readGraphFiles(java.util.List<java.lang.String> vertexFilePaths, java.util.List<java.lang.String> edgeFilePaths, @Nullable Format format, @Nullable java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphFilesAsync(List, List, Format, String)
. CallsreadGraphFilesAsync(List, List, Format, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(java.lang.String path) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphWithPropertiesAsync(String)
. CallsreadGraphWithPropertiesAsync(String)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(java.lang.String path, java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphWithPropertiesAsync(String, String)
. CallsreadGraphWithPropertiesAsync(String, String)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(GraphConfig config) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig)
. CallsreadGraphWithPropertiesAsync(GraphConfig)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(GraphConfig config, java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, String)
. CallsreadGraphWithPropertiesAsync(GraphConfig, String)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(GraphConfig config, boolean updateIfNotFresh) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, boolean)
. CallsreadGraphWithPropertiesAsync(GraphConfig, boolean)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(GraphConfig config, boolean updateIfNotFresh, java.lang.String newGraphName) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, boolean, String)
. CallsreadGraphWithPropertiesAsync(GraphConfig, boolean, String)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, long, TimeUnit)
. CallsreadGraphWithPropertiesAsync(GraphConfig, long, TimeUnit)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphWithProperties
public PgxGraph readGraphWithProperties(GraphConfig config, long maxAge, java.util.concurrent.TimeUnit maxAgeTimeUnit, boolean blockIfFull, java.lang.String newGraphName) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Blocking version ofreadGraphWithPropertiesAsync(GraphConfig, long, TimeUnit, boolean, String)
. CallsreadGraphWithPropertiesAsync(GraphConfig, long, TimeUnit, boolean, String)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphByName
public PgxGraph readGraphByName(java.lang.String name, GraphSource source)
Blocking version ofreadGraphByNameAsync(String, GraphSource, ReadGraphOption...)
. CallsreadGraphByNameAsync(String, GraphSource, ReadGraphOption...)
and waits for the returnedPgxFuture
to complete.- Since:
- 21.3.0
-
readGraphByName
public PgxGraph readGraphByName(java.lang.String schemaName, java.lang.String graphName, GraphSource source)
Blocking version ofreadGraphByNameAsync(String, String, GraphSource, ReadGraphOption...)
. CallsreadGraphByNameAsync(String, String, GraphSource, ReadGraphOption...)
and waits for the returnedPgxFuture
to complete.- Since:
- 23.1.0
-
readGraphByName
public PgxGraph readGraphByName(java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Blocking version ofreadGraphByNameAsync(String, GraphSource, ReadGraphOption...)
. CallsreadGraphByNameAsync(String, GraphSource, ReadGraphOption...)
and waits for the returnedPgxFuture
to complete.- Since:
- 22.2.0
-
readGraphByName
public PgxGraph readGraphByName(java.lang.String schemaName, java.lang.String graphName, GraphSource source, ReadGraphOption... options)
Blocking version ofreadGraphByNameAsync(String, String, GraphSource, ReadGraphOption...)
. CallsreadGraphByNameAsync(String, String, GraphSource, ReadGraphOption...)
and waits for the returnedPgxFuture
to complete.- Since:
- 23.1.0
-
readGraphAsOf
public PgxGraph readGraphAsOf(GraphConfig config, GraphMetaData metaData) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphAsOfAsync(GraphConfig, GraphMetaData)
. CallsreadGraphAsOfAsync(GraphConfig, GraphMetaData)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphAsOf
public PgxGraph readGraphAsOf(GraphConfig config, GraphMetaData metaData, java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphAsOfAsync(GraphConfig, GraphMetaData, String)
. CallsreadGraphAsOfAsync(GraphConfig, GraphMetaData, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphAsOf
public PgxGraph readGraphAsOf(GraphConfig config, long creationTimestamp) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphAsOfAsync(GraphConfig, long)
. CallsreadGraphAsOfAsync(GraphConfig, long)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
readGraphAsOf
public PgxGraph readGraphAsOf(GraphConfig config, long creationTimestamp, java.lang.String newGraphName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofreadGraphAsOfAsync(GraphConfig, long, String)
. CallsreadGraphAsOfAsync(GraphConfig, long, String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
getGraph
public PgxGraph getGraph(java.lang.String name) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofgetGraphAsync(String)
. CallsgetGraphAsync(String)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
getGraph
public PgxGraph getGraph(Namespace namespace, java.lang.String name) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofgetGraphAsync(String)
. CallsgetGraphAsync(String)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
getGraphs
public java.util.List<java.lang.String> getGraphs(Namespace namespace) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofgetGraphsAsync(Namespace)
. CallsgetGraphsAsync(Namespace)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
getAvailableSnapshots
public java.util.Deque<GraphMetaData> getAvailableSnapshots(PgxGraph snapshot) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Blocking version ofgetAvailableSnapshotsAsync(PgxGraph)
. CallsgetAvailableSnapshotsAsync(PgxGraph)
and waits for returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
setSnapshot
public void setSnapshot(PgxGraph graph, long creationTimestamp)
Blocking version ofsetSnapshotAsync(PgxGraph, long)
. CallssetSnapshotAsync(PgxGraph, long)
and waits for returnedPgxFuture
to complete.
-
setSnapshot
public void setSnapshot(PgxGraph graph, GraphMetaData metaData)
Blocking version ofsetSnapshotAsync(PgxGraph, GraphMetaData)
. CallssetSnapshotAsync(PgxGraph, GraphMetaData)
and waits for returnedPgxFuture
to complete.
-
setSnapshot
public void setSnapshot(PgxGraph graph, long creationTimestamp, boolean forceDeleteProperties)
Blocking version ofsetSnapshotAsync(PgxGraph, long, boolean)
. CallssetSnapshotAsync(PgxGraph, long, boolean)
and waits for returnedPgxFuture
to complete.
-
setSnapshot
public void setSnapshot(PgxGraph graph, GraphMetaData metaData, boolean forceDeleteProperties)
Blocking version ofsetSnapshotAsync(PgxGraph, GraphMetaData, boolean)
. CallssetSnapshotAsync(PgxGraph, GraphMetaData, boolean)
and waits for returnedPgxFuture
to complete.
-
getAvailableCompiledProgramIds
public java.util.Set<java.lang.String> getAvailableCompiledProgramIds()
Blocking version ofgetAvailableCompiledProgramIdsAsync()
. CallsgetAvailableCompiledProgramIdsAsync()
and waits for returnedPgxFuture
to complete.
-
getCompiledProgram
public CompiledProgram getCompiledProgram(java.lang.String id)
Blocking version ofgetCompiledProgramAsync(String)
. CallsgetCompiledProgramAsync(String)
and waits for returnedPgxFuture
to complete.
-
getPgqlResultSet
public PgqlResultSet getPgqlResultSet(java.lang.String id)
Blocking version ofgetPgqlResultSetAsync(String)
. CallsgetPgqlResultSetAsync(String)
and waits for returnedPgxFuture
to complete.
-
preparePgql
public PgxPreparedStatement preparePgql(java.lang.String pgqlString)
Blocking version ofpreparePgqlAsync(String)
. CallspreparePgqlAsync(String)
and waits for the returnedPgxFuture
to complete.
-
queryPgql
public PgqlResultSet queryPgql(java.lang.String pgqlString) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofqueryPgql(String)
. CallsqueryPgqlAsync(String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
explainPgql
public Operation explainPgql(java.lang.String pgqlString) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofexplainPgql(String)
. CallsexplainPgqlAsync(String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
executePgql
public PgqlResultSet executePgql(java.lang.String pgqlString) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofexecutePgqlAsync(String)
. CallsexecutePgqlAsync(String)
and waits for the returnedPgxFuture
to complete.- Throws:
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
createSet
public <T> ScalarSet<T> createSet(PropertyType contentType, java.lang.String name)
Blocking version ofcreateSetAsync(PropertyType, String)
. CallscreateSetAsync(PropertyType, String)
and waits for the returnedPgxFuture
to complete.
-
createSequence
public <T> ScalarSequence<T> createSequence(PropertyType contentType, java.lang.String name)
Blocking version ofcreateSequenceAsync(PropertyType, String)
. CallscreateSequenceAsync(PropertyType, String)
and waits for the returnedPgxFuture
to complete.
-
createSet
public <T> ScalarSet<T> createSet(PropertyType contentType)
Blocking version ofcreateSetAsync(PropertyType)
. CallscreateSetAsync(PropertyType)
and waits for the returnedPgxFuture
to complete.
-
createSequence
public <T> ScalarSequence<T> createSequence(PropertyType contentType)
Blocking version ofcreateSequenceAsync(PropertyType)
. CallscreateSequenceAsync(PropertyType)
and waits for the returnedPgxFuture
to complete.
-
createMap
public <K,V> PgxMap<K,V> createMap(PropertyType keyType, PropertyType valueType, java.lang.String name)
Blocking version ofcreateMapAsync(PropertyType, PropertyType, String)
. CallscreateMapAsync(PropertyType, PropertyType, String)
and waits for the returnedPgxFuture
to complete.
-
createMap
public <K,V> PgxMap<K,V> createMap(PropertyType keyType, PropertyType valueType)
Blocking version ofcreateMapAsync(PropertyType, PropertyType)
. CallscreateMapAsync(PropertyType, PropertyType)
and waits for the returnedPgxFuture
to complete.
-
runConcurrentlyAsync
public PgxFuture<java.util.List<?>> runConcurrentlyAsync(java.util.List<java.util.function.Supplier<PgxFuture<?>>> asyncRequestsSuppliers)
Submits lists of supplied functions to run concurrently in the server- Parameters:
asyncRequestsSuppliers
- list of the asynchronous requests to execute concurrently- Returns:
- the result of the asynchronous request
- Since:
- 3.3.0
-
-