public class JCoReAnnotationIndexMerger extends Object
| Constructor and Description |
|---|
JCoReAnnotationIndexMerger(Set<?> annotationTypes,
boolean sort,
org.apache.uima.cas.text.AnnotationFS coveringAnnotation,
org.apache.uima.jcas.JCas aJCas)
Constructs a new annotation index merger.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
firstToken() |
org.apache.uima.jcas.cas.TOP |
getAnnotation() |
int |
getCurrentBegin() |
int |
getCurrentEnd() |
boolean |
hasBeginOffsetChanged() |
boolean |
incrementAnnotation() |
protected boolean |
moveIterator(boolean initialize) |
protected void |
setCurrentAnnotation() |
void |
setCurrentBegin(int currentBegin) |
void |
setCurrentEnd(int currentEnd) |
public JCoReAnnotationIndexMerger(Set<?> annotationTypes, boolean sort, org.apache.uima.cas.text.AnnotationFS coveringAnnotation, org.apache.uima.jcas.JCas aJCas) throws ClassNotFoundException
annotationTypes - The CAS integer constant of the types, the qualified Java class
names of the types or the Type object of the types to
merge the annotation indexes.sort - If set to true, the annotations will be returned sorted ascendingly by begin offset.coveringAnnotation - May be null. If given, the returned annotations will be restricted to those covered by the given annotation.aJCas - The CAS containing the annotations.ClassNotFoundExceptionpublic boolean firstToken()
public org.apache.uima.jcas.cas.TOP getAnnotation()
public int getCurrentBegin()
public int getCurrentEnd()
public boolean hasBeginOffsetChanged()
public boolean incrementAnnotation()
protected boolean moveIterator(boolean initialize)
protected void setCurrentAnnotation()
public void setCurrentBegin(int currentBegin)
public void setCurrentEnd(int currentEnd)
Copyright © 2018 JULIE Lab Jena, Germany. All rights reserved.