public class DataIndexSetDef extends Object
Constructor and Description |
---|
DataIndexSetDef(DataIndexSetDef def) |
DataIndexSetDef(TableName table_name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataIndexDef(DataIndexDef def)
Adds a DataIndexDef to this table.
|
int |
findIndexForColumns(String[] cols)
Finds the first index for the given column name list.
|
int |
findIndexWithName(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(String index_name)
Returns the DataIndexDef with the given name or null if it couldn't be
found.
|
static DataIndexSetDef |
read(DataInput din)
Reads the DataIndexSetDef object from the given DataInput.
|
void |
removeDataIndexDef(int i)
Removes a DataIndexDef to this table.
|
String |
resolveIndexName(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(DataOutput dout)
Writes this DataIndexSetDef object to the given DataOutput.
|
public DataIndexSetDef(TableName table_name)
public DataIndexSetDef(DataIndexSetDef def)
public void setImmutable()
public void addDataIndexDef(DataIndexDef def)
public void removeDataIndexDef(int i)
public int indexCount()
public DataIndexDef indexAt(int i)
public int findIndexWithName(String index_name)
public int findIndexForColumns(String[] cols)
public DataIndexDef indexWithName(String index_name)
public String resolveIndexName(String index_name, boolean ignore_case) throws DatabaseException
DatabaseException
public void write(DataOutput dout) throws IOException
IOException
public static DataIndexSetDef read(DataInput din) throws IOException
IOException
Copyright © 2015. All rights reserved.