public GraphTraversalSource WithSack(object initialValue) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("withSack", initialValue); return(source); }
public GraphTraversalSource WithBulk(bool useBulk) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("withBulk", useBulk); return(source); }
public GraphTraversalSource WithPath() { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("withPath"); return(source); }
public GraphTraversalSource WithSideEffect(string key, object initialValue, object reducer) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("withSideEffect", key, initialValue, reducer); return(source); }
/// <summary> /// Configures the <see cref="GraphTraversalSource" /> as a "remote" to issue the /// <see cref="GraphTraversal{SType, EType}" /> for execution elsewhere. /// </summary> /// <param name="remoteConnection"> /// The <see cref="IRemoteConnection" /> instance to use to submit the /// <see cref="GraphTraversal{SType, EType}" />. /// </param> /// <returns>A <see cref="GraphTraversalSource" /> configured to use the provided <see cref="IRemoteConnection" />.</returns> public GraphTraversalSource WithRemote(IRemoteConnection remoteConnection) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.TraversalStrategies.Add(new RemoteStrategy(remoteConnection)); return(source); }
public GraphTraversalSource WithSack(object initialValue, object splitOperator, IBinaryOperator mergeOperator) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("withSack", initialValue, splitOperator, mergeOperator); return(source); }
public GraphTraversalSource WithSack(ISupplier initialValue, IUnaryOperator splitOperator) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("withSack", initialValue, splitOperator); return(source); }
public GraphTraversalSource With(string key, object value) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("with", key, value); return(source); }
public GraphTraversalSource WithSack(params object[] args) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); source.Bytecode.AddSource("withSack", args); return(source); }
public GraphTraversalSource WithoutStrategies(params Type[] traversalStrategyClasses) { var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies), new Bytecode(Bytecode)); var args = new List <object>(0 + traversalStrategyClasses.Length) { }; args.AddRange(traversalStrategyClasses); source.Bytecode.AddSource("withoutStrategies", args.ToArray()); return(source); }