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; }
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; }
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; }
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])); } }
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"); }
protected UnionOperator(SerializationInfo info, StreamingContext context) { this.traversalList = GraphViewSerializer.DeserializeList <GraphViewExecutionOperator>(info, "traversalList"); this.inputOp = (GraphViewExecutionOperator)info.GetValue("inputOp", typeof(GraphViewExecutionOperator)); this.needInitialize = true; }
protected Compose2(SerializationInfo info, StreamingContext context) { this.inputOfCompose2 = GraphViewSerializer.DeserializeList <ScalarFunction>(info, "inputOfCompose2"); }
protected WMultiPartIdentifier(SerializationInfo info, StreamingContext context) { this.Identifiers = GraphViewSerializer.DeserializeList <Identifier>(info, "Identifiers"); }