public class JFSIndexRepositoryImpl extends java.lang.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(java.lang.String label)
Retrieve an index according to a label.
|
FSIndex |
getIndex(java.lang.String label,
int type)
Retrieve an index according to a label and a type.
|
java.util.Iterator |
getIndexes()
Get all indexes in this repository.
|
java.util.Iterator |
getLabels()
Get all labels for all indexes.
|
public FSIndex getIndex(java.lang.String label)
JFSIndexRepositorygetIndex in interface JFSIndexRepositorylabel - The name of the index.label, or null if no such index
is defined.public FSIndex getIndex(java.lang.String label, int type)
JFSIndexRepositorygetIndex in interface JFSIndexRepositorylabel - 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()
JFSIndexRepositorygetAnnotationIndex in interface JFSIndexRepositorypublic AnnotationIndex getAnnotationIndex(int type)
JFSIndexRepositorygetAnnotationIndex in interface JFSIndexRepositorytype - The annotation type the index is restricted to, written as Foo.typetype.public java.util.Iterator getLabels()
JFSIndexRepositorygetLabels in interface JFSIndexRepositorypublic java.util.Iterator getIndexes()
JFSIndexRepositorygetIndexes in interface JFSIndexRepositorypublic FSIndexRepository getFSIndexRepository()
JFSIndexRepositorygetFSIndexRepository in interface JFSIndexRepositorypublic FSIterator getAllIndexedFS(Type aType)
JFSIndexRepositoryLimitation: 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 JFSIndexRepositoryaType - The typeaType,
in no particular order.public FSIterator getAllIndexedFS(int aType)
JFSIndexRepositoryLimitation: 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 JFSIndexRepositoryaType - The type obtained by doing MyJCasClass.typeaType,
in no particular order.Copyright © 2013. All Rights Reserved.