//internal virtual void Sack() //Deprecated //internal virtual void Sack(BiFunction<V, U, V>) sackOperator) //Deprecated //internal virtual void Sack(BiFunction<V, U, V>) sackOperator, string, elementPropertyKey) //Deprecated internal virtual void Sample(GremlinToSqlContext currentContext, GremlinKeyword.Scope scope, int amountToSample, GremlinToSqlContext probabilityContext) { GremlinSampleVariable newVariable = new GremlinSampleVariable(scope, amountToSample, probabilityContext); currentContext.VariableList.Add(newVariable); currentContext.TableReferences.Add(newVariable); }
public GremlinOrderVariable(GremlinVariable inputVariable, List <Tuple <object, IComparer> > byModulatingMap, GremlinKeyword.Scope scope) : base(GremlinVariableType.Table) { ByModulatingMap = byModulatingMap; Scope = scope; InputVariable = inputVariable; }
public GremlinRangeOp(int low, int high, GremlinKeyword.Scope scope, bool isReverse = false) { Low = low; High = high; Scope = scope; IsReverse = isReverse; }
public GremlinSampleVariable(GremlinKeyword.Scope scope, int amountToSample, GremlinToSqlContext probabilityContext) : base(GremlinVariableType.Table) { Scope = scope; AmountToSample = amountToSample; ProbabilityContext = probabilityContext; }
public GremlinSampleVariable(GremlinVariable inputVariable, GremlinKeyword.Scope scope, int amountToSample, GremlinToSqlContext probabilityContext) : base(inputVariable.GetVariableType()) { this.InputVariable = inputVariable; this.Scope = scope; this.AmountToSample = amountToSample; this.ProbabilityContext = probabilityContext; }
public GremlinDedupVariable(GremlinVariable inputVariable, List <GremlinVariable> dedupVariables, GremlinToSqlContext dedupContext, GremlinKeyword.Scope scope) : base(inputVariable.GetVariableType()) { this.InputVariable = inputVariable; this.DedupVariables = new List <GremlinVariable>(dedupVariables); this.DedupContext = dedupContext; this.Scope = scope; }
public GremlinDedupVariable(GremlinVariable inputVariable, List <GremlinVariable> dedupVariables, GremlinToSqlContext dedupContext, GremlinKeyword.Scope scope) : base(GremlinVariableType.Table) { InputVariable = inputVariable; DedupVariables = new List <GremlinVariable>(dedupVariables); DedupContext = dedupContext; Scope = scope; }
public GraphTraversal2 Count(GremlinKeyword.Scope scope) { if (scope == GremlinKeyword.Scope.global) { AddGremlinOperator(new GremlinCountOp(scope)); } else { AddGremlinOperator(new GremlinCountOp(scope)); } return(this); }
public GraphTraversal2 Limit(GremlinKeyword.Scope scope, int limit) { if (scope == GremlinKeyword.Scope.Global) { this.AddOperator(new GremlinRangeGlobalOp(0, limit)); } else { this.AddOperator(new GremlinRangeLocalOp(0, limit)); } return(this); }
public GraphTraversal2 Dedup(GremlinKeyword.Scope scope, params string[] dedupLabels) { if (scope == GremlinKeyword.Scope.Global) { this.AddOperator(new GremlinDedupGlobalOp(dedupLabels)); } else { this.AddOperator(new GremlinDedupLocalOp(dedupLabels)); } return(this); }
public GraphTraversal2 Tail(GremlinKeyword.Scope scope) { if (scope == GremlinKeyword.Scope.Global) { this.AddOperator(new GremlinRangeGlobalOp(0, 1, true)); } else { this.AddOperator(new GremlinRangeLocalOp(0, 1, true)); } return(this); }
public GraphTraversal2 Sample(GremlinKeyword.Scope scope, int amountToSample) { if (scope == GremlinKeyword.Scope.Global) { this.AddOperator(new GremlinSampleGlobalOp(amountToSample)); } else { this.AddOperator(new GremlinSampleLocalOp(amountToSample)); } return(this); }
public GraphTraversal2 Range(GremlinKeyword.Scope scope, int low, int high) { if (scope == GremlinKeyword.Scope.Global) { this.AddOperator(new GremlinRangeGlobalOp(low, high)); } else { this.AddOperator(new GremlinRangeLocalOp(low, high)); } return(this); }
public GraphTraversal2 Order(GremlinKeyword.Scope scope) { if (scope == GremlinKeyword.Scope.Global) { this.AddOperator(new GremlinOrderGlobalOp()); } else { this.AddOperator(new GremlinOrderLocalOp()); } return(this); }
internal virtual void Range(GremlinToSqlContext currentContext, int low, int high, GremlinKeyword.Scope scope, bool isReverse) { GremlinRangeVariable newVariable = new GremlinRangeVariable(this, low, high, scope, isReverse); currentContext.VariableList.Add(newVariable); currentContext.TableReferences.Add(newVariable); }
internal virtual void Dedup(GremlinToSqlContext currentContext, List <string> dedupLabels, GremlinToSqlContext dedupContext, GremlinKeyword.Scope scope) { List <GremlinVariable> dedupVariables = new List <GremlinVariable>(); foreach (var dedupLabel in dedupLabels) { dedupVariables.Add(currentContext.Select(dedupLabel).Last()); } GremlinDedupVariable newVariable = new GremlinDedupVariable(this, dedupVariables, dedupContext, scope); currentContext.VariableList.Add(newVariable); currentContext.TableReferences.Add(newVariable); }
internal virtual void Order(GremlinToSqlContext currentContext, List <Tuple <object, IComparer> > byModulatingMap, GremlinKeyword.Scope scope) { GremlinOrderVariable newVariable = new GremlinOrderVariable(this, byModulatingMap, scope); currentContext.VariableList.Add(newVariable); currentContext.TableReferences.Add(newVariable); }
public GremlinDedupOp(GremlinKeyword.Scope scope, params string[] dedupLabels) { DedupLabels = new List <string>(dedupLabels); Scope = scope; }
internal override void Sample(GremlinToSqlContext currentContext, GremlinKeyword.Scope scope, int amountToSample, GremlinToSqlContext probabilityContext) { this.IsTraversalToBound = true; base.Sample(currentContext, scope, amountToSample, probabilityContext); }
internal override void Range(GremlinToSqlContext currentContext, int low, int high, GremlinKeyword.Scope scope, bool isReverse) { this.IsTraversalToBound = true; base.Range(currentContext, low, high, scope, isReverse); }
public GremlinRangeVariable(GremlinVariable inputVariable, int low, int high, GremlinKeyword.Scope scope, bool isReverse) : base(GremlinVariableType.Table) { InputVaribale = inputVariable; Low = low; High = high; IsLocal = scope != GremlinKeyword.Scope.global; IsReverse = isReverse; }
public GraphTraversal2 Sum(GremlinKeyword.Scope scope) { AddGremlinOperator(new GremlinSumOp(scope)); return(this); }
public GremlinSampleOp(GremlinKeyword.Scope scope, int amountToSample) { Scope = scope; AmountToSample = amountToSample; }
public GremlinRangeVariable(GremlinVariable inputVariable, int low, int high, GremlinKeyword.Scope scope, bool isReverse) : base(inputVariable.GetVariableType()) { this.InputVariable = inputVariable; this.Low = low; this.High = high; this.Scope = scope; this.IsReverse = isReverse; }
public GraphTraversal2 Range(GremlinKeyword.Scope scope, int low, int high) { AddGremlinOperator(new GremlinRangeOp(low, high, scope)); return(this); }
public GremlinCountOp(GremlinKeyword.Scope scope) { Scope = scope; }
public GraphTraversal2 tail(GremlinKeyword.Scope scope, int limit) { AddGremlinOperator(new GremlinRangeOp(0, limit, scope, true)); return(this); }
internal override void Dedup(GremlinToSqlContext currentContext, List <string> dedupLabels, GraphTraversal dedupTraversal, GremlinKeyword.Scope scope) { this.IsTraversalToBound = scope == GremlinKeyword.Scope.Global; base.Dedup(currentContext, dedupLabels, dedupTraversal, scope); }
public GremlinMinOp(GremlinKeyword.Scope scope) { Scope = scope; }
internal override void Order(GremlinToSqlContext currentContext, List <Tuple <GremlinToSqlContext, IComparer> > byModulatingMap, GremlinKeyword.Scope scope) { this.IsTraversalToBound = true; base.Order(currentContext, byModulatingMap, scope); }