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

org.vertexium.elasticsearch.BulkRequestWithCount Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.vertexium.elasticsearch;

import org.elasticsearch.action.bulk.BulkRequest;

public class BulkRequestWithCount {
    private BulkRequest bulkRequest;
    private int count;

    public BulkRequestWithCount() {
        clear();
    }

    public BulkRequest getBulkRequest() {
        return bulkRequest;
    }

    public int getCount() {
        return count;
    }

    public void clear() {
        bulkRequest = new BulkRequest();
        count = 0;
    }

    public void incrementCount() {
        count++;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy