Esempio n. 1
0
        private void Reconstruct(StreamingContext context)
        {
            EnumeratorOperator enumeratorOp = subqueryOp.GetFirstOperator() as EnumeratorOperator;

            this.container = new Container();
            enumeratorOp.SetContainer(this.container);
        }
Esempio n. 2
0
        private void Reconstruct(StreamingContext context)
        {
            this.container = new Container();
            // enumeratorOp maybe is null. for example: g.V().count()
            EnumeratorOperator enumeratorOp = this.derivedQueryOp.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp?.SetContainer(this.container);
        }
Esempio n. 3
0
        private void Reconstruct(StreamingContext context)
        {
            this.groupState = new GroupState("");
            this.container  = new Container();
            EnumeratorOperator enumeratorOp = (this.aggregateOp.GetFirstOperator() as EnumeratorOperator);

            enumeratorOp.SetContainer(this.container);
        }
Esempio n. 4
0
        private void Reconstruct(StreamingContext context)
        {
            this.groupedStates = new Dictionary <FieldObject, List <RawRecord> >();
            this.container     = new Container();
            EnumeratorOperator enumeratorOp = this.aggregateOp.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp.SetContainer(this.container);
        }
Esempio n. 5
0
 private void Reconstruct(StreamingContext context)
 {
     this.container = new Container();
     foreach (GraphViewExecutionOperator traversal in this.traversalList)
     {
         EnumeratorOperator enumeratorOp = traversal.GetFirstOperator() as EnumeratorOperator;
         enumeratorOp.SetContainer(this.container);
     }
 }
Esempio n. 6
0
        private void Reconstruct(StreamingContext context)
        {
            this.inputBatch = new List <RawRecord>();

            this.container = new Container();
            EnumeratorOperator enumeratorOp = this.localTraversal.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp.SetContainer(this.container);
        }
Esempio n. 7
0
        private void Reconstruct(StreamingContext context)
        {
            this.targetContainer = new Container();
            EnumeratorOperator enumeratorOp = this.targetSubQueryOp.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp.SetContainer(this.targetContainer);

            this.optionalContainer = new Container();
            enumeratorOp           = this.optionalTraversal.GetFirstOperator() as EnumeratorOperator;
            enumeratorOp.SetContainer(this.optionalContainer);
        }
Esempio n. 8
0
        private void Reconstruct(StreamingContext context)
        {
            this.inputBatch     = new List <RawRecord>();
            this.batchSize      = KW_DEFAULT_BATCH_SIZE;
            this.inputRecordSet = new HashSet <int>();

            this.container = new Container();
            EnumeratorOperator enumeratorOp = this.mapTraversal.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp.SetContainer(this.container);
        }
Esempio n. 9
0
        private void Reconstruct(StreamingContext context)
        {
            this.currentRepeatTimes = 0;
            this.repeatRecords      = new List <RawRecord>();
            this.repeatResultBuffer = new Queue <RawRecord>();
            this.needInitialize     = true;

            this.initialContainer = new Container();
            EnumeratorOperator enumeratorOp = this.initialOp.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp.SetContainer(this.initialContainer);

            this.repeatTraversalContainer = new Container();
            enumeratorOp = this.repeatTraversalOp.GetFirstOperator() as EnumeratorOperator;
            enumeratorOp.SetContainer(this.repeatTraversalContainer);
        }
Esempio n. 10
0
 public QueryCompilationContext(QueryCompilationContext parentContext)
 {
     CurrentExecutionOperator = parentContext.CurrentExecutionOperator;
     TemporaryTableCollection = parentContext.TemporaryTableCollection;
     RawRecordLayout          = new Dictionary <WColumnReferenceExpression, int>(parentContext.RawRecordLayout,
                                                                                 new WColumnReferenceExpressionComparer());
     TableReferences = new HashSet <string>(parentContext.TableReferences);
     OuterContextOp  = new EnumeratorOperator();
     CarryOn         = false;
     ParentContextRawRecordLayout = new Dictionary <WColumnReferenceExpression, int>(
         parentContext.RawRecordLayout, new WColumnReferenceExpressionComparer());
     SideEffectStates      = parentContext.SideEffectStates;
     SideEffectFunctions   = parentContext.SideEffectFunctions;
     Containers            = parentContext.Containers;
     CurrentExecutionOrder = new ExecutionOrder(parentContext.CurrentExecutionOrder);
     LocalExecutionOrders  = new List <ExecutionOrder>();
 }
Esempio n. 11
0
        private void Reconstruct(StreamingContext context)
        {
            this.chooseBranch   = new List <bool>();
            this.needInitialize = true;

            this.container = new Container();
            EnumeratorOperator enumeratorOp = this.targetSubQueryOp.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp.SetContainer(this.container);

            this.trueBranchContainer = new Container();
            enumeratorOp             = this.trueBranchTraversalOp.GetFirstOperator() as EnumeratorOperator;
            enumeratorOp.SetContainer(this.trueBranchContainer);

            this.falseBranchContainer = new Container();
            enumeratorOp = this.falseBranchTraversalOp.GetFirstOperator() as EnumeratorOperator;
            enumeratorOp.SetContainer(this.falseBranchContainer);
        }
Esempio n. 12
0
        private void Reconstruct(StreamingContext context)
        {
            this.container = new Container();
            EnumeratorOperator enumeratorOp = this.targetSubOp.GetFirstOperator() as EnumeratorOperator;

            enumeratorOp.SetContainer(this.container);

            if (this.optionNoneTraversalOp != null)
            {
                this.optionNoneContainer = new Container();
                enumeratorOp             = this.optionNoneTraversalOp.GetFirstOperator() as EnumeratorOperator;
                enumeratorOp.SetContainer(this.optionNoneContainer);
            }

            foreach (Tuple <FieldObject, Container, GraphViewExecutionOperator> tuple in this.traversalList)
            {
                enumeratorOp = tuple.Item3.GetFirstOperator() as EnumeratorOperator;
                enumeratorOp.SetContainer(tuple.Item2);
            }
        }