Created
April 13, 2016 11:16
-
-
Save ahodroj/24637a8c1f1d40eb2e2ca8e21474e87d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class AdjustPriceSqlFunction extends SqlFunction { | |
@Override | |
public Object apply(SqlFunctionExecutionContext context) { | |
// Add 20% | |
return (Double)context.getArgument(0) * 1.2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment