public class __ extends Object
Modifier | Constructor and Description |
---|---|
protected |
__() |
Modifier and Type | Method and Description |
---|---|
static <A> GraphTraversal<A,A> |
__(A... starts) |
static <A> GraphTraversal<A,Edge> |
addE(Direction direction,
String edgeLabel,
Iterator<Vertex> otherVertices,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addE(Direction direction,
String edgeLabel,
String stepLabel,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addE(Direction direction,
String edgeLabel,
Vertex otherVertex,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addInE(String edgeLabel,
Iterator<Vertex> otherVertices,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addInE(String edgeLabel,
String stepLabel,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addInE(String edgeLabel,
Vertex otherVertex,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addOutE(String edgeLabel,
Iterator<Vertex> otherVertices,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addOutE(String edgeLabel,
String stepLabel,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Edge> |
addOutE(String edgeLabel,
Vertex otherVertex,
Object... propertyKeyValues) |
static <A> GraphTraversal<A,Vertex> |
addV(Object... propertyKeyValues) |
static <A> GraphTraversal<A,A> |
aggregate(String sideEffectKey) |
static <A> GraphTraversal<A,A> |
and(Traversal<?,?>... andTraversals) |
static <A> GraphTraversal<A,A> |
as(String label,
String... labels) |
static <A> GraphTraversal<A,A> |
barrier() |
static <A> GraphTraversal<A,Vertex> |
both(String... edgeLabels) |
static <A> GraphTraversal<A,Edge> |
bothE(String... edgeLabels) |
static <A> GraphTraversal<A,Vertex> |
bothV() |
static <A,M,B> GraphTraversal<A,B> |
branch(Function<Traverser<A>,M> function) |
static <A,M,B> GraphTraversal<A,B> |
branch(Traversal<?,M> traversalFunction) |
static <A,B> GraphTraversal<A,B> |
cap(String sideEffectKey,
String... sideEffectKeys) |
static <A,M,B> GraphTraversal<A,B> |
choose(Function<A,M> choiceFunction) |
static <A,B> GraphTraversal<A,B> |
choose(Predicate<A> choosePredicate,
Traversal<?,B> trueChoice,
Traversal<?,B> falseChoice) |
static <A,M,B> GraphTraversal<A,B> |
choose(Traversal<?,M> traversalFunction) |
static <A,M,B> GraphTraversal<A,B> |
choose(Traversal<?,M> traversalPredicate,
Traversal<?,B> trueChoice,
Traversal<?,B> falseChoice) |
static <A,B> GraphTraversal<A,B> |
coalesce(Traversal<?,B>... traversals) |
static <A> GraphTraversal<A,A> |
coin(double probability) |
static <A> GraphTraversal<A,Long> |
count() |
static <A> GraphTraversal<A,Long> |
count(Scope scope) |
static <A> GraphTraversal<A,A> |
cyclicPath() |
static <A> GraphTraversal<A,A> |
dedup() |
static <A> GraphTraversal<A,A> |
dedup(Scope scope) |
static <A> GraphTraversal<A,A> |
drop() |
static <A> GraphTraversal<A,A> |
emit() |
static <A> GraphTraversal<A,A> |
emit(Predicate<Traverser<A>> emitPredicate) |
static <A> GraphTraversal<A,A> |
emit(Traversal<?,?> emitTraversal) |
static <A> GraphTraversal<A,A> |
filter(Predicate<Traverser<A>> predicate) |
static <A,B> GraphTraversal<A,B> |
flatMap(Function<Traverser<A>,Iterator<B>> function) |
static <A> GraphTraversal<A,List<A>> |
fold() |
static <A,B> GraphTraversal<A,B> |
fold(B seed,
BiFunction<B,A,B> foldFunction) |
static <A,K,R> GraphTraversal<A,Map<K,R>> |
group() |
static <A> GraphTraversal<A,A> |
group(String sideEffectKey) |
static <A,B> GraphTraversal<A,Map<B,Long>> |
groupCount() |
static <A> GraphTraversal<A,A> |
groupCount(String sideEffectKey) |
static <A> GraphTraversal<A,A> |
has(String key) |
static <A> GraphTraversal<A,A> |
has(String key,
Object value) |
static <A> GraphTraversal<A,A> |
has(String key,
P<?> predicate) |
static <A> GraphTraversal<A,A> |
has(String label,
String key,
Object value) |
static <A> GraphTraversal<A,A> |
has(String label,
String key,
P<?> predicate) |
static <A> GraphTraversal<A,A> |
has(String key,
Traversal<?,?> propertyTraversal) |
static <A> GraphTraversal<A,A> |
has(T accessor,
Object value) |
static <A> GraphTraversal<A,A> |
has(T accessor,
P<?> predicate) |
static <A> GraphTraversal<A,A> |
hasId(Object... ids) |
static <A> GraphTraversal<A,A> |
hasKey(String... keys) |
static <A> GraphTraversal<A,A> |
hasLabel(String... labels) |
static <A> GraphTraversal<A,A> |
hasNot(String key) |
static <A> GraphTraversal<A,A> |
hasValue(Object... values) |
static <A> GraphTraversal<A,Object> |
id() |
static <A> GraphTraversal<A,A> |
identity() |
static <A> GraphTraversal<A,Vertex> |
in(String... edgeLabels) |
static <A> GraphTraversal<A,Edge> |
inE(String... edgeLabels) |
static <A> GraphTraversal<A,A> |
inject(A... injections) |
static <A> GraphTraversal<A,Vertex> |
inV() |
static <A> GraphTraversal<A,A> |
is(Object value) |
static <A> GraphTraversal<A,A> |
is(P<A> predicate) |
static <A> GraphTraversal<A,String> |
key() |
static <A> GraphTraversal<A,String> |
label() |
static <A> GraphTraversal<A,A> |
limit(long limit) |
static <A> GraphTraversal<A,A> |
limit(Scope scope,
long limit) |
static <A,B> GraphTraversal<A,B> |
local(Traversal<?,B> localTraversal) |
static <A,B> GraphTraversal<A,B> |
map(Function<Traverser<A>,B> function) |
static <A,B> GraphTraversal<A,Map<String,B>> |
match(String startLabel,
Traversal<?,?>... traversals) |
static <A,B extends Number> |
max() |
static <A,B extends Number> |
max(Scope scope) |
static <A> GraphTraversal<A,Double> |
mean() |
static <A> GraphTraversal<A,Double> |
mean(Scope scope) |
static <A,B extends Number> |
min() |
static <A,B extends Number> |
min(Scope scope) |
static <A> GraphTraversal<A,A> |
or(Traversal<?,?>... orTraversals) |
static <A> GraphTraversal<A,A> |
order() |
static <A> GraphTraversal<A,A> |
order(Scope scope) |
static <A> GraphTraversal<A,Vertex> |
otherV() |
static <A> GraphTraversal<A,Vertex> |
out(String... edgeLabels) |
static <A> GraphTraversal<A,Edge> |
outE(String... edgeLabels) |
static <A> GraphTraversal<A,Vertex> |
outV() |
static <A> GraphTraversal<A,Path> |
path() |
static <A> GraphTraversal<A,A> |
profile() |
static <A,B> GraphTraversal<A,? extends Property<B>> |
properties(String... propertyKeys) |
static <A> GraphTraversal<A,A> |
property(String key,
Object value,
Object... keyValues) |
static <A> GraphTraversal<A,A> |
property(VertexProperty.Cardinality cardinality,
String key,
Object value,
Object... keyValues) |
static <A,B> GraphTraversal<A,Map<String,B>> |
propertyMap(String... propertyKeys) |
static <A> GraphTraversal<A,A> |
range(long low,
long high) |
static <A> GraphTraversal<A,A> |
range(Scope scope,
long low,
long high) |
static <A> GraphTraversal<A,A> |
repeat(Traversal<?,A> traversal) |
static <A,B> GraphTraversal<A,B> |
sack() |
static <A,V> GraphTraversal<A,A> |
sack(BiFunction<V,A,V> sackFunction) |
static <A,V> GraphTraversal<A,A> |
sack(BinaryOperator<V> sackOperator,
String elementPropertyKey) |
static <A> GraphTraversal<A,A> |
sample(int amountToSample) |
static <A> GraphTraversal<A,A> |
sample(Scope scope,
int amountToSample) |
static <A,B> GraphTraversal<A,Map<String,B>> |
select(Scope scope,
String... stepLabels) |
static <A,B> GraphTraversal<A,B> |
select(Scope scope,
String stepLabel) |
static <A,B> GraphTraversal<A,Map<String,B>> |
select(String... stepLabels) |
static <A,B> GraphTraversal<A,B> |
select(String stepLabel) |
static <A> GraphTraversal<A,A> |
sideEffect(Consumer<Traverser<A>> consumer) |
static <A> GraphTraversal<A,A> |
simplePath() |
static <A> GraphTraversal<A,A> |
start() |
static <A> GraphTraversal<A,A> |
store(String sideEffectKey) |
static <A> GraphTraversal<A,Edge> |
subgraph(String sideEffectKey) |
static <A> GraphTraversal<A,Double> |
sum() |
static <A> GraphTraversal<A,Double> |
sum(Scope scope) |
static <A> GraphTraversal<A,A> |
tail() |
static <A> GraphTraversal<A,A> |
tail(long limit) |
static <A> GraphTraversal<A,A> |
tail(Scope scope) |
static <A> GraphTraversal<A,A> |
tail(Scope scope,
long limit) |
static <A> GraphTraversal<A,A> |
timeLimit(long timeLimit) |
static <A> GraphTraversal<A,A> |
times(int maxLoops) |
static <A> GraphTraversal<A,Vertex> |
to(Direction direction,
String... edgeLabels) |
static <A> GraphTraversal<A,Edge> |
toE(Direction direction,
String... edgeLabels) |
static <A> GraphTraversal<A,Vertex> |
toV(Direction direction) |
static <A> GraphTraversal<A,Tree> |
tree() |
static <A> GraphTraversal<A,A> |
tree(String sideEffectKey) |
static <A> GraphTraversal<A,A> |
unfold() |
static <A,B> GraphTraversal<A,B> |
union(Traversal<?,B>... traversals) |
static <A> GraphTraversal<A,A> |
until(Predicate<Traverser<A>> untilPredicate) |
static <A> GraphTraversal<A,A> |
until(Traversal<?,?> untilTraversal) |
static <A,B> GraphTraversal<A,B> |
value() |
static <A,B> GraphTraversal<A,Map<String,B>> |
valueMap(boolean includeTokens,
String... propertyKeys) |
static <A,B> GraphTraversal<A,Map<String,B>> |
valueMap(String... propertyKeys) |
static <A,B> GraphTraversal<A,B> |
values(String... propertyKeys) |
static <A> GraphTraversal<A,A> |
where(P<?> predicate) |
static <A> GraphTraversal<A,A> |
where(Scope scope,
P<?> predicate) |
static <A> GraphTraversal<A,A> |
where(Scope scope,
String startKey,
P<?> predicate) |
static <A> GraphTraversal<A,A> |
where(Scope scope,
Traversal<?,?> whereTraversal) |
static <A> GraphTraversal<A,A> |
where(String startKey,
P<?> predicate) |
static <A> GraphTraversal<A,A> |
where(Traversal<?,?> whereTraversal) |
public static <A> GraphTraversal<A,A> start()
public static <A> GraphTraversal<A,A> __(A... starts)
public static <A,B> GraphTraversal<A,B> map(Function<Traverser<A>,B> function)
public static <A,B> GraphTraversal<A,B> flatMap(Function<Traverser<A>,Iterator<B>> function)
public static <A> GraphTraversal<A,A> identity()
public static <A> GraphTraversal<A,String> label()
public static <A> GraphTraversal<A,Object> id()
public static <A> GraphTraversal<A,Vertex> to(Direction direction, String... edgeLabels)
public static <A> GraphTraversal<A,Vertex> out(String... edgeLabels)
public static <A> GraphTraversal<A,Vertex> in(String... edgeLabels)
public static <A> GraphTraversal<A,Vertex> both(String... edgeLabels)
public static <A> GraphTraversal<A,Edge> toE(Direction direction, String... edgeLabels)
public static <A> GraphTraversal<A,Edge> outE(String... edgeLabels)
public static <A> GraphTraversal<A,Edge> inE(String... edgeLabels)
public static <A> GraphTraversal<A,Edge> bothE(String... edgeLabels)
public static <A> GraphTraversal<A,Vertex> toV(Direction direction)
public static <A> GraphTraversal<A,Vertex> inV()
public static <A> GraphTraversal<A,Vertex> outV()
public static <A> GraphTraversal<A,Vertex> bothV()
public static <A> GraphTraversal<A,Vertex> otherV()
public static <A> GraphTraversal<A,A> order()
public static <A> GraphTraversal<A,A> order(Scope scope)
public static <A,B> GraphTraversal<A,? extends Property<B>> properties(String... propertyKeys)
public static <A,B> GraphTraversal<A,B> values(String... propertyKeys)
public static <A,B> GraphTraversal<A,Map<String,B>> propertyMap(String... propertyKeys)
public static <A,B> GraphTraversal<A,Map<String,B>> valueMap(String... propertyKeys)
public static <A,B> GraphTraversal<A,Map<String,B>> valueMap(boolean includeTokens, String... propertyKeys)
public static <A> GraphTraversal<A,String> key()
public static <A,B> GraphTraversal<A,B> value()
public static <A> GraphTraversal<A,Path> path()
public static <A,B> GraphTraversal<A,Map<String,B>> match(String startLabel, Traversal<?,?>... traversals)
public static <A,B> GraphTraversal<A,B> sack()
public static <A,B> GraphTraversal<A,B> select(Scope scope, String stepLabel)
public static <A,B> GraphTraversal<A,B> select(String stepLabel)
public static <A,B> GraphTraversal<A,Map<String,B>> select(Scope scope, String... stepLabels)
public static <A,B> GraphTraversal<A,Map<String,B>> select(String... stepLabels)
public static <A> GraphTraversal<A,A> unfold()
public static <A> GraphTraversal<A,List<A>> fold()
public static <A,B> GraphTraversal<A,B> fold(B seed, BiFunction<B,A,B> foldFunction)
public static <A> GraphTraversal<A,Long> count()
public static <A> GraphTraversal<A,Long> count(Scope scope)
public static <A> GraphTraversal<A,Double> sum()
public static <A> GraphTraversal<A,Double> sum(Scope scope)
public static <A,B extends Number> GraphTraversal<A,B> min()
public static <A,B extends Number> GraphTraversal<A,B> min(Scope scope)
public static <A,B extends Number> GraphTraversal<A,B> max()
public static <A,B extends Number> GraphTraversal<A,B> max(Scope scope)
public static <A> GraphTraversal<A,Double> mean()
public static <A> GraphTraversal<A,Double> mean(Scope scope)
public static <A,K,R> GraphTraversal<A,Map<K,R>> group()
public static <A,B> GraphTraversal<A,Map<B,Long>> groupCount()
public static <A> GraphTraversal<A,Tree> tree()
public static <A> GraphTraversal<A,Vertex> addV(Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addE(Direction direction, String edgeLabel, String stepLabel, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addE(Direction direction, String edgeLabel, Vertex otherVertex, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addE(Direction direction, String edgeLabel, Iterator<Vertex> otherVertices, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addInE(String edgeLabel, String stepLabel, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addInE(String edgeLabel, Vertex otherVertex, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addInE(String edgeLabel, Iterator<Vertex> otherVertices, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addOutE(String edgeLabel, String stepLabel, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addOutE(String edgeLabel, Vertex otherVertex, Object... propertyKeyValues)
public static <A> GraphTraversal<A,Edge> addOutE(String edgeLabel, Iterator<Vertex> otherVertices, Object... propertyKeyValues)
public static <A> GraphTraversal<A,A> filter(Predicate<Traverser<A>> predicate)
public static <A> GraphTraversal<A,A> and(Traversal<?,?>... andTraversals)
public static <A> GraphTraversal<A,A> or(Traversal<?,?>... orTraversals)
public static <A> GraphTraversal<A,A> inject(A... injections)
public static <A> GraphTraversal<A,A> dedup()
public static <A> GraphTraversal<A,A> dedup(Scope scope)
public static <A> GraphTraversal<A,A> has(String key, P<?> predicate)
public static <A> GraphTraversal<A,A> has(T accessor, P<?> predicate)
public static <A> GraphTraversal<A,A> has(String key, Object value)
public static <A> GraphTraversal<A,A> has(T accessor, Object value)
public static <A> GraphTraversal<A,A> has(String label, String key, Object value)
public static <A> GraphTraversal<A,A> has(String label, String key, P<?> predicate)
public static <A> GraphTraversal<A,A> has(String key, Traversal<?,?> propertyTraversal)
public static <A> GraphTraversal<A,A> has(String key)
public static <A> GraphTraversal<A,A> hasNot(String key)
public static <A> GraphTraversal<A,A> hasLabel(String... labels)
public static <A> GraphTraversal<A,A> hasId(Object... ids)
public static <A> GraphTraversal<A,A> hasKey(String... keys)
public static <A> GraphTraversal<A,A> hasValue(Object... values)
public static <A> GraphTraversal<A,A> where(Scope scope, String startKey, P<?> predicate)
public static <A> GraphTraversal<A,A> where(Scope scope, P<?> predicate)
public static <A> GraphTraversal<A,A> where(Scope scope, Traversal<?,?> whereTraversal)
public static <A> GraphTraversal<A,A> where(String startKey, P<?> predicate)
public static <A> GraphTraversal<A,A> where(P<?> predicate)
public static <A> GraphTraversal<A,A> where(Traversal<?,?> whereTraversal)
public static <A> GraphTraversal<A,A> is(P<A> predicate)
public static <A> GraphTraversal<A,A> is(Object value)
public static <A> GraphTraversal<A,A> coin(double probability)
public static <A> GraphTraversal<A,A> range(long low, long high)
public static <A> GraphTraversal<A,A> range(Scope scope, long low, long high)
public static <A> GraphTraversal<A,A> limit(long limit)
public static <A> GraphTraversal<A,A> limit(Scope scope, long limit)
public static <A> GraphTraversal<A,A> tail()
public static <A> GraphTraversal<A,A> tail(long limit)
public static <A> GraphTraversal<A,A> tail(Scope scope)
public static <A> GraphTraversal<A,A> tail(Scope scope, long limit)
public static <A> GraphTraversal<A,A> simplePath()
public static <A> GraphTraversal<A,A> cyclicPath()
public static <A> GraphTraversal<A,A> sample(int amountToSample)
public static <A> GraphTraversal<A,A> sample(Scope scope, int amountToSample)
public static <A> GraphTraversal<A,A> drop()
public static <A> GraphTraversal<A,A> sideEffect(Consumer<Traverser<A>> consumer)
public static <A,B> GraphTraversal<A,B> cap(String sideEffectKey, String... sideEffectKeys)
public static <A> GraphTraversal<A,Edge> subgraph(String sideEffectKey)
public static <A> GraphTraversal<A,A> aggregate(String sideEffectKey)
public static <A> GraphTraversal<A,A> group(String sideEffectKey)
public static <A> GraphTraversal<A,A> groupCount(String sideEffectKey)
public static <A> GraphTraversal<A,A> timeLimit(long timeLimit)
public static <A> GraphTraversal<A,A> tree(String sideEffectKey)
public static <A,V> GraphTraversal<A,A> sack(BiFunction<V,A,V> sackFunction)
public static <A,V> GraphTraversal<A,A> sack(BinaryOperator<V> sackOperator, String elementPropertyKey)
public static <A> GraphTraversal<A,A> store(String sideEffectKey)
public static <A> GraphTraversal<A,A> property(String key, Object value, Object... keyValues)
public static <A> GraphTraversal<A,A> property(VertexProperty.Cardinality cardinality, String key, Object value, Object... keyValues)
public static <A,M,B> GraphTraversal<A,B> branch(Function<Traverser<A>,M> function)
public static <A,M,B> GraphTraversal<A,B> branch(Traversal<?,M> traversalFunction)
public static <A,B> GraphTraversal<A,B> choose(Predicate<A> choosePredicate, Traversal<?,B> trueChoice, Traversal<?,B> falseChoice)
public static <A,M,B> GraphTraversal<A,B> choose(Function<A,M> choiceFunction)
public static <A,M,B> GraphTraversal<A,B> choose(Traversal<?,M> traversalFunction)
public static <A,M,B> GraphTraversal<A,B> choose(Traversal<?,M> traversalPredicate, Traversal<?,B> trueChoice, Traversal<?,B> falseChoice)
public static <A,B> GraphTraversal<A,B> union(Traversal<?,B>... traversals)
public static <A,B> GraphTraversal<A,B> coalesce(Traversal<?,B>... traversals)
public static <A> GraphTraversal<A,A> repeat(Traversal<?,A> traversal)
public static <A> GraphTraversal<A,A> emit(Traversal<?,?> emitTraversal)
public static <A> GraphTraversal<A,A> emit(Predicate<Traverser<A>> emitPredicate)
public static <A> GraphTraversal<A,A> until(Traversal<?,?> untilTraversal)
public static <A> GraphTraversal<A,A> until(Predicate<Traverser<A>> untilPredicate)
public static <A> GraphTraversal<A,A> times(int maxLoops)
public static <A> GraphTraversal<A,A> emit()
public static <A,B> GraphTraversal<A,B> local(Traversal<?,B> localTraversal)
public static <A> GraphTraversal<A,A> as(String label, String... labels)
public static <A> GraphTraversal<A,A> profile()
public static <A> GraphTraversal<A,A> barrier()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.