Skip to content

Commit

Permalink
MONDRIAN-PACINO: Makes the method SegmentCacheIndexImpl.getAllHeaders…
Browse files Browse the repository at this point in the history
…() public only for the implementation, not the interface.

[git-p4: depot-paths = "//open/mondrian-release/pacino/": change = 14785]
  • Loading branch information
lucboudreau committed Nov 22, 2011
1 parent 8979eb3 commit 08b0a20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/main/mondrian/rolap/CacheControlImpl.java
Expand Up @@ -15,6 +15,7 @@
import mondrian.rolap.agg.SegmentCacheManager;
import mondrian.rolap.agg.SegmentHeader;
import mondrian.rolap.agg.SegmentHeader.ConstrainedColumn;
import mondrian.rolap.cache.SegmentCacheIndexImpl;
import mondrian.rolap.sql.MemberChildrenConstraint;
import mondrian.server.Execution;
import mondrian.server.Locus;
Expand Down Expand Up @@ -503,7 +504,8 @@ public void printCacheState(
new SegmentCacheManager.Command<Void>() {
public Void call() throws Exception {
final List<SegmentHeader> headers =
manager.segmentIndex.getAllHeaders();
((SegmentCacheIndexImpl)manager.segmentIndex)
.getAllHeaders();
for (SegmentHeader header : headers) {
pw.println(header.getDescription());
}
Expand Down
7 changes: 0 additions & 7 deletions src/main/mondrian/rolap/cache/SegmentCacheIndex.java
Expand Up @@ -57,13 +57,6 @@ void add(
* Removes a header from the index.
*/
void remove(SegmentHeader header);

/**
* Returns a list of all the segment headers that are currently
* indexed.
* <p>Use this method only for testing, as it may result
*/
List<SegmentHeader> getAllHeaders();
}

// End SegmentCacheIndex.java

0 comments on commit 08b0a20

Please sign in to comment.