public class IndexDefinition
extends java.lang.Object
implements java.io.Externalizable
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexDefinition.IndexComponentDefinition
A container with an index component information.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<IndexDefinition.IndexComponentDefinition> |
components
Index components (fields with sorting directions).
|
private static int |
IA_NONE
Flag for default (none) index attribute.
|
private static int |
IA_PRIMARY
Flag for 'primary' / 'effective primary' index attribute.
|
private static int |
IA_UNIQUE
Flag for 'unique' index attribute.
|
private static int |
IA_WORD
Flag for 'word' index attribute.
|
private int |
indexAttribute
The collection of index attribute.
|
private java.lang.String |
legacyName
The legacy name of this index.
|
| Constructor and Description |
|---|
IndexDefinition()
Default c'tor
|
IndexDefinition(TableMapper.LegacyIndexInfo lii)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(TempTableBuilder tb)
Add current index to the
TableBuilder. |
void |
readExternal(java.io.ObjectInput in)
Read the index definition from the specified input source.
|
void |
writeExternal(java.io.ObjectOutput out)
Send the index definition to the specified output destination.
|
private static final int IA_NONE
private static final int IA_PRIMARY
private static final int IA_UNIQUE
private static final int IA_WORD
private java.lang.String legacyName
private int indexAttribute
IA_PRIMARY - determines 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;IA_UNIQUE - determines if the index is a unique index;IA_WORD - determines if the index is a word-index index.private java.util.List<IndexDefinition.IndexComponentDefinition> components
public IndexDefinition()
public IndexDefinition(TableMapper.LegacyIndexInfo lii)
IndexDefinition staring from the TableMapper legacy data.lii - ORM index infopublic void addTo(TempTableBuilder tb)
TableBuilder.tb - TableBuilder instance.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - The input source from which the index definition will be read.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If the class of property could not be found/loaded.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The output destination to which the index definition will be sent.java.io.IOException - In case of I/O errors.