Class JCoReHashMapAnnotationIndex<K extends Comparable<K>,​T extends org.apache.uima.jcas.tcas.Annotation>

  • Type Parameters:
    T - The annotation type the index is over.
    K - The key type used to index the annotations.
    All Implemented Interfaces:
    JCoReAnnotationIndex<T>

    public class JCoReHashMapAnnotationIndex<K extends Comparable<K>,​T extends org.apache.uima.jcas.tcas.Annotation>
    extends JCoReMapAnnotationIndex<K,​T>

    Use when: You basically just need a map that maps from some key to annotations associated with that key.

    A trivial subclass of JCoReMapAnnotationIndex that uses a HashMap index.
    Author:
    faessler
    • Constructor Detail

      • JCoReHashMapAnnotationIndex

        public JCoReHashMapAnnotationIndex​(IndexTermGenerator<K> indexTermGenerator,
                                           IndexTermGenerator<K> searchTermGenerator,
                                           org.apache.uima.jcas.JCas jCas,
                                           org.apache.uima.cas.Type type)
      • JCoReHashMapAnnotationIndex

        public JCoReHashMapAnnotationIndex​(IndexTermGenerator<K> indexTermGenerator,
                                           IndexTermGenerator<K> searchTermGenerator,
                                           org.apache.uima.jcas.JCas jCas,
                                           int type)