Exemplo n.º 1
0
        public GraphTraversalSource WithSack(object initialValue)
        {
            var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies),
                                                  new Bytecode(Bytecode));

            source.Bytecode.AddSource("withSack", initialValue);
            return(source);
        }
Exemplo n.º 2
0
        public GraphTraversalSource WithBulk(bool useBulk)
        {
            var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies),
                                                  new Bytecode(Bytecode));

            source.Bytecode.AddSource("withBulk", useBulk);
            return(source);
        }
Exemplo n.º 3
0
        public GraphTraversalSource WithPath()
        {
            var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies),
                                                  new Bytecode(Bytecode));

            source.Bytecode.AddSource("withPath");
            return(source);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        /// <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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
        public GraphTraversalSource WithSack(params object[] args)
        {
            var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies),
                                                  new Bytecode(Bytecode));

            source.Bytecode.AddSource("withSack", args);
            return(source);
        }
Exemplo n.º 10
0
        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);
        }