org.apache.derby.impl.sql.catalog
Class IndexInfoImpl

java.lang.Object
  extended by org.apache.derby.impl.sql.catalog.IndexInfoImpl

 class IndexInfoImpl
extends java.lang.Object

A poor mans structure used in DataDictionaryImpl.java. Used to save information about system indexes.


Field Summary
private  long conglomerateNumber
           
private  CatalogRowFactory crf
           
private  int indexNumber
           
private  IndexRowGenerator irg
           
 
Constructor Summary
IndexInfoImpl(int indexNumber, CatalogRowFactory crf)
          Constructor
 
Method Summary
(package private)  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.
(package private)  int getColumnCount()
          Get the column count for the index.
(package private)  long getConglomerateNumber()
          Get the conglomerate number for the index.
(package private)  java.lang.String getIndexName()
          Get the index name for the index.
(package private)  IndexRowGenerator getIndexRowGenerator()
          Get the IndexRowGenerator for this index.
(package private)  boolean isIndexUnique()
          Return whether or not this index is declared unique
(package private)  void setConglomerateNumber(long conglomerateNumber)
          Set the conglomerate number for the index.
(package private)  void setIndexRowGenerator(IndexRowGenerator irg)
          Set the IndexRowGenerator for this index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

irg

private IndexRowGenerator irg

conglomerateNumber

private long conglomerateNumber

crf

private final CatalogRowFactory crf

indexNumber

private final int indexNumber
Constructor Detail

IndexInfoImpl

IndexInfoImpl(int indexNumber,
              CatalogRowFactory crf)
Constructor

Parameters:
indexNumber - (0-based) number of index within catalog's indexes
crf - CatalogRowFactory for the catalog
Method Detail

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

java.lang.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

void setIndexRowGenerator(IndexRowGenerator irg)
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

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.