void MR_kv_add_multi_dynamic(void *KVptr, int n, char *key, int *keybytes, char *value, int *valuebytes) { KeyValue *kv = (KeyValue *) KVptr; kv->add(n,key,keybytes,value,valuebytes); }
void MR_kv_add_kv(void *MRptr, void *MRptr2) { KeyValue *kv = ((MapReduce *) MRptr)->kv; KeyValue *kv2 = ((MapReduce *) MRptr2)->kv; kv->add(kv2); }
void MR_kv_add(void *KVptr, char *key, int keybytes, char *value, int valuebytes) { KeyValue *kv = (KeyValue *) KVptr; kv->add(key,keybytes,value,valuebytes); }