public class KeyDefinitionSet
extends java.lang.Object
Constructor and Description |
---|
KeyDefinitionSet(StructuredQName keyName,
int keySetNumber)
Create a key definition set for keys sharing a given name
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyDefinition(KeyDefinition keyDef)
Add a key definition to this set of key definitions.
|
java.lang.String |
getCollationName()
Get the name of the collation used for this key
|
java.util.List<KeyDefinition> |
getKeyDefinitions()
Get the key definitions in this set
|
StructuredQName |
getKeyName()
Get the name of the key definitions in this set (they all share the same name)
|
int |
getKeySetNumber()
Get the KeySet number.
|
boolean |
isBackwardsCompatible()
Ask if the keys are to be evaluated in backwards compatible mode
|
boolean |
isComposite()
Ask whether this is a composite key
|
boolean |
isRangeKey()
Ask if this is a range key
|
boolean |
isReusable()
Ask whether this key definition set is reusable across transformations, that is, if
the index built for a particular document is shareable across transformations.
|
void |
setReusable(boolean reusable)
Say whether this key definition set is reusable across transformations, that is, if
the index built for a particular document is shareable across transformations.
|
public KeyDefinitionSet(StructuredQName keyName, int keySetNumber)
keyName
- the name of the key definitions in this setkeySetNumber
- a unique number identifying this key definition setpublic void addKeyDefinition(KeyDefinition keyDef) throws XPathException
keyDef
- the key definition to be addedXPathException
- if the key definition uses a different collation from others in the setpublic StructuredQName getKeyName()
public java.lang.String getCollationName()
public boolean isComposite()
public int getKeySetNumber()
public java.util.List<KeyDefinition> getKeyDefinitions()
public boolean isBackwardsCompatible()
public boolean isRangeKey()
public void setReusable(boolean reusable)
reusable
- set to true if the index can safely be shared and reusedpublic boolean isReusable()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.