public interface JFSIndexRepository
Modifier and Type | Method and Description |
---|---|
<T extends TOP> |
getAllIndexedFS(int aType)
Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its
subtypes).
|
<T extends TOP> |
getAllIndexedFS(Type aType)
Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its
subtypes).
|
AnnotationIndex<Annotation> |
getAnnotationIndex()
Get the standard annotation index.
|
<T extends Annotation> |
getAnnotationIndex(int type)
Get the standard annotation index restricted to a specific annotation type.
|
FSIndexRepository |
getFSIndexRepository()
Get the underlying FSIndexRepository associated with this JFSIndexRepository.
|
<T extends TOP> |
getIndex(String label)
Retrieve an index according to a label.
|
<T extends TOP> |
getIndex(String label,
int type)
Retrieve an index according to a label and a type.
|
Iterator<FSIndex<TOP>> |
getIndexes()
Get all indexes in this repository.
|
Iterator<String> |
getLabels()
Get all labels for all indexes.
|
<T extends TOP> FSIndex<T> getIndex(String label)
T
- the Java class corresponding to the top most type defined by this indexlabel
- The name of the index.label
, or null
if no such index
is defined.<T extends TOP> FSIndex<T> getIndex(String label, int type)
T
- the Java class corresponding to the typelabel
- The name of the indextype
- A subtype of the type of the index, written as Foo.typenull
if an index with that name doesn't exist,
or it exists but type
is not a subtype of the index's type.AnnotationIndex<Annotation> getAnnotationIndex()
<T extends Annotation> AnnotationIndex<T> getAnnotationIndex(int type)
T
- the Java class corresponding to typetype
- The annotation type the index is restricted to, written as Foo.typetype
.Iterator<FSIndex<TOP>> getIndexes()
FSIndexRepository getFSIndexRepository()
<T extends TOP> FSIterator<T> getAllIndexedFS(Type aType)
Limitation: If there are no sorted or bag indexes defined for this type, but there is more than one set index defined, then this method will only return the contents of one of these set indexes (chosen arbitrarily). Generics: The returned Java cover class may not be a JCas one.
T
- the Java Class corresponding to aTypeaType
- The typeaType
,
in no particular order.<T extends TOP> FSIterator<T> getAllIndexedFS(int aType)
Limitation: If there are no sorted or bag indexes defined for this type, but there is more than one set index defined, then this method will only return the contents of one of these set indexes (chosen arbitrarily). Generics: The returned Java cover class may not be a JCas one.
T
- the Java Class corresponding to aTypeaType
- The type obtained by doing MyJCasClass.typeaType
,
in no particular order.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.