Interface FsIndexDescription
- All Superinterfaces:
Cloneable
,MetaDataObject
,Serializable
,XMLizable
- All Known Implementing Classes:
FsIndexDescription_impl
A description of a CAS feature structure index. This implements
MetaDataObject
,
which implements XMLizable
, so it can be serialized to and
deserialized from an XML element.-
Field Summary
Modifier and TypeFieldDescriptionstatic final FsIndexDescription[]
static final String
Identifies a Bag index.static final String
Identifies a Set index.static final String
Identifies a Sorted index. -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()
Gets the keys for this index.getKind()
Gets the "kind" of index.getLabel()
Gets the label of this index.Gets the Type name for this index.void
setKeys
(FsIndexKeyDescription[] aKeys) Sets the keys for this index.void
Sets the "kind" of index.void
Sets the label of this index.void
setTypeName
(String aTypeName) Sets the Type name for this index.Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Field Details
-
EMPTY_FS_INDEX_DESCRIPTIONS
-
KIND_SORTED
Identifies a Sorted index.- See Also:
-
KIND_SET
Identifies a Set index.- See Also:
-
KIND_BAG
Identifies a Bag index.- See Also:
-
-
Method Details
-
getLabel
String getLabel()Gets the label of this index. This is the identifier used to retrieve the index from the CAS's Index Repository.- Returns:
- the label of this index.
-
setLabel
Sets the label of this index. This is the identifier used to retrieve the index from the CAS's Index Repository.- Parameters:
aLabel
- the label of this index.
-
getTypeName
String getTypeName()Gets the Type name for this index. This determines what type of FeatureStructures are contained in the index.- Returns:
- the type name for this index
-
setTypeName
Sets the Type name for this index. This determines what type of FeatureStructures are contained in the index.- Parameters:
aTypeName
- the type name for this index
-
getKind
String getKind()Gets the "kind" of index. There are currently three kinds of indexes - "sorted", "set", and "bag" (seeFSIndex
for definitions). If this isnull
, "sorted" is assumed as the default.- Returns:
- the kind of index
-
setKind
Sets the "kind" of index. There are currently three kinds of indexes - sorted, set, and bag (seeFSIndex
for definitions). If this isnull
, "sorted" is assumed as the default.- Parameters:
aKind
- the kind of index
-
getKeys
FsIndexKeyDescription[] getKeys()Gets the keys for this index. The keys determine the ordering of FeatureStructures in this index.- Returns:
- the keys for this index
-
setKeys
Sets the keys for this index. The keys determine the ordering of FeatureStructures in this index.- Parameters:
aKeys
- the keys for this index
-