protected ContainmentIndex()

in uimafit-core/src/main/java/org/apache/uima/fit/util/ContainmentIndex.java [67:88]


  protected ContainmentIndex(CAS cas, org.apache.uima.cas.Type aSuper,
          org.apache.uima.cas.Type aUnder, Type aType) {
    Collection<AnnotationFS> over = select(cas, aSuper);
    for (AnnotationFS s : over) {
      Collection<AnnotationFS> under = selectCovered(cas, aUnder, s);
      for (AnnotationFS u : under) {
        switch (aType) {
          case DIRECT: {
            put(data, s, u);
            break;
          }
          case REVERSE:
            put(dataRev, u, s);
            break;
          case BOTH:
            put(data, s, u);
            put(dataRev, u, s);
            break;
        }
      }
    }
  }