public class JFSIndexRepositoryImpl extends Object implements JFSIndexRepository
Modifier and Type | Method and Description |
---|---|
FSIterator |
getAllIndexedFS(int aType)
Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its
subtypes).
|
FSIterator |
getAllIndexedFS(Type aType)
Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its
subtypes).
|
AnnotationIndex |
getAnnotationIndex()
Get the standard annotation index.
|
AnnotationIndex |
getAnnotationIndex(int type)
Get the standard annotation index restricted to a specific annotation type.
|
FSIndexRepository |
getFSIndexRepository()
Get the underlying FSIndexRepository associated with this JFSIndexRepository.
|
FSIndex |
getIndex(String label)
Retrieve an index according to a label.
|
FSIndex |
getIndex(String label,
int type)
Retrieve an index according to a label and a type.
|
Iterator |
getIndexes()
Get all indexes in this repository.
|
Iterator |
getLabels()
Get all labels for all indexes.
|
public FSIndex getIndex(String label)
JFSIndexRepository
getIndex
in interface JFSIndexRepository
label
- The name of the index.label
, or null
if no such index
is defined.public FSIndex getIndex(String label, int type)
JFSIndexRepository
getIndex
in interface JFSIndexRepository
label
- 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.public AnnotationIndex getAnnotationIndex()
JFSIndexRepository
getAnnotationIndex
in interface JFSIndexRepository
public AnnotationIndex getAnnotationIndex(int type)
JFSIndexRepository
getAnnotationIndex
in interface JFSIndexRepository
type
- The annotation type the index is restricted to, written as Foo.typetype
.public Iterator getLabels()
JFSIndexRepository
getLabels
in interface JFSIndexRepository
public Iterator getIndexes()
JFSIndexRepository
getIndexes
in interface JFSIndexRepository
public FSIndexRepository getFSIndexRepository()
JFSIndexRepository
getFSIndexRepository
in interface JFSIndexRepository
public FSIterator getAllIndexedFS(Type aType)
JFSIndexRepository
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).
getAllIndexedFS
in interface JFSIndexRepository
aType
- The typeaType
,
in no particular order.public FSIterator getAllIndexedFS(int aType)
JFSIndexRepository
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).
getAllIndexedFS
in interface JFSIndexRepository
aType
- The type obtained by doing MyJCasClass.typeaType
,
in no particular order.Copyright © 2015. All rights reserved.