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

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

The newest version!
/*
 * Copyright 2021, 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 com.yahoo.elide.datastores.aggregation.queryengines.sql.query.SQLMetricProjection;

import java.util.Map;

/**
 * Default maker which constructs a SQLMetricProjection.
 */
public class DefaultMetricProjectionMaker implements MetricProjectionMaker {
    @Override
    public MetricProjection make(Metric metric, String alias, Map arguments) {
        return new SQLMetricProjection(metric, alias, arguments);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy