class TinkerpopTraversalExtension extends java.lang.Object
Extensions to the Tinkerpop Gremlin graph traversal language that enable the use of Carnival objects in Gremlin treversals.
Constructor and description |
---|
TinkerpopTraversalExtension
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
both(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, EdgeDefinition edef) Extension of the Both step that traverses edges matching the given edge definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
bothE(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, EdgeDefinition edef) Extension of the BothE step that traverses edges matching the given edge definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
classes(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal) Finds all the class vertices relevant to the current elements in the traversal by traversing IS_INSTANCE_OF and IS_SUBCLASS_OF edges. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
has(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, PropertyDefinition pdef) Extension of the Has step that accepts a property definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
has(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, PropertyDefinition pdef, java.lang.Enum value) Extension of the Has step that accepts a property definition and an enum whose name() will be used as the property value. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
has(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, PropertyDefinition pdef, java.lang.Object value) Extension of the Has step that accepts a property definition and a value. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
hasNot(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, PropertyDefinition pdef) Extension of the HasNot step that accepts a property definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
in(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, EdgeDefinition edef) Extension of the In step that traverses edges matching the given edge definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
inE(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, EdgeDefinition edef) Extension of the InE step that traverses edges matching the given edge definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
instanceClass(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal) Find the class vertices of the current elements in the traversal by looking for an IS_INSTANCE_OF edge that points to a class vertex. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
instances(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal) This step can be applied to vertices that represent classes finding all vertices that represent instances of the class or any of its sub- classes. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
isInstanceOf(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, VertexDefinition vdef) Filters elements to include only instances of the given vertex definition by traversing IS_INSTANCE_OF and IS_SUBCLASS_OF edges. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
isa(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, VertexDefinition vdef) Filters the elements in the traversal to include only those that match the given vertex definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
isa(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, EdgeDefinition edef) Filters the elements in the traversal to include only those that match the given edge definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
matchesOn(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, PropertyDefinition pdef, org.apache.tinkerpop.gremlin.structure.Vertex vertex) Filter the elements in the traversal to include only those that have the same value as the provided vertex for the provided property or if the provided vertex does not have the property then include elements that likewise do not have that property. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
matchesOn(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, PropertyDefinition traversalPdef, org.apache.tinkerpop.gremlin.structure.Vertex vertex, PropertyDefinition vertexPdef) Filter the elements in the traversal to include only those that have the same value as the provided vertex for the provided property or if the provided vertex does not have the property then include elements that likewise do not have that property using one property definition for the traversal elements and another for the provided vertex. |
|
static java.lang.Object |
nextOne(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal) Extension of the next() terminal step that throws an exception if the traversal yields more than one element. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
out(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, EdgeDefinition edef) Extension of the Out step that traverses edges matching the given edge definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
outE(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, EdgeDefinition edef) Extension of the OutE step that traverses edges matching the given edge definition. |
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal |
properties(org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal traversal, PropertyDefinition pdef) Extension of the Properties step tp accept a property definition. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Extension of the Both step that traverses edges matching the given edge definition.
traversal
- The traversal this method will modify.edef
- The edge definitionExtension of the BothE step that traverses edges matching the given edge definition.
traversal
- The traversal this method will modify.edef
- The edge definitionFinds all the class vertices relevant to the current elements in the traversal by traversing IS_INSTANCE_OF and IS_SUBCLASS_OF edges.
traversal
- The traversal this method will modify.Extension of the Has step that accepts a property definition.
traversal
- The traversal this method will modify.pdef
- The property definitionExtension of the Has step that accepts a property definition and an enum whose name() will be used as the property value.
traversal
- The traversal this method will modify.pdef
- The property definitionvalue
- The enum whose name() will be used as the property valueExtension of the Has step that accepts a property definition and a value.
traversal
- The traversal this method will modify.pdef
- The property definitionvalue
- The value to use as the property valueExtension of the HasNot step that accepts a property definition.
traversal
- The traversal this method will modify.pdef
- The property definitionExtension of the In step that traverses edges matching the given edge definition.
traversal
- The traversal this method will modify.edef
- The edge definitionExtension of the InE step that traverses edges matching the given edge definition.
traversal
- The traversal this method will modify.edef
- The edge definitionFind the class vertices of the current elements in the traversal by looking for an IS_INSTANCE_OF edge that points to a class vertex.
traversal
- The traversal this method will modify.This step can be applied to vertices that represent classes finding all vertices that represent instances of the class or any of its sub- classes.
traversal
- The traversal this method will modify.Filters elements to include only instances of the given vertex definition by traversing IS_INSTANCE_OF and IS_SUBCLASS_OF edges.
traversal
- The traversal this method will modify.vdef
- The vertex definitionFilters the elements in the traversal to include only those that match the given vertex definition.
traversal
- The traversal this method will modify.vdef
- The vertex definitionFilters the elements in the traversal to include only those that match the given edge definition.
traversal
- The traversal this method will modify.edef
- The edge definitionFilter the elements in the traversal to include only those that have the same value as the provided vertex for the provided property or if the provided vertex does not have the property then include elements that likewise do not have that property.
traversal
- The traversal this method will modify.pdef
- The property definitionvertex
- THe vertex from which to get the property valueFilter the elements in the traversal to include only those that have the same value as the provided vertex for the provided property or if the provided vertex does not have the property then include elements that likewise do not have that property using one property definition for the traversal elements and another for the provided vertex.
traversal
- The traversal this method will modify.traversalPdef
- The property definition to use with traversal elements.vertex
- The vertex from which to get the property valuevertexPdef
- The property definition to use with the provided vertexExtension of the next() terminal step that throws an exception if the traversal yields more than one element.
traversal
- The traversal this method will modify.Extension of the Out step that traverses edges matching the given edge definition.
traversal
- The traversal this method will modify.edef
- The edge definitionExtension of the OutE step that traverses edges matching the given edge definition.
traversal
- The traversal this method will modify.edef
- The edge definitionExtension of the Properties step tp accept a property definition.
traversal
- The traversal this method will modify.pdef
- The proprty definition