reduce function (key, values) { var sum = 0; for (var i = 0; i < values.length; i++) sum += values[i]; return sum; } // map function () { emit(this.description, 1); }
final long serialVersionUID = -1782980951; private static final PathInits INITS = PathInits.DIRECT; public static final QPost post = new QPost("post"); public final QUser author; public final ListPath<Comment, QComment> comments = this.<Comment, QComment>createList("comments", Comment.class, QComment.class, PathInits.DIRECT); public final StringPath content = createString("content"); public final org.joda.time.QDateTime createdAt; public final org.bson.types.QObjectId id; Type-Safe criteria API
static final long serialVersionUID = -1782980951; private static final PathInits INITS = PathInits.DIRECT; public static final QPost post = new QPost("post"); public final QUser author; public final ListPath<Comment, QComment> comments = this.<Comment, QComment>createList("comments", Comment.class, QComment.class, PathInits.DIRECT); public final StringPath content = createString("content"); public final org.joda.time.QDateTime createdAt; public final org.bson.types.QObjectId id; Type-Safe criteria API