Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        private void Reconstruct(StreamingContext context)
        {
            EnumeratorOperator enumeratorOp = subqueryOp.GetFirstOperator() as EnumeratorOperator;

            this.container = new Container();
            enumeratorOp.SetContainer(this.container);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
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);
     }
 }
Ejemplo n.º 9
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);
        }
Ejemplo n.º 10
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);
            }
        }
Ejemplo n.º 11
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);
        }