public interface Index extends Cloneable, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(IndexColumn column)
Adds a column that makes up this index.
|
Object |
clone()
Clones this index.
|
boolean |
equalsIgnoreCase(Index otherIndex)
Compares this index to the given one while ignoring the case of identifiers.
|
IndexColumn |
getColumn(int idx)
Returns the indicated column making up this index.
|
int |
getColumnCount()
Returns the number of columns that make up this index.
|
IndexColumn[] |
getColumns()
Returns the columns that make up this index.
|
String |
getName()
Returns the name of the index.
|
boolean |
hasColumn(Column column)
Determines whether this index includes the given column.
|
boolean |
isUnique()
Determines whether this index is unique or not.
|
void |
removeColumn(IndexColumn column)
Removes the given index column from this index.
|
void |
removeColumn(int idx)
Removes the column at the specified position in this index.
|
void |
setName(String name)
Sets the name of the index.
|
String |
toVerboseString()
Returns a verbose string representation of this index.
|
boolean isUnique()
true if the index is an unique oneString getName()
void setName(String name)
name - The nameint getColumnCount()
IndexColumn getColumn(int idx)
idx - The index of the columnIndexColumn[] getColumns()
boolean hasColumn(Column column)
column - The column to check fortrue if the column is included in this indexvoid addColumn(IndexColumn column)
column - The column to addvoid removeColumn(IndexColumn column)
column - The column to removevoid removeColumn(int idx)
idx - The position of the index column to removeObject clone() throws CloneNotSupportedException
CloneNotSupportedException - If the cloning did failboolean equalsIgnoreCase(Index otherIndex)
otherIndex - The other indextrue if this index is equal (ignoring case) to the given oneString toVerboseString()
Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.