|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.DataIndexSetDef
public class DataIndexSetDef
Represents the meta-data for a set of indexes of a table.
Constructor Summary | |
---|---|
DataIndexSetDef(DataIndexSetDef def)
|
|
DataIndexSetDef(TableName table_name)
Constructor. |
Method Summary | |
---|---|
void |
addDataIndexDef(DataIndexDef def)
Adds a DataIndexDef to this table. |
int |
findIndexForColumns(java.lang.String[] cols)
Finds the first index for the given column name list. |
int |
findIndexWithName(java.lang.String index_name)
Finds the index with the given name and returns the index in the list of the index (confusing comment!). |
DataIndexDef |
indexAt(int i)
Returns the DataIndexDef at the given index in this list. |
int |
indexCount()
Returns the total number of index in this table. |
DataIndexDef |
indexWithName(java.lang.String index_name)
Returns the DataIndexDef with the given name or null if it couldn't be found. |
static DataIndexSetDef |
read(java.io.DataInput din)
Reads the DataIndexSetDef object from the given DataInput. |
void |
removeDataIndexDef(int i)
Removes a DataIndexDef to this table. |
java.lang.String |
resolveIndexName(java.lang.String index_name,
boolean ignore_case)
Attempts to resolve the given index name from the index in this table. |
void |
setImmutable()
Sets the immutable flag. |
void |
write(java.io.DataOutput dout)
Writes this DataIndexSetDef object to the given DataOutput. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataIndexSetDef(TableName table_name)
public DataIndexSetDef(DataIndexSetDef def)
Method Detail |
---|
public void setImmutable()
public void addDataIndexDef(DataIndexDef def)
public void removeDataIndexDef(int i)
public int indexCount()
public DataIndexDef indexAt(int i)
public int findIndexWithName(java.lang.String index_name)
public int findIndexForColumns(java.lang.String[] cols)
public DataIndexDef indexWithName(java.lang.String index_name)
public java.lang.String resolveIndexName(java.lang.String index_name, boolean ignore_case) throws DatabaseException
DatabaseException
public void write(java.io.DataOutput dout) throws java.io.IOException
java.io.IOException
public static DataIndexSetDef read(java.io.DataInput din) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |