|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexManagementService
IndexManagementService allows the Sedna XML:DB user to create, remove and list current value indexes within the Sedna XML Database.
This interface class is proprietary to the Sedna XML:DB API and is not part of the original XML:DB specification.
Field Summary | |
---|---|
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
---|---|
void |
createIndex(java.lang.String indexId,
java.lang.String on,
java.lang.String by,
java.lang.String type)
Creates an index of nodes on a collection specified by the given arguments. |
void |
createIndexOnResource(java.lang.String indexId,
java.lang.String resourceId,
java.lang.String on,
java.lang.String by,
java.lang.String type)
Creates an index of nodes on a document specified by the given arguments. |
java.lang.String[] |
listIndexes()
Retrieve a list of current indexes held within the database. |
void |
removeIndex(java.lang.String indexId)
Remove an index from the database based on the indexId argument. |
Methods inherited from interface org.xmldb.api.base.Service |
---|
getName, getVersion, setCollection |
Methods inherited from interface org.xmldb.api.base.Configurable |
---|
getProperty, setProperty |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
Method Detail |
---|
void createIndex(java.lang.String indexId, java.lang.String on, java.lang.String by, java.lang.String type) throws XMLDBException
indexId
- is the title of the index created. It should be unique for each index in the database.on
- is an XPath expression without any filter expressions that identifies the nodes of a collection that are to be indexed.by
- is an XPath expression without any filter expressions that specifies the relative path to the nodes whose string-values are used as keys to identify the nodes returned by the on argument.type
- is an atomic type which the value of the keys should be cast to.
XMLDBException
void createIndexOnResource(java.lang.String indexId, java.lang.String resourceId, java.lang.String on, java.lang.String by, java.lang.String type) throws XMLDBException
indexId
- is the title of the index created. It should be unique for each index in the database.resourceId
- is the document within the Collection to create an index on.on
- is an XPath expression without any filter expressions that identifies the nodes of the document that are to be indexed.by
- is an XPath expression without any filter expressions that specifies the relative path to the nodes whose string-values are used as keys to identify the nodes returned by the on argument.type
- is an atomic type which the value of the keys should be cast to.
XMLDBException
void removeIndex(java.lang.String indexId) throws XMLDBException
indexId
- is the title of the index which will be deleted.
XMLDBException
java.lang.String[] listIndexes() throws XMLDBException
XMLDBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |