public class CompiledProgram extends PgxManagedObject
Modifier and Type | Method and Description |
---|---|
static oracle.pgx.api.internal.Argument |
convertArg(java.lang.Object obj, ArgumentType type, int idx) |
PgxFuture<java.lang.Void> |
destroyAsync()
Requests destruction of this object.
|
boolean |
equals(java.lang.Object obj) |
ArgumentType[] |
getArgumentTypes()
Gets the argument types.
|
java.lang.String |
getCompilerOutput()
Gets the compiler output.
|
java.lang.String |
getId()
Gets the ID of this program.
|
java.lang.String |
getName()
Alias for
getId() . |
ReturnType |
getReturnType()
Gets the return type.
|
PgxSession |
getSession()
Gets the session.
|
int |
hashCode() |
<T> oracle.pgx.api.internal.AnalysisResult<T> |
run(java.util.Collection<oracle.pgx.api.internal.characteristic.WorkloadCharacteristic> characteristics, java.lang.Object... args)
Blocking version of
runAsync(Collection, Object...) . |
<T> oracle.pgx.api.internal.AnalysisResult<T> |
run(java.lang.Object... args)
Blocking version of
runAsync(Object...) . |
<T> oracle.pgx.api.internal.AnalysisResult<T> |
run(oracle.pgx.api.internal.characteristic.WorkloadCharacteristicPreset characteristics, java.lang.Object... args)
Blocking version of
runAsync(WorkloadCharacteristicPreset, Object...) . |
<T> PgxFuture<oracle.pgx.api.internal.AnalysisResult<T>> |
runAsync(java.util.Collection<oracle.pgx.api.internal.characteristic.WorkloadCharacteristic> characteristics, java.lang.Object... args)
Runs the compiled program with the given parameters.
|
<T> PgxFuture<oracle.pgx.api.internal.AnalysisResult<T>> |
runAsync(java.lang.Object... args)
Runs the compiled program with the given parameters.
|
<T> PgxFuture<oracle.pgx.api.internal.AnalysisResult<T>> |
runAsync(oracle.pgx.api.internal.characteristic.WorkloadCharacteristicPreset characteristics, java.lang.Object... args)
Runs the compiled program with the given parameters.
|
java.lang.String |
toString() |
close, destroy
public static oracle.pgx.api.internal.Argument convertArg(java.lang.Object obj, ArgumentType type, int idx) throws java.lang.Exception
java.lang.Exception
public PgxFuture<java.lang.Void> destroyAsync()
Destroyable
destroyAsync
in class Destroyable
public boolean equals(java.lang.Object obj)
equals
in class PgxManagedObject
public ArgumentType[] getArgumentTypes()
public java.lang.String getCompilerOutput()
public java.lang.String getId()
public java.lang.String getName()
getId()
.getName
in class PgxManagedObject
public ReturnType getReturnType()
public PgxSession getSession()
public int hashCode()
hashCode
in class PgxManagedObject
public <T> oracle.pgx.api.internal.AnalysisResult<T> run(java.util.Collection<oracle.pgx.api.internal.characteristic.WorkloadCharacteristic> characteristics, java.lang.Object... args) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
runAsync(Collection, Object...)
. Calls runAsync(Collection, Object...)
and waits for returned PgxFuture
to complete.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.public <T> oracle.pgx.api.internal.AnalysisResult<T> run(java.lang.Object... args) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
runAsync(Object...)
. Calls runAsync(Object...)
and waits for the returned PgxFuture
to complete.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.public <T> oracle.pgx.api.internal.AnalysisResult<T> run(oracle.pgx.api.internal.characteristic.WorkloadCharacteristicPreset characteristics, java.lang.Object... args) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
runAsync(WorkloadCharacteristicPreset, Object...)
. Calls runAsync(WorkloadCharacteristicPreset, Object...)
and waits for returned PgxFuture
to complete.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.public <T> PgxFuture<oracle.pgx.api.internal.AnalysisResult<T>> runAsync(java.util.Collection<oracle.pgx.api.internal.characteristic.WorkloadCharacteristic> characteristics, java.lang.Object... args)
procedure pagerank(G: Graph, e double, max int, nodePorp<double>){...} After, this method can be called PgxGraph g = ... VertexProperty<ID, Double> rank = ... runAsync(PoolType.ANALYSIS_POOL, g, 0.01, 0.85, 100, rank)
characteristics
- the characteristics of this analysisargs
- all the arguments required by specified procedureWorkloadCharacteristic
public <T> PgxFuture<oracle.pgx.api.internal.AnalysisResult<T>> runAsync(java.lang.Object... args)
procedure pagerank(G: Graph, e double, max int, nodePorp<double>){...} After, this method can be called PgxGraph g = ... VertexProperty<ID, Double> rank = ... runAsync(g, 0.01, 0.85, 100, rank)
args
- all the arguments required by specified procedurepublic <T> PgxFuture<oracle.pgx.api.internal.AnalysisResult<T>> runAsync(oracle.pgx.api.internal.characteristic.WorkloadCharacteristicPreset characteristics, java.lang.Object... args)
procedure pagerank(G: Graph, e double, max int, nodePorp<double>){...} After, this method can be called PgxGraph g = ... VertexProperty<ID, Double> rank = ... runAsync(g, 0.01, 0.85, 100, rank)
characteristics
- the characteristics of this analysisargs
- all the arguments required by specified procedureWorkloadCharacteristicPreset
public java.lang.String toString()
toString
in class java.lang.Object