querqy.elasticsearch.aggregation.InternalDecorationAggregation Maven / Gradle / Ivy
package querqy.elasticsearch.aggregation;
import org.elasticsearch.Version;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.metrics.ScriptedMetric;
import org.elasticsearch.xcontent.XContentBuilder;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import static java.util.Collections.singletonList;
public class InternalDecorationAggregation extends InternalAggregation implements ScriptedMetric {
private final List