コード例 #1
0
        protected ChooseWithOptionsOperator(SerializationInfo info, StreamingContext context)
        {
            this.inputOp     = (GraphViewExecutionOperator)info.GetValue("inputOp", typeof(GraphViewExecutionOperator));
            this.targetSubOp = (GraphViewExecutionOperator)info.GetValue("targetSubOp", typeof(GraphViewExecutionOperator));

            List <FieldObject> traversalListTuple1 =
                GraphViewSerializer.DeserializeList <FieldObject>(info, "traversalListTuple1");
            List <GraphViewExecutionOperator> traversalListTuple3 =
                GraphViewSerializer.DeserializeList <GraphViewExecutionOperator>(info, "traversalListTuple3");

            this.traversalList = new List <Tuple <FieldObject, Container, GraphViewExecutionOperator> >();
            Debug.Assert(traversalListTuple1.Count == traversalListTuple3.Count);
            for (int i = 0; i < traversalListTuple1.Count; i++)
            {
                this.traversalList.Add(new Tuple <FieldObject, Container, GraphViewExecutionOperator>(
                                           traversalListTuple1[i], new Container(), traversalListTuple3[i]));
            }

            this.optionNoneTraversalOp = (GraphViewExecutionOperator)info.GetValue("optionNoneTraversalOp", typeof(GraphViewExecutionOperator));

            this.selectOption   = new List <int>();
            this.currentIndex   = 0;
            this.outputBuffer   = new Queue <RawRecord>();
            this.needInitialize = true;
        }
コード例 #2
0
ファイル: MapOperators.cs プロジェクト: seanliu96/GraphView
 protected CoalesceOperator(SerializationInfo info, StreamingContext context)
 {
     this.traversalList = GraphViewSerializer.DeserializeList <GraphViewExecutionOperator>(info, "traversalList");
     this.inputOp       = (GraphViewExecutionOperator)info.GetValue("inputOp", typeof(GraphViewExecutionOperator));
     this.outputBuffer  = new SortedDictionary <int, Queue <RawRecord> >();
     this.batchSize     = KW_DEFAULT_BATCH_SIZE;
 }
コード例 #3
0
 protected OptionalOperator(SerializationInfo info, StreamingContext context)
 {
     this.inputIndexes      = GraphViewSerializer.DeserializeList <int>(info, "inputIndexes");
     this.inputOp           = (GraphViewExecutionOperator)info.GetValue("inputOp", typeof(GraphViewExecutionOperator));
     this.targetSubQueryOp  = (GraphViewExecutionOperator)info.GetValue("targetSubQueryOp", typeof(GraphViewExecutionOperator));
     this.optionalTraversal = (GraphViewExecutionOperator)info.GetValue("optionalTraversal", typeof(GraphViewExecutionOperator));
     this.currentIndex      = 0;
     this.haveOutput        = new HashSet <int>();
     this.needInitialize    = true;
 }
コード例 #4
0
        protected CapFunction(SerializationInfo info, StreamingContext context)
        {
            List <string> labels = GraphViewSerializer.DeserializeList <string>(info, "labels");
            AdditionalSerializationInfo additionalInfo = (AdditionalSerializationInfo)context.Context;

            this.sideEffectFunction = new List <Tuple <string, IAggregateFunction> >();
            foreach (string label in labels)
            {
                this.sideEffectFunction.Add(new Tuple <string, IAggregateFunction>(label, additionalInfo.SideEffectFunctions[label]));
            }
        }
コード例 #5
0
ファイル: ScalarFunction.cs プロジェクト: seanliu96/GraphView
        protected ComposeCompositeField(SerializationInfo info, StreamingContext context)
        {
            List <string> targetFieldsAndTheirNames1 =
                GraphViewSerializer.DeserializeList <string>(info, "targetFieldsAndTheirNames1");
            List <int> targetFieldsAndTheirNames2 =
                GraphViewSerializer.DeserializeList <int>(info, "targetFieldsAndTheirNames2");

            this.targetFieldsAndTheirNames = new List <Tuple <string, int> >();
            Debug.Assert(targetFieldsAndTheirNames1.Count == targetFieldsAndTheirNames2.Count);
            for (int i = 0; i < targetFieldsAndTheirNames1.Count; i++)
            {
                this.targetFieldsAndTheirNames.Add(new Tuple <string, int>(targetFieldsAndTheirNames1[i], targetFieldsAndTheirNames2[i]));
            }

            this.defaultProjectionKey = info.GetString("defaultProjectionKey");
        }
コード例 #6
0
 protected UnionOperator(SerializationInfo info, StreamingContext context)
 {
     this.traversalList  = GraphViewSerializer.DeserializeList <GraphViewExecutionOperator>(info, "traversalList");
     this.inputOp        = (GraphViewExecutionOperator)info.GetValue("inputOp", typeof(GraphViewExecutionOperator));
     this.needInitialize = true;
 }
コード例 #7
0
ファイル: ScalarFunction.cs プロジェクト: seanliu96/GraphView
 protected Compose2(SerializationInfo info, StreamingContext context)
 {
     this.inputOfCompose2 = GraphViewSerializer.DeserializeList <ScalarFunction>(info, "inputOfCompose2");
 }
コード例 #8
0
 protected WMultiPartIdentifier(SerializationInfo info, StreamingContext context)
 {
     this.Identifiers = GraphViewSerializer.DeserializeList <Identifier>(info, "Identifiers");
 }