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

com.yahoo.elide.datastores.aggregation.query.MetricProjectionMaker Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2020, Yahoo Inc.
 * Licensed under the Apache License, Version 2.0
 * See LICENSE file in project root for terms.
 */
package com.yahoo.elide.datastores.aggregation.query;

import com.yahoo.elide.core.request.Argument;
import com.yahoo.elide.datastores.aggregation.metadata.models.Metric;

import java.util.Map;

/**
 * Creates a metric projection for a given metric and client arguments.
 */
@FunctionalInterface
public interface MetricProjectionMaker {

    /**
     * Constructs a metric projection from a Metric, alias, and arguments.
     * @param metric the metric that is being projected.
     * @param alias the client assigned alias.
     * @param arguments The client provided arguments.
     * @return A new metric projection.
     */
    MetricProjection make(Metric metric, String alias, Map arguments);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy