Package oracle.pgx.algorithm
Interface VertexProperty<T>
-
- Type Parameters:
T
-
public interface VertexProperty<T>
A vertex property of a PgxGraph.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> VertexProperty<T>
create()
Instantiate a new vertex property.static <T> VertexProperty<T>
create(T t)
Instantiate a new vertex property.void
decrement(PgxVertex vertex)
Decrement the property of the given vertex.T
get(PgxVertex vertex)
Get the property for the given vertex.void
increment(PgxVertex vertex)
Increment the property of the given vertex.void
reduceAdd(PgxVertex vertex, T value)
Atomically update the vertex's property to the sum of the current value and the given value.void
reduceAnd(PgxVertex vertex, T value)
Atomically update the vertex's property to the conjunction of the current value and the given value.void
reduceMax(PgxVertex vertex, T value)
Atomically update the given vertex's property to the maximum of the current value and the given value.void
reduceMin(PgxVertex vertex, T value)
Atomically update the given vertex's property to the minimum of the current value and the given value.void
reduceMul(PgxVertex vertex, T value)
Atomically update the vertex's property to the multiplication of the current value and the given value.void
reduceOr(PgxVertex vertex, T value)
Atomically update the vertex's property to the disjunction of the current value and the given value.void
set(PgxVertex vertex, T value)
Set the value of the vertex property for the given vertex.void
setAll(java.util.function.Function<PgxVertex,T> transform)
Set the vertex property for each vertex to the value based on the transformation function.void
setAll(T value)
Set the vertex property for every vertex to the given value.void
setDeferred(PgxVertex vertex, T value)
Set the vertex property to the given value, but only after the current parallel region finishes.
-
-
-
Method Detail
-
create
static <T> VertexProperty<T> create()
Instantiate a new vertex property.- Type Parameters:
T
-- Returns:
-
create
static <T> VertexProperty<T> create(T t)
Instantiate a new vertex property. Initialize the each vertex's property with the given value.- Type Parameters:
T
-- Returns:
-
set
void set(PgxVertex vertex, T value)
Set the value of the vertex property for the given vertex.- Parameters:
vertex
-value
-
-
setAll
void setAll(java.util.function.Function<PgxVertex,T> transform)
Set the vertex property for each vertex to the value based on the transformation function.- Parameters:
transform
-
-
setAll
void setAll(T value)
Set the vertex property for every vertex to the given value.- Parameters:
value
-
-
setDeferred
void setDeferred(PgxVertex vertex, T value)
Set the vertex property to the given value, but only after the current parallel region finishes.- Parameters:
vertex
-value
-
-
increment
void increment(PgxVertex vertex)
Increment the property of the given vertex.- Parameters:
vertex
-
-
decrement
void decrement(PgxVertex vertex)
Decrement the property of the given vertex.- Parameters:
vertex
-
-
reduceMin
void reduceMin(PgxVertex vertex, T value)
Atomically update the given vertex's property to the minimum of the current value and the given value.- Parameters:
vertex
-value
-
-
reduceMax
void reduceMax(PgxVertex vertex, T value)
Atomically update the given vertex's property to the maximum of the current value and the given value.- Parameters:
vertex
-value
-
-
reduceAdd
void reduceAdd(PgxVertex vertex, T value)
Atomically update the vertex's property to the sum of the current value and the given value.- Parameters:
vertex
-value
-
-
reduceMul
void reduceMul(PgxVertex vertex, T value)
Atomically update the vertex's property to the multiplication of the current value and the given value.- Parameters:
vertex
-value
-
-
reduceAnd
void reduceAnd(PgxVertex vertex, T value)
Atomically update the vertex's property to the conjunction of the current value and the given value.- Parameters:
vertex
-value
-
-
-