Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.execute
Class CreateIndexConstantAction  view CreateIndexConstantAction download CreateIndexConstantAction.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericConstantAction
      extended byorg.apache.derby.impl.sql.execute.DDLConstantAction
          extended byorg.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
              extended byorg.apache.derby.impl.sql.execute.IndexConstantAction
                  extended byorg.apache.derby.impl.sql.execute.CreateIndexConstantAction
All Implemented Interfaces:
org.apache.derby.iapi.sql.execute.ConstantAction

class CreateIndexConstantAction
extends IndexConstantAction

This class describes actions that are ALWAYS performed for a CREATE TABLE Statement at Execution time.


Field Summary
private  java.lang.String[] columnNames
           
private  org.apache.derby.catalog.UUID conglomerateUUID
           
private  long conglomId
           
private  org.apache.derby.iapi.sql.execute.ExecRow indexTemplateRow
           
private  java.lang.String indexType
           
private  boolean[] isAscending
           
private  boolean isConstraint
           
private  java.util.Properties properties
           
private  boolean unique
           
 
Fields inherited from class org.apache.derby.impl.sql.execute.IndexConstantAction
indexName, schemaName, tableId, tableName
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
(package private) CreateIndexConstantAction(boolean unique, java.lang.String indexType, java.lang.String schemaName, java.lang.String indexName, java.lang.String tableName, org.apache.derby.catalog.UUID tableId, long conglomId, java.lang.String[] columnNames, boolean[] isAscending, boolean isConstraint, org.apache.derby.catalog.UUID conglomerateUUID, java.util.Properties properties)
          Make the ConstantAction for a CREATE INDEX statement.
 
Method Summary
 void executeConstantAction(org.apache.derby.iapi.sql.Activation activation)
          This is the guts of the Execution-time logic for CREATE INDEX.
(package private)  org.apache.derby.iapi.sql.execute.ExecRow getIndexTemplateRow()
           
private  org.apache.derby.iapi.store.access.RowLocationRetRowSource loadSorter(org.apache.derby.iapi.sql.execute.ExecRow[] baseRows, org.apache.derby.iapi.sql.execute.ExecIndexRow[] indexRows, org.apache.derby.iapi.store.access.TransactionController tc, org.apache.derby.iapi.store.access.GroupFetchScanController scan, long sortId, org.apache.derby.iapi.types.RowLocation[] rl)
          Scan the base conglomerate and insert the keys into a sorter, returning a rowSource on the sorter.
private  void statementExceptionCleanup(org.apache.derby.iapi.store.access.ScanController scan, org.apache.derby.iapi.store.access.ConglomerateController indexController)
          Do necessary clean up (close down controllers, etc.) before throwing a statement exception.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.apache.derby.impl.sql.execute.IndexConstantAction
getIndexName, modifiesTableId, setIndexName
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, readExternal, upToDate, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

unique

private boolean unique

indexType

private java.lang.String indexType

conglomId

private long conglomId

columnNames

private java.lang.String[] columnNames

isAscending

private boolean[] isAscending

isConstraint

private boolean isConstraint

conglomerateUUID

private org.apache.derby.catalog.UUID conglomerateUUID

properties

private java.util.Properties properties

indexTemplateRow

private org.apache.derby.iapi.sql.execute.ExecRow indexTemplateRow
Constructor Detail

CreateIndexConstantAction

CreateIndexConstantAction(boolean unique,
                          java.lang.String indexType,
                          java.lang.String schemaName,
                          java.lang.String indexName,
                          java.lang.String tableName,
                          org.apache.derby.catalog.UUID tableId,
                          long conglomId,
                          java.lang.String[] columnNames,
                          boolean[] isAscending,
                          boolean isConstraint,
                          org.apache.derby.catalog.UUID conglomerateUUID,
                          java.util.Properties properties)
Make the ConstantAction for a CREATE INDEX statement.

Method Detail

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


executeConstantAction

public void executeConstantAction(org.apache.derby.iapi.sql.Activation activation)
                           throws org.apache.derby.iapi.error.StandardException
This is the guts of the Execution-time logic for CREATE INDEX.


getIndexTemplateRow

org.apache.derby.iapi.sql.execute.ExecRow getIndexTemplateRow()

statementExceptionCleanup

private void statementExceptionCleanup(org.apache.derby.iapi.store.access.ScanController scan,
                                       org.apache.derby.iapi.store.access.ConglomerateController indexController)
                                throws org.apache.derby.iapi.error.StandardException
Do necessary clean up (close down controllers, etc.) before throwing a statement exception.


loadSorter

private org.apache.derby.iapi.store.access.RowLocationRetRowSource loadSorter(org.apache.derby.iapi.sql.execute.ExecRow[] baseRows,
                                                                              org.apache.derby.iapi.sql.execute.ExecIndexRow[] indexRows,
                                                                              org.apache.derby.iapi.store.access.TransactionController tc,
                                                                              org.apache.derby.iapi.store.access.GroupFetchScanController scan,
                                                                              long sortId,
                                                                              org.apache.derby.iapi.types.RowLocation[] rl)
                                                                       throws org.apache.derby.iapi.error.StandardException
Scan the base conglomerate and insert the keys into a sorter, returning a rowSource on the sorter.