Пример #1
0
        public GroupSideEffectOperator(
            GraphViewExecutionOperator inputOp,
            GroupFunction groupState,
            ScalarFunction groupByKeyFunction)
        {
            this.inputOp            = inputOp;
            this.GroupState         = groupState;
            this.groupByKeyFunction = groupByKeyFunction;

            this.Open();
        }
Пример #2
0
 public GroupSideEffectOperator(
     GraphViewExecutionOperator inputOp,
     GroupFunction groupFunction,
     string sideEffectKey,
     ScalarFunction groupByKeyFunction)
 {
     this.inputOp            = inputOp;
     this.groupFunction      = groupFunction;
     this.groupByKeyFunction = groupByKeyFunction;
     this.sideEffectKey      = sideEffectKey;
     this.Open();
 }
Пример #3
0
        private void Reconstruct(StreamingContext context)
        {
            AdditionalSerializationInfo additionalInfo = (AdditionalSerializationInfo)context.Context;

            this.groupFunction = (GroupFunction)additionalInfo.SideEffectFunctions[this.sideEffectKey];
        }