示例#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);
        }
示例#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);
        }
示例#3
0
        public GraphTraversalSource WithPath()
        {
            var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies),
                                                  new Bytecode(Bytecode));

            source.Bytecode.AddSource("withPath");
            return(source);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
        public GraphTraversalSource WithSack(params object[] args)
        {
            var source = new GraphTraversalSource(new List <ITraversalStrategy>(TraversalStrategies),
                                                  new Bytecode(Bytecode));

            source.Bytecode.AddSource("withSack", args);
            return(source);
        }
示例#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);
        }