public class PickingStrategyBuilder extends MutationStrategyBuilder<PickingStrategyBuilder>
| Modifier and Type | Method and Description | 
|---|---|
oracle.pgx.common.mutations.MutationStrategy | 
build()
Builds a PickingStrategy. 
 | 
PickingStrategyBuilder | 
setPickByEdgeId(oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)  | 
PickingStrategyBuilder | 
setPickByLabel(oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)
If there are multiple edges between two vertices, the edge whose label satisfies the  
PickingStrategyFunction will be picked. | 
PickingStrategyBuilder | 
setPickByProperty(EdgeProperty edgeProperty, oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)
If there are multiple edges between two vertices, the edge that satisfies the  
PickingStrategyFunction will be picked. | 
PickingStrategyBuilder | 
setPickByProperty(java.lang.String propertyName, oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)
Convenience method for  
setPickByProperty(EdgeProperty, PickingStrategyFunction). | 
dropEdgeProperties, dropEdgeProperty, dropVertexProperties, dropVertexProperty, setCopyMode, setMultiEdges, setNewGraphName, setSelfEdges, setTrivialVertices
public oracle.pgx.common.mutations.MutationStrategy build()
                                                   throws java.util.concurrent.ExecutionException,
                                                          java.lang.InterruptedException
Per default, it will pick any edge. To change this behavior, call either setPickByProperty or setPickByEdgeId beforehand.
build in class MutationStrategyBuilder<PickingStrategyBuilder>java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic PickingStrategyBuilder setPickByEdgeId(oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)
public PickingStrategyBuilder setPickByLabel(oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)
PickingStrategyFunction will be picked.pickingStrategyFunction -public PickingStrategyBuilder setPickByProperty(EdgeProperty edgeProperty, oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)
PickingStrategyFunction will be picked.
For instance, pick the edge where property_1 is MAX. Note, if two or more properties could be chosen according to the PickingStrategyFunction, only one of them is picked.
edgeProperty -pickingStrategyFunction -public PickingStrategyBuilder setPickByProperty(java.lang.String propertyName, oracle.pgx.common.mutations.PickingStrategyFunction pickingStrategyFunction)
setPickByProperty(EdgeProperty, PickingStrategyFunction).propertyName -pickingStrategyFunction -Copyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.