org.codelibs.elasticsearch.taste.writer.ResultWriter Maven / Gradle / Ivy
package org.codelibs.elasticsearch.taste.writer;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.codelibs.elasticsearch.taste.TasteConstants;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.bulk.BulkRequestBuilder;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.logging.ESLogger;
import org.elasticsearch.common.logging.Loggers;
public class ResultWriter extends AbstractWriter {
private static final ESLogger logger = Loggers
.getLogger(ResultWriter.class);
protected volatile Queue