com.yahoo.elide.datastores.aggregation.query.DefaultMetricProjectionMaker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elide-datastore-aggregation Show documentation
Show all versions of elide-datastore-aggregation Show documentation
Elide Data Store for Aggregation
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);
}
}