public final class JavaHandlerUtils extends Object
Modifier and Type | Field and Description |
---|---|
static com.tinkerpop.pipes.PipeFunction<com.tinkerpop.pipes.branch.LoopPipe.LoopBundle<com.tinkerpop.blueprints.Vertex>,Boolean> |
defaultMaxLoops
Pipe function with a max loop clause with the default of 20.
|
static org.slf4j.Logger |
logger |
static com.tinkerpop.pipes.PipeFunction<com.tinkerpop.pipes.branch.LoopPipe.LoopBundle<com.tinkerpop.blueprints.Vertex>,Boolean> |
noopLoopFunc
Pipe function that always allows looping to continue.
|
Constructor and Description |
---|
JavaHandlerUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addSingleRelationship(com.tinkerpop.blueprints.Vertex from,
com.tinkerpop.blueprints.Vertex to,
String label)
Add a relationship in such a way that it is the only one of its type
from the source to the target.
|
static boolean |
addUniqueRelationship(com.tinkerpop.blueprints.Vertex from,
com.tinkerpop.blueprints.Vertex to,
String label)
Add a relationship that can only exist once between source and target.
|
static <S,E> void |
cacheCount(com.tinkerpop.blueprints.Element element,
com.tinkerpop.gremlin.java.GremlinPipeline<S,E> pipe,
String propName)
Given a pipeline
|
static boolean |
hasEdge(com.tinkerpop.blueprints.Vertex vertex,
com.tinkerpop.blueprints.Direction direction,
String... labels)
Check if a vertex has edges with the given direct/label.
|
static boolean |
hasRelationship(com.tinkerpop.blueprints.Vertex from,
com.tinkerpop.blueprints.Vertex to,
String... labels)
Determine if a relationship with the given label(s) exists
between source and target vertex.
|
static boolean |
removeAllRelationships(com.tinkerpop.blueprints.Vertex from,
com.tinkerpop.blueprints.Vertex to,
String... labels)
Remove all relationships with the given labels between
source and target vertex.
|
public static final org.slf4j.Logger logger
public static final com.tinkerpop.pipes.PipeFunction<com.tinkerpop.pipes.branch.LoopPipe.LoopBundle<com.tinkerpop.blueprints.Vertex>,Boolean> defaultMaxLoops
public static final com.tinkerpop.pipes.PipeFunction<com.tinkerpop.pipes.branch.LoopPipe.LoopBundle<com.tinkerpop.blueprints.Vertex>,Boolean> noopLoopFunc
public static <S,E> void cacheCount(com.tinkerpop.blueprints.Element element, com.tinkerpop.gremlin.java.GremlinPipeline<S,E> pipe, String propName)
element
- The elementpropName
- The cache property namepipe
- A pipeline to countpublic static boolean addSingleRelationship(com.tinkerpop.blueprints.Vertex from, com.tinkerpop.blueprints.Vertex to, String label)
from
- The source vertexto
- The target vertexlabel
- The relationship label namepublic static boolean addUniqueRelationship(com.tinkerpop.blueprints.Vertex from, com.tinkerpop.blueprints.Vertex to, String label)
from
- The source vertexto
- The target vertexlabel
- The relationship label namepublic static boolean hasRelationship(com.tinkerpop.blueprints.Vertex from, com.tinkerpop.blueprints.Vertex to, String... labels)
from
- The source vertexto
- The target vertexlabels
- The set of labelspublic static boolean removeAllRelationships(com.tinkerpop.blueprints.Vertex from, com.tinkerpop.blueprints.Vertex to, String... labels)
from
- The source vertexto
- The target vertexlabels
- The set of labelspublic static boolean hasEdge(com.tinkerpop.blueprints.Vertex vertex, com.tinkerpop.blueprints.Direction direction, String... labels)
vertex
- The source vertexdirection
- The edge directionlabels
- The set of labelsCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.