
com.hmsonline.storm.elasticsearch.trident.ElasticSearchStateFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of storm-elastic-search Show documentation
Show all versions of storm-elastic-search Show documentation
Storm Elastic Search Support
The newest version!
//
// Copyright (c) 2013 Health Market Science, Inc.
//
package com.hmsonline.storm.elasticsearch.trident;
import java.util.Map;
import backtype.storm.task.IMetricsContext;
import storm.trident.state.State;
import storm.trident.state.StateFactory;
public class ElasticSearchStateFactory implements StateFactory {
/**
*
*/
private static final long serialVersionUID = -6363900741883372326L;
@SuppressWarnings("rawtypes")
@Override
public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
return new ElasticSearchState(conf);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy