membercache.java

来自「数据仓库展示程序」· Java 代码 · 共 62 行

JAVA
62
字号
/*
// $Id: //open/mondrian/src/main/mondrian/rolap/MemberCache.java#6 $
// 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.
// (C) Copyright 2001-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 22 December, 2001
*/

package mondrian.rolap;

import java.util.List;

/**
 * A <code>MemberCache</code> can retrieve members based upon their parent and
 * name.
 *
 * @author jhyde
 * @since 22 December, 2001
 * @version $Id: //open/mondrian/src/main/mondrian/rolap/MemberCache.java#6 $
 **/
interface MemberCache {
    /** 
     * Creates a key with which to {@link #get} or {@link #put} the {@link
     * RolapMember} with a given parent and key. 
     **/
    Object makeKey(RolapMember parent, Object key);
    /** 
     * Retrieves the {@link RolapMember} with a given key (created by {@link
     * #makeKey}). 
     **/
    RolapMember getMember(Object key);
    /** 
     * Replaces the {@link RolapMember} with a given key (created by {@link
     * #makeKey}). Returns the previous member with that key, or null. 
     **/
    Object putMember(Object key, RolapMember value);
    /** 
     * Returns whether this cache currently knows the children of
     * <code>member</code>. 
     */
    boolean hasChildren(RolapMember member);
    
    /** 
     * Returns whether this cache currently knows the members of
     * <code>level</code>. 
     */
    boolean hasLevelMembers(RolapLevel level);
    
    /** 
     * Registers that the children of <code>member</code> are
     * <code>children</code> (a list of {@link RolapMember}s). 
     */
    void putChildren(RolapMember member, List children);
}


// End MemberCache.java

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?