FilteredIterator is very slow

2014-03-31 Thread Kline, Larry
When I use a filtered FSIterator it's an order of magnitude slower than a non-filtered iterator. Here's my code: Create the iterator: private FSIteratorAnnotation createConstrainedIterator(JCas aJCas) throws CASException { FSIteratorAnnotation it =

Re: FilteredIterator is very slow

2014-03-31 Thread Thomas Ginter
Larry, A faster way to get the list of types that you will skip would be to do the following: FSIndexTitlePersonHonorificAnnotation titlePersonHAIndex = aJCas.getAnnotationIndex(TitlePersonHonorificAnnotation.type); Doing this for each type will yield an index that points to just the