1 12 package mondrian.olap; 13 14 import mondrian.calc.Calc; 15 16 import javax.sql.DataSource ; 17 import java.util.List ; 18 19 30 public interface SchemaReader { 31 35 Role getRole(); 36 37 43 Member[] getHierarchyRootMembers(Hierarchy hierarchy); 44 45 50 int getChildrenCountFromCache(Member member); 51 52 62 int getLevelCardinality( 63 Level level, boolean approximate, boolean materialize); 64 65 70 Member[] getMemberChildren(Member member); 71 72 85 Member[] getMemberChildren(Member member, Evaluator context); 86 87 92 Member[] getMemberChildren(Member[] members); 93 Member[] getMemberChildren(Member[] members, Evaluator context); 94 95 101 Member getMemberParent(Member member); 102 103 104 124 int getMemberDepth(Member member); 125 126 135 Member getMemberByUniqueName( 136 String [] uniqueNameParts, boolean failIfNotFound, MatchType matchType); 137 138 Member getMemberByUniqueName( 139 String [] uniqueNameParts, boolean failIfNotFound); 140 141 160 OlapElement lookupCompound( 161 OlapElement parent, 162 String [] names, 163 boolean failIfNotFound, 164 int category, 165 MatchType matchType); 166 167 OlapElement lookupCompound( 168 OlapElement parent, 169 String [] names, 170 boolean failIfNotFound, 171 int category); 172 173 177 Member getCalculatedMember(String [] nameParts); 178 179 183 NamedSet getNamedSet(String [] nameParts); 184 185 190 void getMemberRange( 191 Level level, Member startMember, Member endMember, List <Member> list); 192 193 199 Member getLeadMember(Member member, int n); 200 201 213 int compareMembersHierarchically(Member m1, Member m2); 214 215 219 OlapElement getElementChild( 220 OlapElement parent, String name, MatchType matchType); 221 222 OlapElement getElementChild(OlapElement parent, String name); 223 224 227 Member[] getLevelMembers(Level level, boolean includeCalculated); 228 229 237 Member[] getLevelMembers(Level level, Evaluator context); 238 239 245 Level[] getHierarchyLevels(Hierarchy hierarchy); 246 247 251 Member getHierarchyDefaultMember(Hierarchy hierarchy); 252 253 256 boolean isDrillable(Member member); 257 258 261 boolean isVisible(Member member); 262 263 266 Cube[] getCubes(); 267 268 271 List <Member> getCalculatedMembers(Hierarchy hierarchy); 272 273 276 List <Member> getCalculatedMembers(Level level); 277 278 281 List <Member> getCalculatedMembers(); 282 283 286 Member lookupMemberChildByName( 287 Member parent, String childName, MatchType matchType); 288 289 Member lookupMemberChildByName(Member parent, String childName); 290 291 300 NativeEvaluator getNativeSetEvaluator( 301 FunDef fun, Exp[] args, Evaluator evaluator, Calc calc); 302 303 307 Parameter getParameter(String name); 308 309 DataSource getDataSource(); 310 } 311 312 | Popular Tags |