Class IndexInfoImpl
java.lang.Object
org.apache.derby.impl.sql.catalog.IndexInfoImpl
A poor mans structure used in DataDictionaryImpl.java.
Used to save information about system indexes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate final CatalogRowFactoryprivate final intprivate IndexRowGenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intgetBaseColumnPosition(int colNumber) Get the base column position for a column within a catalog given the (0-based) column number for the column within the index.(package private) intGet the column count for the index.(package private) longGet the conglomerate number for the index.(package private) StringGet the index name for the index.(package private) IndexRowGeneratorGet the IndexRowGenerator for this index.(package private) booleanReturn whether or not this index is declared unique(package private) voidsetConglomerateNumber(long conglomerateNumber) Set the conglomerate number for the index.(package private) voidSet the IndexRowGenerator for this index.
-
Field Details
-
irg
-
conglomerateNumber
private long conglomerateNumber -
crf
-
indexNumber
private final int indexNumber
-
-
Constructor Details
-
IndexInfoImpl
IndexInfoImpl(int indexNumber, CatalogRowFactory crf) Constructor- Parameters:
indexNumber- (0-based) number of index within catalog's indexescrf- CatalogRowFactory for the catalog
-
-
Method Details
-
getConglomerateNumber
long getConglomerateNumber()Get the conglomerate number for the index.- Returns:
- long The conglomerate number for the index.
-
setConglomerateNumber
void setConglomerateNumber(long conglomerateNumber) Set the conglomerate number for the index.- Parameters:
conglomerateNumber- The conglomerateNumber for the index.
-
getIndexName
String getIndexName()Get the index name for the index.- Returns:
- String The index name for the index.
-
getColumnCount
int getColumnCount()Get the column count for the index.- Returns:
- int The column count for the index.
-
getIndexRowGenerator
IndexRowGenerator getIndexRowGenerator()Get the IndexRowGenerator for this index.- Returns:
- IndexRowGenerator The IRG for this index.
-
setIndexRowGenerator
Set the IndexRowGenerator for this index.- Parameters:
irg- The IndexRowGenerator for this index.
-
getBaseColumnPosition
int getBaseColumnPosition(int colNumber) Get the base column position for a column within a catalog given the (0-based) column number for the column within the index.- Parameters:
colNumber- The column number within the index- Returns:
- int The base column position for the column.
-
isIndexUnique
boolean isIndexUnique()Return whether or not this index is declared unique- Returns:
- boolean Whether or not this index is declared unique
-