Ejemplo n.º 1
0
        public MapReduceTaskCommand(object mapper, object reducer, object combiner,
                                    object inputProvider, string taskId, MROutputOption option, short callbackId,
                                    object keyFilter, string query, object parameters, int methodOverload)
        {
            if (mapper is byte[])
            {
                this.mapper = (byte[])mapper;
            }
            if (reducer is byte[])
            {
                this.reducer = (byte[])reducer;
            }
            if (combiner is byte[])
            {
                this.combiner = (byte[])combiner;
            }

            if (inputProvider is byte[])
            {
                this.inputProvider = (byte[])inputProvider;
            }

            if (keyFilter is byte[])
            {
                this.keyFilter = (byte[])keyFilter;
            }
            if (parameters is byte[])
            {
                this.parameters = (byte[])parameters;
            }

            this.query      = query;
            this.taskId     = taskId;
            this.callbackId = callbackId;
            _methodOverload = methodOverload;
            if (option == MROutputOption.IN_MEMORY)
            {
                this.outputOption = 0;
            }
        }
Ejemplo n.º 2
0
 public virtual void ExecuteMapReduceTask(MapReduceTask task, string taskId, MROutputOption option,
                                          short callbackId, IKeyFilter keyfilter, string query, Hashtable parameters)
 {
 }