All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.up.uca.jooq.ActionGroup Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.uca.jooq;

import io.vertx.core.json.JsonObject;
import io.vertx.up.util.Ut;

import java.util.List;
import java.util.concurrent.ConcurrentMap;

/**
 * @author Lang
 */
class ActionGroup extends AbstractAggregator {
    private transient final ActionFetch fetch;

    ActionGroup(final JqAnalyzer analyzer) {
        super(analyzer);
        this.fetch = new ActionFetch(analyzer);
    }

     ConcurrentMap> group(final String field) {
        final List dataList = this.fetch.fetchAll();
        return Ut.elementGroup(dataList, t -> Ut.field(t, field), v -> v);
    }

     ConcurrentMap> group(final JsonObject criteria, final String field) {
        final List dataList = this.fetch.fetch(criteria);
        return Ut.elementGroup(dataList, t -> Ut.field(t, field), v -> v);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy