Examples of JresSearchReply


Examples of com.blacklocus.jres.response.search.JresSearchReply

    }

    @Override
    public List<QSTaskModel> findTasks(FindTasks findTasks) {
        JresSearchBody search = new JresSearchBody().size(100);
        JresSearchReply reply = jres.quest(new JresSearch(index, ElasticSearchQSLogService.INDEX_TYPE_TASK, search));
        return Lists.transform(reply.getHitsAsType(QSTaskElasticSearchModel.class), new Function<QSTaskElasticSearchModel, QSTaskModel>() {
            @Override
            public QSTaskModel apply(QSTaskElasticSearchModel input) {
                return input.toNormalModel();
            }
        });
View Full Code Here

Examples of com.blacklocus.jres.response.search.JresSearchReply

    }

    @Override
    public List<QSLogModel> findLogs(FindLogs findLogs) {
        JresSearchBody search = new JresSearchBody().size(100);
        JresSearchReply reply = jres.quest(new JresSearch(index, ElasticSearchQSLogService.INDEX_TYPE_TASK_LOG, search));
        return Lists.transform(reply.getHitsAsType(QSLogElasticSearchModel.class), new Function<QSLogElasticSearchModel, QSLogModel>() {
            @Override
            public QSLogModel apply(QSLogElasticSearchModel input) {
                return input.toNormalModel();
            }
        });
View Full Code Here

Examples of com.blacklocus.jres.response.search.JresSearchReply

    }

    @Override
    public List<QSWorkerModel> findWorkers(FindWorkers findWorkers) {
        JresSearchBody search = new JresSearchBody().size(100);
        JresSearchReply reply = jres.quest(new JresSearch(index, ElasticSearchQSLogService.INDEX_TYPE_WORKER, search));
        return reply.getHitsAsType(QSWorkerModel.class);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.