Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONDRIAN: add Tests for NON EMPTY Optimization
[git-p4: depot-paths = "//open/mondrian/": change = 4447]
- Loading branch information
Andreas Voss
committed
Nov 21, 2005
1 parent
a2e7a94
commit 147328d
Showing
3 changed files
with
647 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
//This software is subject to the terms of the Common Public License | ||
//Agreement, available at the following URL: | ||
//http://www.opensource.org/licenses/cpl.html. | ||
//Copyright (C) 2004-2005 TONBELLER AG | ||
//All Rights Reserved. | ||
//You must accept the terms of that agreement to use this software. | ||
*/ | ||
package mondrian.rolap.cache; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* a SmartCache implementation that uses hard references. Used for testing | ||
*/ | ||
public class HardSmartCache implements SmartCache { | ||
Map cache = new HashMap(); | ||
|
||
public Object put(Object key, Object value) { | ||
return cache.put(key, value); | ||
} | ||
|
||
public Object get(Object key) { | ||
return cache.get(key); | ||
} | ||
|
||
public void clear() { | ||
cache.clear(); | ||
} | ||
|
||
public int size() { | ||
return cache.size(); | ||
} | ||
|
||
} |
Oops, something went wrong.