Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONDRIAN: Third round of integration for Mondrian 3.0.4, including ch…
…anges that don't impact APIs, includes changes: 11116: Fixed copyright per Julian. 11135: Upgrade to xerces 2.6 (2.3 doesn't play well with JDK 1.6); Restore cell range check (an olap4j test broke because this was disabled). 11136: Downgrade to xerces 2.5 (2.6 checks XML schema validity, which causes a couple of problems). Upgrade to xmlunit 1.1. Fix a log file. 11138: testing Perforce trigger for properly prefixed checkin comments; this submit should pass. 11139: expose Measure constructor so temporary rolap star measures can be created 11144: add helper class CustomizedFunctionTable and tests. Also fix a problem where "*" function needs to look recursively down the stack for its expected output type. 11146: include the test class added in 11144 to the main test suite. 11150: Goal: Re-use Mondrian schema validation code from Workbench. Solution: Low-risk refactor that removed dependencies on Swing and Workbench (mondrian.gui.*). Added validate subpackage to mondrian.gui package since validate classes still have a dependency on MondrianGuiDef. Moved validation code to ValidationUtils. 11151: add a missing object test to CustomizedParser test 11154: expose Cutomized Parser support using the Connection interface. 11157: one more interface needs to be made public for Customized Parser. 11164: adding more test cases for Customized Parser. 11171: Expose parser behavior control for allowing invalid members via the Connection interface. 11180: move public interfaces related to customized parser to public class methods. 11184: javadoc improvement for 11180. Also correct a comment in mondrian.properties file. 11189: Do not resolve ivy dependencies if 'skip.downloads' is set. You can specify this from the command line using 'ant -Dskip.downloads ...'. [git-p4: depot-paths = "//open/mondrian-release/3.0/": change = 11278]
- Loading branch information
Will Gorman
committed
Jul 8, 2008
1 parent
02f52ef
commit 5782451
Showing
16 changed files
with
1,295 additions
and
2,214 deletions.
There are no files selected for viewing
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// $Id$ | ||
package mondrian.olap.fun; | ||
|
||
import java.util.*; | ||
|
||
import mondrian.olap.*; | ||
|
||
/** | ||
* Interface to build a customized function table, selecting functions from the set of | ||
* supported functions in BuiltInFunTable instance. | ||
* | ||
* @author Rushan Chen | ||
* @version $Id$ | ||
*/ | ||
public class CustomizedFunctionTable extends FunTableImpl { | ||
|
||
Set<String> supportedBuiltInFunctions; | ||
Set<FunDef> specialFunctions; | ||
|
||
public CustomizedFunctionTable(Set<String> buildInFunctions) { | ||
supportedBuiltInFunctions = buildInFunctions; | ||
this.specialFunctions = new HashSet<FunDef>(); | ||
} | ||
|
||
public CustomizedFunctionTable(Set<String> buildInFunctions, Set<FunDef> specialFunctions) { | ||
supportedBuiltInFunctions = buildInFunctions; | ||
this.specialFunctions = specialFunctions; | ||
} | ||
|
||
protected void defineFunctions() { | ||
final FunTable builtinFunTable = BuiltinFunTable.instance(); | ||
|
||
// Includes all the keywords form builtin function table | ||
for (String reservedWord : builtinFunTable.getReservedWords()) { | ||
defineReserved(reservedWord); | ||
} | ||
|
||
// Add supported builtin functions | ||
for (Resolver resolver : builtinFunTable.getResolvers()) { | ||
if (supportedBuiltInFunctions.contains(resolver.getName())) { | ||
define(resolver); | ||
} | ||
} | ||
|
||
// Add special function definitions | ||
for (FunDef funDef : specialFunctions) { | ||
define(funDef); | ||
} | ||
} | ||
} | ||
|
||
// End CustomizedFunctionTable.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
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
Oops, something went wrong.