public GremlinAddVVariable(string vertexLabel, List <object> vertexProperties, bool isFirstTableReference = false) { VertexProperties = new List <object>(vertexProperties); VertexLabel = vertexLabel; IsFirstTableReference = isFirstTableReference; ProjectedProperties.Add(GremlinKeyword.Label); }
internal override void PopulateLocalPath() { if (ProjectedProperties.Contains(GremlinKeyword.Path)) { return; } ProjectedProperties.Add(GremlinKeyword.Path); RepeatContext.PopulateLocalPath(); }
internal void Populate(string property) { if (ProjectedProperties.Contains(property)) { return; } ProjectedProperties.Add(property); PivotVariable.Populate(property); }
public GremlinAddETableVariable(GremlinVariable inputVariable, string edgeLabel) { EdgeProperties = new List <object>(); EdgeLabel = edgeLabel; InputVariable = inputVariable; EdgeType = WEdgeType.OutEdge; OtherVIndex = 1; ProjectedProperties.Add(GremlinKeyword.Label); }
internal override void PopulateLocalPath() { if (ProjectedProperties.Contains(GremlinKeyword.Path)) { return; } ProjectedProperties.Add(GremlinKeyword.Path); this.LocalContext.PopulateLocalPath(); this.LocalPathLengthLowerBound = this.LocalContext.MinPathLength; }
internal override void Populate(string property) { if (ProjectedProperties.Contains(property)) { return; } ProjectedProperties.Add(property); UnfoldVariable.Populate(property); }
internal override void PopulateLocalPath() { if (ProjectedProperties.Contains(GremlinKeyword.Path)) { return; } ProjectedProperties.Add(GremlinKeyword.Path); foreach (var context in UnionContextList) { context.PopulateLocalPath(); } }
internal override void Property(GremlinToSqlContext currentContext, GremlinProperty vertexProperty) { vertexProperty.Cardinality = GremlinKeyword.PropertyCardinality.list; if (PropertyFromAddVParameters.ContainsKey(vertexProperty.Key)) { foreach (var property in PropertyFromAddVParameters[vertexProperty.Key]) { VertexProperties.Remove(property); } } ProjectedProperties.Add(vertexProperty.Key); VertexProperties.Add(vertexProperty); }
internal void PopulateLocalPath() { if (ContextLocalPath != null) { return; } ProjectedProperties.Add(GremlinKeyword.Path); foreach (var step in StepList) { step.PopulateLocalPath(); } GremlinLocalPathVariable newVariable = new GremlinLocalPathVariable(StepList); VariableList.Add(newVariable); TableReferences.Add(newVariable); ContextLocalPath = newVariable; }
internal override void PopulateLocalPath() { if (ProjectedProperties.Contains(GremlinKeyword.Path)) { return; } ProjectedProperties.Add(GremlinKeyword.Path); if (PredicateContext != null) { TrueChoiceContext.PopulateLocalPath(); FalseChocieContext.PopulateLocalPath(); } else { foreach (var option in Options) { option.Value.PopulateLocalPath(); } } }
public GremlinAddVVariable(string vertexLabel, List <GremlinProperty> vertexProperties, bool isFirstTableReference = false) { VertexProperties = new List <GremlinProperty>(vertexProperties); VertexLabel = vertexLabel; IsFirstTableReference = isFirstTableReference; ProjectedProperties.Add(GremlinKeyword.Label); PropertyFromAddVParameters = new Dictionary <string, List <GremlinProperty> >(); foreach (var property in vertexProperties) { ProjectedProperties.Add(property.Key); if (PropertyFromAddVParameters.ContainsKey(property.Key)) { PropertyFromAddVParameters[property.Key].Add(property); } else { PropertyFromAddVParameters[property.Key] = new List <GremlinProperty> { property }; } } }
internal override void PopulateLocalPath() { if (ProjectedProperties.Contains(GremlinKeyword.Path)) { return; } ProjectedProperties.Add(GremlinKeyword.Path); if (this.PredicateContext != null) { this.TrueChoiceContext.PopulateLocalPath(); this.FalseChocieContext.PopulateLocalPath(); this.LocalPathLengthLowerBound = Math.Min(this.TrueChoiceContext.MinPathLength, this.FalseChocieContext.MinPathLength); } else { this.LocalPathLengthLowerBound = Int32.MaxValue; foreach (var option in this.Options) { option.Value.PopulateLocalPath(); this.LocalPathLengthLowerBound = Math.Min(this.LocalPathLengthLowerBound, option.Value.MinPathLength); } } }
public GremlinDerivedTableVariable(GremlinToSqlContext subqueryContext) { SubqueryContext = subqueryContext; ProjectedProperties.Add(GremlinKeyword.ScalarValue); }
internal override void Property(GremlinToSqlContext currentContext, List <object> properties) { ProjectedProperties.Add(properties.First() as string); VertexProperties.AddRange(properties); }
internal override void Property(GremlinToSqlContext currentContext, GremlinProperty property) { ProjectedProperties.Add(property.Key); EdgeProperties.Add(property); }
public GremlinInjectVariable(GremlinVariable inputVariable, object injection) : base(GremlinVariableType.Table) { InputVariable = inputVariable; Injection = injection; ProjectedProperties.Add(GremlinKeyword.TableDefaultColumnName); }