static void calcAssocationSignificance(String ent1_index, String ent2_index, String geo_index, BasicDBObject assoc, HashMap<String, EntSigHolder> entitySet)
{
double dPythag = 0.0;
if (null != ent1_index) {
EntSigHolder ent = entitySet.get(ent1_index);
if (null != ent) {
if (null != ent.masterAliasSH) { // (for the 3 indexes, use the aliased version if it exists)
ent = ent.masterAliasSH;
}
assoc.put(AssociationPojo.entity1_sig_, ent.datasetSignificance);
dPythag += ent.datasetSignificance*ent.datasetSignificance;
}
}
if (null != ent2_index) {
EntSigHolder ent = entitySet.get(ent2_index);
if (null != ent) {
if (null != ent.masterAliasSH) {
ent = ent.masterAliasSH;
}
assoc.put(AssociationPojo.entity2_sig_, ent.datasetSignificance);
dPythag += ent.datasetSignificance*ent.datasetSignificance;
}
}
if (null != geo_index) {
EntSigHolder ent = entitySet.get(geo_index);
if (null != ent) {
if (null != ent.masterAliasSH) {
ent = ent.masterAliasSH;
}
assoc.put(AssociationPojo.geo_sig_, ent.datasetSignificance);