1 13 14 package mondrian.olap; 15 16 import mondrian.calc.ParameterSlot; 17 import java.util.List ; 18 import java.util.Locale ; 19 20 28 public interface Evaluator { 29 30 33 Cube getCube(); 34 35 38 Query getQuery(); 39 40 45 Evaluator push(Member[] members); 46 47 51 Evaluator push(); 52 53 58 Evaluator push(Member member); 59 60 63 Evaluator pop(); 64 65 72 Member setContext(Member member); 73 74 void setContext(List <Member> memberList); 75 76 void setContext(Member[] members); 77 78 Member getContext(Dimension dimension); 79 80 83 Object evaluateCurrent(); 84 85 90 public String getFormatString(); 91 92 96 String format(Object o); 97 98 102 String format(Object o, String formatString); 103 104 110 int getDepth(); 111 112 115 Evaluator getParent(); 116 117 120 Locale getConnectionLocale(); 121 122 129 Object getProperty(String name, Object defaultValue); 130 131 135 SchemaReader getSchemaReader(); 136 137 145 Object getCachedResult(ExpCacheDescriptor key); 146 147 158 boolean isNonEmpty(); 159 160 164 void setNonEmpty(boolean nonEmpty); 165 166 171 RuntimeException newEvalException(Object context, String s); 172 173 176 Object evaluateNamedSet(String name, Exp exp); 177 178 181 Member[] getMembers(); 182 183 187 int getMissCount(); 188 189 193 Object getParameterValue(ParameterSlot slot); 194 195 198 int getIterationLength(); 199 200 205 void setIterationLength(int length); 206 207 210 boolean isEvalAxes(); 211 212 217 void setEvalAxes(boolean evalAxes); 218 } 219 220 | Popular Tags |