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