Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 47A37200CC6 for ; Tue, 18 Jul 2017 15:09:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 461D3166D3F; Tue, 18 Jul 2017 13:09:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5DC8C166D10 for ; Tue, 18 Jul 2017 15:08:55 +0200 (CEST) Received: (qmail 14012 invoked by uid 500); 18 Jul 2017 13:08:54 -0000 Mailing-List: contact commits-help@tinkerpop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tinkerpop.apache.org Delivered-To: mailing list commits@tinkerpop.apache.org Received: (qmail 13671 invoked by uid 99); 18 Jul 2017 13:08:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2017 13:08:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2C60AF4A49; Tue, 18 Jul 2017 13:08:54 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: spmallette@apache.org To: commits@tinkerpop.apache.org Date: Tue, 18 Jul 2017 13:09:09 -0000 Message-Id: <950d6a509b0c46a19be3533ad7f23454@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [17/43] tinkerpop git commit: Reorganize Gremlin-DotNet archived-at: Tue, 18 Jul 2017 13:09:00 -0000 http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Remote/IRemoteConnection.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Remote/IRemoteConnection.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Remote/IRemoteConnection.cs deleted file mode 100644 index 8555cb3..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Remote/IRemoteConnection.cs +++ /dev/null @@ -1,42 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Threading.Tasks; -using Gremlin.Net.Process.Traversal; - -namespace Gremlin.Net.Process.Remote -{ - /// - /// A simple abstraction of a "connection" to a "server". - /// - public interface IRemoteConnection - { - /// - /// Submits to a server and returns a - /// . - /// - /// The to send. - /// The with the results and optional side-effects. - Task SubmitAsync(Bytecode bytecode); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Remote/RemoteStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Remote/RemoteStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Remote/RemoteStrategy.cs deleted file mode 100644 index 4826113..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Remote/RemoteStrategy.cs +++ /dev/null @@ -1,61 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Threading.Tasks; -using Gremlin.Net.Process.Traversal; - -namespace Gremlin.Net.Process.Remote -{ - /// - /// Reconstructs a by submitting it to a remote server via an - /// instance. - /// - public class RemoteStrategy : ITraversalStrategy - { - private readonly IRemoteConnection _remoteConnection; - - /// - /// Initializes a new instance of the class. - /// - /// The that should be used. - public RemoteStrategy(IRemoteConnection remoteConnection) - { - _remoteConnection = remoteConnection; - } - - /// - public void Apply(ITraversal traversal) - { - ApplyAsync(traversal).Wait(); - } - - /// - public async Task ApplyAsync(ITraversal traversal) - { - if (traversal.Traversers != null) return; - var remoteTraversal = await _remoteConnection.SubmitAsync(traversal.Bytecode).ConfigureAwait(false); - traversal.SideEffects = remoteTraversal.SideEffects; - traversal.Traversers = remoteTraversal.Traversers; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Binding.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Binding.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Binding.cs deleted file mode 100644 index 80c8269..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Binding.cs +++ /dev/null @@ -1,80 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System; - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// Associates a variable with a value. - /// - public class Binding : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// The key that identifies the . - /// The value of the . - public Binding(string key, object value) - { - Key = key; - Value = value; - } - - /// - /// Gets the key that identifies the . - /// - public string Key { get; } - - /// - /// Gets the value of the . - /// - public object Value { get; } - - /// - public bool Equals(Binding other) - { - if (other == null) - return false; - return Key == other.Key && Value.Equals(other.Value); - } - - /// - public override bool Equals(object other) - { - if (ReferenceEquals(null, other)) return false; - if (ReferenceEquals(this, other)) return true; - if (other.GetType() != GetType()) return false; - return Equals(other as Binding); - } - - /// - public override int GetHashCode() - { - unchecked - { - return ((Key?.GetHashCode() ?? 0) * 397) ^ (Value?.GetHashCode() ?? 0); - } - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bindings.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bindings.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bindings.cs deleted file mode 100644 index 985369e..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bindings.cs +++ /dev/null @@ -1,42 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// Bindings are used to associate a variable with a value. - /// - public class Bindings - { - /// - /// Binds the variable to the specified value. - /// - /// The variable to bind. - /// The value to which the variable should be bound. - /// The bound value. - public Binding Of(string variable, object value) - { - return new Binding(variable, value); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bytecode.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bytecode.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bytecode.cs deleted file mode 100644 index b35e8db..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Bytecode.cs +++ /dev/null @@ -1,85 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Collections.Generic; - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// A language agnostic representation of mutations. - /// - /// - /// Bytecode is simply a list of ordered instructions. - /// Bytecode can be serialized between environments and machines by way of a GraphSON representation. - /// Thus, Gremlin-CSharp can create bytecode in C# and ship it to Gremlin-Java for evaluation in Java. - /// - public class Bytecode - { - /// - /// Initializes a new instance of the class. - /// - public Bytecode() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// Already existing that should be cloned. - public Bytecode(Bytecode byteCode) - { - SourceInstructions = new List(byteCode.SourceInstructions); - StepInstructions = new List(byteCode.StepInstructions); - } - - /// - /// Gets the traversal source instructions. - /// - public List SourceInstructions { get; } = new List(); - - /// - /// Gets the instructions. - /// - public List StepInstructions { get; } = new List(); - - /// - /// Add a traversal source instruction to the bytecode. - /// - /// The traversal source method name (e.g. withSack()). - /// The traversal source method arguments. - public void AddSource(string sourceName, params object[] args) - { - SourceInstructions.Add(new Instruction(sourceName, args)); - } - - /// - /// Adds a instruction to the bytecode. - /// - /// The traversal method name (e.g. out()). - /// The traversal method arguments. - public void AddStep(string stepName, params object[] args) - { - StepInstructions.Add(new Instruction(stepName, args)); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/DefaultTraversal.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/DefaultTraversal.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/DefaultTraversal.cs deleted file mode 100644 index 86c636c..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/DefaultTraversal.cs +++ /dev/null @@ -1,195 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// A traversal represents a directed walk over a graph. - /// - public abstract class DefaultTraversal : ITraversal - { - private IEnumerator _traverserEnumerator; - - /// - /// Gets the representation of this traversal. - /// - public Bytecode Bytecode { get; protected set; } - - /// - /// Gets or sets the of this traversal. - /// - public ITraversalSideEffects SideEffects { get; set; } - - /// - /// Gets or sets the 's of this traversal that hold the results of the traversal. - /// - public IEnumerable Traversers { get; set; } - - /// - /// Gets or sets the strategies of this traversal. - /// - protected ICollection TraversalStrategies { get; set; } = new List(); - - private IEnumerator TraverserEnumerator - => _traverserEnumerator ?? (_traverserEnumerator = GetTraverserEnumerator()); - - /// - public void Dispose() - { - Dispose(true); - } - - /// - public bool MoveNext() - { - var currentTraverser = TraverserEnumerator.Current; - if (currentTraverser?.Bulk > 1) - { - currentTraverser.Bulk--; - return true; - } - return TraverserEnumerator.MoveNext(); - } - - /// - /// Reset is not supported. - /// - /// Thrown always as this operation is not supported. - public void Reset() - { - throw new NotSupportedException(); - } - - /// - public object Current => TraverserEnumerator.Current?.Object; - - private IEnumerator GetTraverserEnumerator() - { - if (Traversers == null) - ApplyStrategies(); - return Traversers.GetEnumerator(); - } - - private void ApplyStrategies() - { - foreach (var strategy in TraversalStrategies) - strategy.Apply(this); - } - - private async Task ApplyStrategiesAsync() - { - foreach (var strategy in TraversalStrategies) - await strategy.ApplyAsync(this).ConfigureAwait(false); - } - - /// - /// Gets the next result from the traversal. - /// - /// The result. - public object Next() - { - MoveNext(); - return Current; - } - - /// - /// Gets the next n-number of results from the traversal. - /// - /// The number of results to get. - /// The n-results. - public IEnumerable Next(int amount) - { - for (var i = 0; i < amount; i++) - yield return Next(); - } - - /// - /// Iterates all instances in the traversal. - /// - /// The fully drained traversal. - public ITraversal Iterate() - { - while (MoveNext()) - { - } - return this; - } - - /// - /// Gets the next . - /// - /// The next . - public Traverser NextTraverser() - { - TraverserEnumerator.MoveNext(); - return TraverserEnumerator.Current; - } - - /// - /// Puts all the results into a . - /// - /// The results in a list. - public List ToList() - { - var objs = new List(); - while (MoveNext()) - objs.Add(Current); - return objs; - } - - /// - /// Puts all the results into a . - /// - /// The results in a set. - public HashSet ToSet() - { - var objs = new HashSet(); - while (MoveNext()) - objs.Add(Current); - return objs; - } - - /// - protected virtual void Dispose(bool disposing) - { - if (disposing) - SideEffects?.Dispose(); - } - - /// - /// Starts a promise to execute a function on the current traversal that will be completed in the future. - /// - /// The return type of the . - /// The function to execute on the current traversal. - /// The result of the executed . - public async Task Promise(Func callback) - { - await ApplyStrategiesAsync().ConfigureAwait(false); - return callback(this); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversal.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversal.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversal.cs deleted file mode 100644 index cb472b7..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversal.cs +++ /dev/null @@ -1,96 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// A traversal represents a directed walk over a graph. - /// - public interface ITraversal : IDisposable, IEnumerator - { - /// - /// Gets the representation of this traversal. - /// - Bytecode Bytecode { get; } - - /// - /// Gets or sets the of this traversal. - /// - ITraversalSideEffects SideEffects { get; set; } - - /// - /// Gets or sets the 's of this traversal that hold the results of the traversal. - /// - IEnumerable Traversers { get; set; } - - /// - /// Gets the next result from the traversal. - /// - /// The result. - object Next(); - - /// - /// Gets the next n-number of results from the traversal. - /// - /// The number of results to get. - /// The n-results. - IEnumerable Next(int amount); - - /// - /// Iterates all instances in the traversal. - /// - /// The fully drained traversal. - ITraversal Iterate(); - - /// - /// Gets the next . - /// - /// The next . - Traverser NextTraverser(); - - /// - /// Puts all the results into a . - /// - /// The results in a list. - List ToList(); - - /// - /// Puts all the results into a . - /// - /// The results in a set. - HashSet ToSet(); - - /// - /// Starts a promise to execute a function on the current traversal that will be completed in the future. - /// - /// The return type of the . - /// The function to execute on the current traversal. - /// The result of the executed . - Task Promise(Func callback); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalSideEffects.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalSideEffects.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalSideEffects.cs deleted file mode 100644 index 0378fe6..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalSideEffects.cs +++ /dev/null @@ -1,52 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System; -using System.Collections.Generic; - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// A can maintain global sideEffects. - /// - public interface ITraversalSideEffects : IDisposable - { - /// - /// Retrieves the keys of the side-effect that can be supplied to . - /// - /// The keys of the side-effect. - IReadOnlyCollection Keys(); - - /// - /// Gets the side-effect associated with the provided key. - /// - /// The key to get the value for. - /// The value associated with key. - object Get(string key); - - /// - /// Invalidates the side effect cache for traversal. - /// - void Close(); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalStrategy.cs deleted file mode 100644 index 991a807..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/ITraversalStrategy.cs +++ /dev/null @@ -1,46 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Threading.Tasks; - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// A defines a particular atomic operation for mutating a - /// prior to its evaluation. - /// - public interface ITraversalStrategy - { - /// - /// Applies the strategy to the given . - /// - /// The the strategy should be applied to. - void Apply(ITraversal traversal); - - /// - /// Applies the strategy to the given asynchronously. - /// - /// The the strategy should be applied to. - Task ApplyAsync(ITraversal traversal); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Instruction.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Instruction.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Instruction.cs deleted file mode 100644 index 195b7bf..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Instruction.cs +++ /dev/null @@ -1,52 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// Represents a instruction by an operator name and its arguments. - /// - public class Instruction - { - /// - /// Initializes a new instance of the class. - /// - /// The name of the operator. - /// The arguments. - public Instruction(string operatorName, params dynamic[] arguments) - { - OperatorName = operatorName; - Arguments = arguments; - } - - /// - /// Gets the name of the operator. - /// - public string OperatorName { get; } - - /// - /// Gets the arguments. - /// - public dynamic[] Arguments { get; } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/AbstractTraversalStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/AbstractTraversalStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/AbstractTraversalStrategy.cs deleted file mode 100644 index 8c9666c..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/AbstractTraversalStrategy.cs +++ /dev/null @@ -1,86 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace Gremlin.Net.Process.Traversal.Strategy -{ - /// - /// Provides a common base class for strategies that are only included in - /// to be applied remotely. - /// - public abstract class AbstractTraversalStrategy : ITraversalStrategy, IEquatable - { - /// - /// Gets the name of the strategy. - /// - public string StrategyName => GetType().Name; - - /// - /// Gets the configuration of the strategy. - /// - public Dictionary Configuration { get; } = new Dictionary(); - - /// - public bool Equals(AbstractTraversalStrategy other) - { - if (ReferenceEquals(null, other)) return false; - if (ReferenceEquals(this, other)) return true; - return StrategyName == other.StrategyName; - } - - /// - public virtual void Apply(ITraversal traversal) - { - } - - /// - public virtual Task ApplyAsync(ITraversal traversal) - { - return Task.CompletedTask; - } - - /// - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) return false; - if (ReferenceEquals(this, obj)) return true; - if (obj.GetType() != GetType()) return false; - return Equals((AbstractTraversalStrategy) obj); - } - - /// - public override int GetHashCode() - { - return StrategyName.GetHashCode(); - } - - /// - public override string ToString() - { - return StrategyName; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ConnectiveStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ConnectiveStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ConnectiveStrategy.cs deleted file mode 100644 index 2bca7c2..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ConnectiveStrategy.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Decoration -{ - /// - /// ConnectiveStrategy rewrites the binary conjunction form of a.and().b into an AndStep of - /// and(a, b) (likewise for OrStep). - /// - public class ConnectiveStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ElementIdStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ElementIdStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ElementIdStrategy.cs deleted file mode 100644 index 6079f58..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/ElementIdStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Decoration -{ - /// - /// Provides a degree of control over element identifier assignment as some graphs don't provide that feature. - /// - public class ElementIdStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs deleted file mode 100644 index 98f949c..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs +++ /dev/null @@ -1,34 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Decoration -{ - public class HaltedTraverserStrategy : AbstractTraversalStrategy - { - public HaltedTraverserStrategy(string haltedTraverserFactoryName = null) - { - if (haltedTraverserFactoryName != null) - Configuration["haltedTraverserFactory"] = haltedTraverserFactoryName; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/PartitionStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/PartitionStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/PartitionStrategy.cs deleted file mode 100644 index f89037b..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/PartitionStrategy.cs +++ /dev/null @@ -1,56 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Collections.Generic; - -namespace Gremlin.Net.Process.Traversal.Strategy.Decoration -{ - /// - /// Partitions the vertices, edges and vertex properties of a graph into String named partitions. - /// - public class PartitionStrategy : AbstractTraversalStrategy - { - /// - /// Initializes a new instance of the class. - /// - /// Specifies the partition key name. - /// - /// Specifies the name of the partition to write when adding vertices, edges and vertex - /// properties. - /// - /// Specifies the partition of the graph to read from. - /// Set to true if vertex properties should get assigned to partitions. - public PartitionStrategy(string partitionKey = null, string writePartition = null, - IEnumerable readPartitions = null, bool? includeMetaProperties = null) - { - if (partitionKey != null) - Configuration["partitionKey"] = partitionKey; - if (writePartition != null) - Configuration["writePartition"] = writePartition; - if (readPartitions != null) - Configuration["readPartitions"] = readPartitions; - if (includeMetaProperties != null) - Configuration["includeMetaProperties"] = includeMetaProperties.Value; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/SubgraphStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/SubgraphStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/SubgraphStrategy.cs deleted file mode 100644 index 2f0d23e..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/SubgraphStrategy.cs +++ /dev/null @@ -1,48 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Decoration -{ - /// - /// Provides a way to limit the view of a . - /// - public class SubgraphStrategy : AbstractTraversalStrategy - { - /// - /// Initializes a new instance of the class. - /// - /// Constrains vertices for the . - /// Constrains edges for the . - /// Constrains vertex properties for the . - public SubgraphStrategy(ITraversal vertexCriterion = null, ITraversal edgeCriterion = null, - ITraversal vertexPropertyCriterion = null) - { - if (vertexCriterion != null) - Configuration["vertices"] = vertexCriterion; - if (edgeCriterion != null) - Configuration["edges"] = edgeCriterion; - if (vertexPropertyCriterion != null) - Configuration["vertexProperties"] = vertexPropertyCriterion; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs deleted file mode 100644 index 1c5b5f2..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs +++ /dev/null @@ -1,50 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Collections.Generic; -using System.Linq; - -namespace Gremlin.Net.Process.Traversal.Strategy.Decoration -{ - public class VertexProgramStrategy : AbstractTraversalStrategy - { - public VertexProgramStrategy(string graphComputer = null, int? workers = null, string persist = null, - string result = null, ITraversal vertices = null, ITraversal edges = null, - Dictionary configuration = null) - { - if (graphComputer != null) - Configuration["graphComputer"] = graphComputer; - if (workers != null) - Configuration["workers"] = workers; - if (persist != null) - Configuration["persist"] = persist; - if (result != null) - Configuration["result"] = result; - if (vertices != null) - Configuration["vertices"] = vertices; - if (edges != null) - Configuration["edges"] = edges; - configuration?.ToList().ForEach(x => Configuration[x.Key] = x.Value); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs deleted file mode 100644 index 11a9e2c..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs +++ /dev/null @@ -1,34 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Finalization -{ - public class MatchAlgorithmStrategy : AbstractTraversalStrategy - { - public MatchAlgorithmStrategy(string matchAlgorithm = null) - { - if (matchAlgorithm != null) - Configuration["matchAlgorithm"] = matchAlgorithm; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/AdjacentToIncidentStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/AdjacentToIncidentStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/AdjacentToIncidentStrategy.cs deleted file mode 100644 index bae85d7..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/AdjacentToIncidentStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Optimizes vertex- and value-emitting steps. - /// - public class AdjacentToIncidentStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/FilterRankingStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/FilterRankingStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/FilterRankingStrategy.cs deleted file mode 100644 index 3443e71..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/FilterRankingStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Reorders filter- and order-steps according to their rank. - /// - public class FilterRankingStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs deleted file mode 100644 index aaaee2c..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs +++ /dev/null @@ -1,29 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - public class GraphFilterStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IdentityRemovalStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IdentityRemovalStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IdentityRemovalStrategy.cs deleted file mode 100644 index 08a4c46..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IdentityRemovalStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Looks for Identity()-steps and removes them. - /// - public class IdentityRemovalStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IncidentToAdjacentStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IncidentToAdjacentStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IncidentToAdjacentStrategy.cs deleted file mode 100644 index 75b98c2..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/IncidentToAdjacentStrategy.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Replaces .OutE().InV() with .Out(), .InE().OutV() with In() and .BothE().BothV() - /// with Both(). - /// - public class IncidentToAdjacentStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/InlineFilterStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/InlineFilterStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/InlineFilterStrategy.cs deleted file mode 100644 index 8eade84..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/InlineFilterStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Analyzes filter-steps with child traversals that themselves are pure filters. - /// - public class InlineFilterStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/LazyBarrierStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/LazyBarrierStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/LazyBarrierStrategy.cs deleted file mode 100644 index b5cac4a..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/LazyBarrierStrategy.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Inserts Barrier()-steps into a where appropriate in order to gain the "bulking - /// optimization". - /// - public class LazyBarrierStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/MatchPredicateStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/MatchPredicateStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/MatchPredicateStrategy.cs deleted file mode 100644 index d535963..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/MatchPredicateStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Folds any postWhere() step that maintains a traversal constraint into Match(). - /// - public class MatchPredicateStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs deleted file mode 100644 index 82a8df9..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs +++ /dev/null @@ -1,29 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - public class OrderLimitStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathProcessorStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathProcessorStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathProcessorStrategy.cs deleted file mode 100644 index 2c8e106..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathProcessorStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Helps to ensure that more traversals meet the local child constraint imposed on OLAP traversals. - /// - public class PathProcessorStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs deleted file mode 100644 index e54fbb5..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs +++ /dev/null @@ -1,29 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - public class PathRetractionStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RangeByIsCountStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RangeByIsCountStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RangeByIsCountStrategy.cs deleted file mode 100644 index e3024bc..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RangeByIsCountStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - /// - /// Optimizes any occurrence of Count()-step followed by an Is()-step. - /// - public class RangeByIsCountStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs deleted file mode 100644 index 6cac454..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs +++ /dev/null @@ -1,29 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Optimization -{ - public class RepeatUnrollStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/LambdaRestrictionStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/LambdaRestrictionStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/LambdaRestrictionStrategy.cs deleted file mode 100644 index 0f488ab..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/LambdaRestrictionStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Verification -{ - /// - /// Does not allow lambdas to be used in a . - /// - public class LambdaRestrictionStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/ReadOnlyStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/ReadOnlyStrategy.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/ReadOnlyStrategy.cs deleted file mode 100644 index a703e18..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Strategy/Verification/ReadOnlyStrategy.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal.Strategy.Verification -{ - /// - /// Detects mutating steps and throws an exception if one is found. - /// - public class ReadOnlyStrategy : AbstractTraversalStrategy - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/TraversalPredicate.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/TraversalPredicate.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/TraversalPredicate.cs deleted file mode 100644 index b854213..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/TraversalPredicate.cs +++ /dev/null @@ -1,85 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// Represents a predicate (boolean-valued function) used in a . - /// - public class TraversalPredicate - { - /// - /// Initializes a new instance of the class. - /// - /// The name of the predicate. - /// The value of the predicate. - /// An optional other predicate that is used as an argument for this predicate. - public TraversalPredicate(string operatorName, dynamic value, TraversalPredicate other = null) - { - OperatorName = operatorName; - Value = value; - Other = other; - } - - /// - /// Gets the name of the predicate. - /// - public string OperatorName { get; } - - /// - /// Gets the value of the predicate. - /// - public dynamic Value { get; } - - /// - /// Gets an optional other predicate that is used as an argument for this predicate. - /// - public TraversalPredicate Other { get; } - - /// - /// Returns a composed predicate that represents a logical AND of this predicate and another. - /// - /// A predicate that will be logically-ANDed with this predicate. - /// The composed predicate. - public TraversalPredicate And(TraversalPredicate otherPredicate) - { - return new TraversalPredicate("and", this, otherPredicate); - } - - /// - /// Returns a composed predicate that represents a logical OR of this predicate and another. - /// - /// A predicate that will be logically-ORed with this predicate. - /// The composed predicate. - public TraversalPredicate Or(TraversalPredicate otherPredicate) - { - return new TraversalPredicate("or", this, otherPredicate); - } - - /// - public override string ToString() - { - return Other == null ? $"{OperatorName}({Value})" : $"{OperatorName}({Value},{Other})"; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Traverser.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Traverser.cs b/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Traverser.cs deleted file mode 100644 index 573e57f..0000000 --- a/gremlin-dotnet/src/Gremlin.Net.Process/Traversal/Traverser.cs +++ /dev/null @@ -1,75 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -namespace Gremlin.Net.Process.Traversal -{ - /// - /// A traverser represents the current state of an object flowing through a . - /// - public class Traverser - { - /// - /// Initializes a new instance of the class. - /// - /// The object of the traverser. - /// The number of traversers represented in this traverser. - public Traverser(dynamic obj, long bulk = 1) - { - Object = obj; - Bulk = bulk; - } - - /// - /// Gets the object of this traverser. - /// - public dynamic Object { get; } - - /// - /// Gets the number of traversers represented in this traverser. - /// - public long Bulk { get; internal set; } - - /// - public bool Equals(Traverser other) - { - if (ReferenceEquals(null, other)) return false; - if (ReferenceEquals(this, other)) return true; - return Equals(Object, other.Object); - } - - /// - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) return false; - if (ReferenceEquals(this, obj)) return true; - if (obj.GetType() != GetType()) return false; - return Equals((Traverser) obj); - } - - /// - public override int GetHashCode() - { - return Object != null ? Object.GetHashCode() : 0; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj index a909ad1..a1fc9ef 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj +++ b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj @@ -6,7 +6,6 @@ Apache TinkerPop netstandard1.3 3.2.5-SNAPSHOT - true Gremlin.Net Gremlin.Net gremlin-dotnet;gremlin;tinkerpop;tinkerpop3 @@ -23,6 +22,10 @@ + + + + @@ -36,8 +39,4 @@ - - - - http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f61227bc/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs new file mode 100644 index 0000000..8555cb3 --- /dev/null +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/IRemoteConnection.cs @@ -0,0 +1,42 @@ +#region License + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#endregion + +using System.Threading.Tasks; +using Gremlin.Net.Process.Traversal; + +namespace Gremlin.Net.Process.Remote +{ + /// + /// A simple abstraction of a "connection" to a "server". + /// + public interface IRemoteConnection + { + /// + /// Submits to a server and returns a + /// . + /// + /// The to send. + /// The with the results and optional side-effects. + Task SubmitAsync(Bytecode bytecode); + } +} \ No newline at end of file