forked from prestodb/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
src/main/java/com/facebook/presto/metadata/FunctionInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
package com.facebook.presto.metadata; | ||
|
||
import com.facebook.presto.aggregation.AggregationFunction; | ||
|
||
import javax.inject.Provider; | ||
|
||
public class FunctionInfo | ||
{ | ||
private boolean isAggregate; | ||
private final boolean isAggregate; | ||
private final Provider<AggregationFunction> provider; | ||
|
||
public FunctionInfo(boolean aggregate) | ||
public FunctionInfo(boolean aggregate, Provider<AggregationFunction> provider) | ||
{ | ||
isAggregate = aggregate; | ||
this.provider = provider; | ||
} | ||
|
||
public boolean isAggregate() | ||
{ | ||
return isAggregate; | ||
} | ||
|
||
public Provider<AggregationFunction> getProvider() | ||
{ | ||
return provider; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters