fixed map-reduce
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/GenerateMapReduceCouchbase@157579 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
09115443b7
commit
8ee2055930
|
@ -10,12 +10,13 @@ function(doc,meta) {
|
|||
var timestamp = Number(doc.creationTime);
|
||||
var date = new Date(timestamp);
|
||||
var dataKey = [];
|
||||
dataKey.push(doc.operationType);
|
||||
dataKey.push(date.getUTCFullYear());
|
||||
dataKey.push(date.getUTCMonth()+1);
|
||||
dataKey.push(date.getUTCDate());
|
||||
dataKey.push(date.getUTCHours());
|
||||
dataKey.push(date.getUTCMinutes());
|
||||
dataKey.push(doc.operationType);
|
||||
|
||||
|
||||
emit(dataKey, data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue