Ejemplo n.º 1
0
        internal virtual void Group(GremlinToSqlContext currentContext, string sideEffectKey, List <object> parameters)
        {
            GremlinGroupVariable newVariable = new GremlinGroupVariable(this, sideEffectKey, parameters);

            currentContext.VariableList.Add(newVariable);
            currentContext.TableReferences.Add(newVariable);
            if (sideEffectKey == null)
            {
                currentContext.SetPivotVariable(newVariable);
            }
        }
Ejemplo n.º 2
0
        internal virtual void Group(GremlinToSqlContext currentContext, string sideEffectKey, GremlinToSqlContext groupByContext,
                                    GremlinToSqlContext projectByContext, bool isProjectingACollection)
        {
            GremlinGroupVariable newVariable = new GremlinGroupVariable(this, sideEffectKey, groupByContext, projectByContext, isProjectingACollection);

            currentContext.VariableList.Add(newVariable);
            currentContext.TableReferences.Add(newVariable);
            if (sideEffectKey == null)
            {
                currentContext.SetPivotVariable(newVariable);
            }
        }