Package oracle.pgx.api
Class EdgeProperty<V>
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.Destroyable
-
- oracle.pgx.api.PgxManagedObject
-
- oracle.pgx.api.Property<java.lang.Long,PgxEdge,V>
-
- oracle.pgx.api.EdgeProperty<V>
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<EdgeProperty<?>>
ALL
static java.util.Set<EdgeProperty<?>>
NONE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeProperty<V>
clone()
Blocking version ofcloneAsync()
.EdgeProperty<V>
clone(java.lang.String newPropertyName)
Blocking version ofcloneAsync(String)
.PgxFuture<EdgeProperty<V>>
cloneAsync()
Create a copy of this property.
Convenience method forcloneAsync(String)
passing newPropertyName asnull
PgxFuture<EdgeProperty<V>>
cloneAsync(java.lang.String newPropertyName)
Creates a copy of this property.<S> java.util.List<EdgeProperty<S>>
expand()
Blocking version ofexpandAsync()
.<S> java.util.List<EdgeProperty<S>>
expand(java.lang.String namePrefix)
Blocking version ofexpandAsync(String)
.<S> PgxFuture<java.util.List<EdgeProperty<S>>>
expandAsync()
If this is a vector property, expands this property into a list of scalar properties of same type.<S> PgxFuture<java.util.List<EdgeProperty<S>>>
expandAsync(java.lang.String namePrefix)
If this is a vector property, expands this property into a list of scalar properties of same type.-
Methods inherited from class oracle.pgx.api.Property
destroyAsync, equals, fill, fillAsync, get, get, getAsync, getAsync, getBottomKValues, getBottomKValuesAsync, getDimension, getEntityType, getGraph, getName, getPropertyId, getTopKValues, getTopKValuesAsync, getType, getValues, getValuesAsync, hashCode, isPublished, isPublishedAsync, isTransient, isVectorProperty, publish, publishAsync, rename, renameAsync, set, setAsync, setValues, setValues, setValuesAsync, setValuesAsync, size, sizeAsync, toString, wrap
-
Methods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
-
-
-
Field Detail
-
ALL
public static final java.util.Set<EdgeProperty<?>> ALL
-
NONE
public static final java.util.Set<EdgeProperty<?>> NONE
-
-
Method Detail
-
expandAsync
public <S> PgxFuture<java.util.List<EdgeProperty<S>>> expandAsync()
If this is a vector property, expands this property into a list of scalar properties of same type. The first property will contain the first element of the vector, the second property the second element and so on.- Type Parameters:
S
- the element type (scalar type) of this property's value type- Returns:
- a future holding the list of scalar properties or an exceptionally completed future if this property is
not a vector property (
Property.isVectorProperty()
== false). If this vector property has the name 'my_vector', then the result properties will be called 'my_vector_0', 'my_vector_1', etc..
-
expandAsync
public <S> PgxFuture<java.util.List<EdgeProperty<S>>> expandAsync(java.lang.String namePrefix)
If this is a vector property, expands this property into a list of scalar properties of same type. The first property will contain the first element of the vector, the second property the second element and so on.- Type Parameters:
S
- the element type (scalar type) of this property's value type- Parameters:
namePrefix
- the name prefix of the scalar properties to be created. If notnull
, the resulting properties will be named <namePrefix>_0, <namePrefix>_1, etc... Ifnull
, the name of this vector property will be used as name prefix. If that results in a name conflict, the returned future will complete exceptionally.- Returns:
- a future holding the list of scalar properties or an exceptionally completed future if this property is
not a vector property (
Property.isVectorProperty()
== false).
-
cloneAsync
public PgxFuture<EdgeProperty<V>> cloneAsync()
Create a copy of this property.
Convenience method forcloneAsync(String)
passing newPropertyName asnull
- Returns:
- property result
-
cloneAsync
public PgxFuture<EdgeProperty<V>> cloneAsync(java.lang.String newPropertyName)
Creates a copy of this property.- Parameters:
newPropertyName
- name of copy to be created. Ifnull
, guaranteed unique name will be generated.- Returns:
- property result
-
clone
public EdgeProperty<V> clone()
Blocking version ofcloneAsync()
. CallscloneAsync()
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.
-
clone
public EdgeProperty<V> clone(java.lang.String newPropertyName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofcloneAsync(String)
. CallscloneAsync(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.
-
expand
public <S> java.util.List<EdgeProperty<S>> expand() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofexpandAsync()
. CallsexpandAsync()
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.
-
expand
public <S> java.util.List<EdgeProperty<S>> expand(java.lang.String namePrefix) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Blocking version ofexpandAsync(String)
. CallsexpandAsync(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.
-
-