protected override DtOp GetRequestOp() { var op = new DtOp(); op.map_op = Populate(mapOptions.Op); return(op); }
protected override DtOp GetRequestOp() { var op = new DtOp(); op.counter_op = new CounterOp(); op.counter_op.increment = counterOptions.Increment; return(op); }
protected override DtOp GetRequestOp() { var op = new DtOp(); op.hll_op = new HllOp(); if (EnumerableUtil.NotNullOrEmpty(hllOptions.Additions)) { op.hll_op.adds.AddRange(hllOptions.Additions); } return(op); }
protected override DtOp GetRequestOp() { var op = new DtOp(); op.set_op = new SetOp(); if (EnumerableUtil.NotNullOrEmpty(setOptions.Additions)) { op.set_op.adds.AddRange(setOptions.Additions); } if (EnumerableUtil.NotNullOrEmpty(setOptions.Removals)) { op.set_op.removes.AddRange(setOptions.Removals); } return op; }