Package de.julielab.jcore.utility.index
Class JCoReHashMapAnnotationIndex<K extends Comparable<K>,T extends org.apache.uima.jcas.tcas.Annotation>
- java.lang.Object
-
- de.julielab.jcore.utility.index.JCoReMapAnnotationIndex<K,T>
-
- de.julielab.jcore.utility.index.JCoReHashMapAnnotationIndex<K,T>
-
- 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 ofJCoReMapAnnotationIndexthat uses a HashMap index.- Author:
- faessler
-
-
Field Summary
-
Fields inherited from class de.julielab.jcore.utility.index.JCoReMapAnnotationIndex
index, indexAnnotationStorageSupplier, indexTermGenerator, searchTermGenerator
-
-
Constructor Summary
Constructors Constructor Description JCoReHashMapAnnotationIndex(IndexTermGenerator<K> indexTermGenerator, IndexTermGenerator<K> searchTermGenerator)JCoReHashMapAnnotationIndex(IndexTermGenerator<K> indexTermGenerator, IndexTermGenerator<K> searchTermGenerator, org.apache.uima.jcas.JCas jCas, int type)JCoReHashMapAnnotationIndex(IndexTermGenerator<K> indexTermGenerator, IndexTermGenerator<K> searchTermGenerator, org.apache.uima.jcas.JCas jCas, org.apache.uima.cas.Type type)
-
-
-
Constructor Detail
-
JCoReHashMapAnnotationIndex
public JCoReHashMapAnnotationIndex(IndexTermGenerator<K> indexTermGenerator, IndexTermGenerator<K> searchTermGenerator)
-
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)
-
-