Skip to content

Commit

Permalink
MONDRIAN: add Tests for NON EMPTY Optimization
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 4447]
  • Loading branch information
Andreas Voss committed Nov 21, 2005
1 parent a2e7a94 commit 147328d
Show file tree
Hide file tree
Showing 3 changed files with 647 additions and 9 deletions.
36 changes: 36 additions & 0 deletions src/main/mondrian/rolap/cache/HardSmartCache.java
@@ -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();
}

}

0 comments on commit 147328d

Please sign in to comment.