public static class TableMapper.LegacyIndexInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private TableMapper.LegacyIndexComponentInfo[] |
components
Index components (fields with sorting directions).
|
private java.lang.String |
convertedName
The converted name of this index.
|
private boolean |
effectivePrimary
Determine if the index is a primary index: the one with the "primary" annotation or, if
there is no such one, the first in the definition order.
|
private java.lang.String |
legacyName
The legacy name of this index.
|
private boolean |
unique
Determine if the index is an unique index.
|
private boolean |
word
Determine if the index is a word-index index.
|
Constructor and Description |
---|
LegacyIndexInfo(Index index)
Create a new index information container, holding index attributes and components.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getComponents()
Retrieve the list of the field components of this index.
|
boolean[] |
getComponentsDirection()
Obtain the sort direction of the components returned with
getComponents()
method. |
java.lang.String |
getLegacyName()
Gets the legacy name of the index.
|
java.lang.String |
indexInformation()
Returns index information as a string.
|
boolean |
isEffectivePrimary()
Checks whether this is an effective primary index.
|
boolean |
isUnique()
Checks whether the index is an unique index.
|
boolean |
isWord()
Checks whether the index is a word index.
|
private final java.lang.String legacyName
private final java.lang.String convertedName
private boolean effectivePrimary
private final boolean unique
private final boolean word
private final TableMapper.LegacyIndexComponentInfo[] components
LegacyIndexInfo(Index index)
index
- Source index annotation generated at conversion stage.public java.lang.String indexInformation()
IndexInformation.indexInformation(int)
public boolean isUnique()
true
if this is an unique index.public boolean isWord()
true
if this is a word index.public java.lang.String[] getComponents()
public java.lang.String getLegacyName()
public boolean isEffectivePrimary()
true
when this is an effective primary index.public boolean[] getComponentsDirection()
getComponents()
method. true
value of a component means it is sorted ascending.getComponents()
method.