[ 
https://issues.apache.org/jira/browse/LENS-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14600832#comment-14600832
 ] 

Himanshu Gahlaut commented on LENS-630:
---------------------------------------

Here is another alternative for QueryCost interface. This attempts to hide the 
float value and still achieve the objective of calculating cumulative query 
cost:

{code}

public interface QueryCost {

    /* Adds queryCost to this queryCost and returns a new QueryCost */
    QueryCost add(final QueryCost queryCost);

    /* For comparison */
    int compareTo(final QueryCost queryCost);    

    /* LOW, MEDIUM, HIGH*/
    QueryCostType getQueryCostType();
    
}

{code}

> Using Duration and Fact Weight Based Query Cost Calculator for Hive Driver
> --------------------------------------------------------------------------
>
>                 Key: LENS-630
>                 URL: https://issues.apache.org/jira/browse/LENS-630
>             Project: Apache Lens
>          Issue Type: Improvement
>            Reporter: Himanshu Gahlaut
>            Assignee: Rajat Khandelwal
>
> Along with this, we can add a new field in QueryCost to return the query cost 
> calculated by the implementation. normalizedQueryCost could be one name for 
> that field.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to