T - The annotation type the index is over.K - The key type used to index the annotations.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 ofJCoReMapAnnotationIndex that uses a HashMap
index.index, indexAnnotationStorageSupplier, indexTermGenerator, searchTermGenerator| Constructor and 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) |
public JCoReHashMapAnnotationIndex(IndexTermGenerator<K> indexTermGenerator, IndexTermGenerator<K> searchTermGenerator)
public JCoReHashMapAnnotationIndex(IndexTermGenerator<K> indexTermGenerator, IndexTermGenerator<K> searchTermGenerator, org.apache.uima.jcas.JCas jCas, org.apache.uima.cas.Type type)
public JCoReHashMapAnnotationIndex(IndexTermGenerator<K> indexTermGenerator, IndexTermGenerator<K> searchTermGenerator, org.apache.uima.jcas.JCas jCas, int type)
Copyright © 2018 JULIE Lab Jena, Germany. All rights reserved.