Package oracle.pgx.api
Class VertexProperty<ID,V>
java.lang.Object
oracle.pgx.api.internal.ApiObject
oracle.pgx.api.Destroyable
oracle.pgx.api.PgxManagedObject
oracle.pgx.api.Property<ID,PgxVertex<ID>,V>
oracle.pgx.api.VertexProperty<ID,V>
- Type Parameters:
ID- the vertex ID type.V- the value type.
- All Implemented Interfaces:
AutoCloseable,Cloneable
- Direct Known Subclasses:
VertexLabels
A vertex property of a
PgxGraph.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<VertexProperty<?,?>> static final Set<VertexProperty<?,?>> -
Method Summary
Modifier and TypeMethodDescriptionclone()Blocking version ofcloneAsync().Blocking version ofcloneAsync(String).Create a copy of this property.
Convenience method forcloneAsync(String)passing newPropertyName asnullcloneAsync(String newPropertyName) Creates a copy of this property.<S> List<VertexProperty<ID,S>> expand()Blocking version ofexpandAsync().<S> List<VertexProperty<ID,S>> Blocking version ofexpandAsync(String).<S> PgxFuture<List<VertexProperty<ID,S>>> If this is a vector property, expands this property into a list of scalar properties of same type.<S> PgxFuture<List<VertexProperty<ID,S>>> expandAsync(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, wrapMethods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
Field Details
-
ALL
-
NONE
-
-
Method Details
-
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
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_0, _1, etc... If null, 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
Create a copy of this property.
Convenience method forcloneAsync(String)passing newPropertyName asnull- Returns:
- property result
-
cloneAsync
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
Blocking version ofcloneAsync(). CallscloneAsync()and waits for the returnedPgxFutureto complete.- Throws:
InterruptedException- if the caller thread gets interrupted while waiting for completion.ExecutionException- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
clone
public VertexProperty<ID,V> clone(String newPropertyName) throws ExecutionException, InterruptedException Blocking version ofcloneAsync(String). CallscloneAsync(String)and waits for the returnedPgxFutureto complete.- Throws:
InterruptedException- if the caller thread gets interrupted while waiting for completion.ExecutionException- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
expand
Blocking version ofexpandAsync(). CallsexpandAsync()and waits for the returnedPgxFutureto complete.- Throws:
InterruptedException- if the caller thread gets interrupted while waiting for completion.ExecutionException- if any exception occurred during asynchronous execution. The actual exception will be nested.
-
expand
public <S> List<VertexProperty<ID,S>> expand(String namePrefix) throws ExecutionException, InterruptedException Blocking version ofexpandAsync(String). CallsexpandAsync(String)and waits for the returnedPgxFutureto complete.- Throws:
InterruptedException- if the caller thread gets interrupted while waiting for completion.ExecutionException- if any exception occurred during asynchronous execution. The actual exception will be nested.
-