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.voiddecrement(PgxEdge edge)Decrement the property of the given edge.Tget(PgxEdge edge)Get the property for the given edge.voidincrement(PgxEdge edge)Increment the property of the given edge.voidreduceAdd(PgxEdge edge, T value)Atomically update the edge's property to the sum of the current value and the given value.voidreduceAnd(PgxEdge edge, T value)Atomically update the edge's property to the conjunction of the current value and the given value.voidreduceMax(PgxEdge edge, T value)Atomically update the given edge's property to the maximum of the current value and the given value.voidreduceMin(PgxEdge edge, T value)Atomically update the given vertex's property to the minimum of the current value and the given value.voidreduceMul(PgxEdge edge, T value)Atomically update the edge's property to the multiplication of the current value and the given value.voidreduceOr(PgxEdge edge, T value)Atomically update the edge's property to the disjunction of the current value and the given value.voidset(PgxEdge edge, T value)Set the value of the edge property for the given edge.voidsetAll(java.util.function.Function<PgxEdge,T> transform)Set the edge property for each edge to the value based on the transformation function.voidsetAll(T value)Set the edge property for every edge to the given value.voidsetDeferred(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-
-
-