Search in sources :

Example 1 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method filter.

// ===================================================================================
//                                                                     Aggregation Set
//                                                                           =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsUserInfoCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    UserInfoCQ cq = new UserInfoCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder) UserInfoCQ(org.codelibs.fess.es.log.cbean.cq.UserInfoCQ) BsUserInfoCQ(org.codelibs.fess.es.log.cbean.cq.bs.BsUserInfoCQ) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 2 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method setCreatedAt_DateHistogram.

public void setCreatedAt_DateHistogram(String name, ConditionOptionCall<DateHistogramAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    DateHistogramAggregationBuilder builder = regDateHistogramA(name, "createdAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateHistogramAggregationBuilder(org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 3 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method setCreatedAt_Missing.

public void setCreatedAt_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "createdAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Example 4 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method sampler.

public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    SamplerAggregationBuilder builder = regSamplerA(name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : SamplerAggregationBuilder(org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder) UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA)

Example 5 with UserInfoCA

use of org.codelibs.fess.es.log.cbean.ca.UserInfoCA in project fess by codelibs.

the class BsUserInfoCA method setUpdatedAt_Missing.

public void setUpdatedAt_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsUserInfoCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "updatedAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserInfoCA ca = new UserInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : UserInfoCA(org.codelibs.fess.es.log.cbean.ca.UserInfoCA) MissingAggregationBuilder(org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)

Aggregations

UserInfoCA (org.codelibs.fess.es.log.cbean.ca.UserInfoCA)9 DateHistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)2 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)2 DateRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.date.DateRangeAggregationBuilder)2 UserInfoCQ (org.codelibs.fess.es.log.cbean.cq.UserInfoCQ)1 BsUserInfoCQ (org.codelibs.fess.es.log.cbean.cq.bs.BsUserInfoCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1