Exemple #1
0
 public void setIndexes(List<CIndex> indexes) {
   this.indexes = Maps.newHashMap();
   this.indexesIndexedByFields = Maps.newTreeMap();
   for (CIndex index : indexes) {
     this.indexes.put(index.getName(), index);
     this.indexesIndexedByFields.put(index.getKey(), index);
   }
 }
Exemple #2
0
 public Collection<String> getRequiredFields() {
   Map<String, String> ret = Maps.newHashMap();
   if (indexes != null) {
     for (CIndex i : indexes.values()) {
       for (String key : i.getCompositeKeyList()) {
         ret.put(key, key);
       }
     }
   }
   return ret.values();
 }