|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JFSIndexRepository
Provides the same function as the FSIndexRepository except that the variants that take a "type" argument take type arguments obtainable easily from the JCas type.
Method Summary | |
---|---|
FSIterator<TOP> |
getAllIndexedFS(int aType)
Gets an iterator over all indexed FeatureStructures of the specified Type (and any of its subtypes). |
FSIterator<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. |
AnnotationIndex<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. |
FSIndex<TOP> |
getIndex(String label)
Retrieve an index according to a label. |
FSIndex<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. |
Method Detail |
---|
FSIndex<TOP> getIndex(String label)
label
- The name of the index.
label
, or null
if no such index
is defined.FSIndex<TOP> getIndex(String label, int type)
label
- The name of the indextype
- A subtype of the type of the index, written as Foo.type
null
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()
AnnotationIndex<Annotation> getAnnotationIndex(int type)
type
- The annotation type the index is restricted to, written as Foo.type
type
.Iterator<String> getLabels()
Iterator<FSIndex<TOP>> getIndexes()
FSIndexRepository getFSIndexRepository()
FSIterator<TOP> 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).
aType
- The type
aType
,
in no particular order.FSIterator<TOP> 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).
aType
- The type obtained by doing MyJCasClass.type
aType
,
in no particular order.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |