示例#1
0
 public Object property(String key) {
   Object o = super.property(key);
   if (o == null) {
     if (!calculatedNominal && NominalStats.creates(key)) {
       makeNominalStats();
       o = super.property(key);
     }
     if (!calculatedNumeric && NumericStats.creates(key)) {
       if (!calculatedNominal) makeNominalStats();
       makeNumericStats();
       o = super.property(key);
     }
     if (!calculatedDate && DateStats.creates(key)) {
       if (!calculatedNominal) makeNominalStats();
       if (!calculatedNumeric) makeNumericStats();
       makeDateStats();
       o = super.property(key);
     }
   }
   return o;
 }
示例#2
0
 private void makeNominalStats() {
   if (provider != null) NominalStats.populate(this);
   calculatedNominal = true;
 }