org.apache.derby.impl.sql.execute
Class UpdateStatisticsConstantAction

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.UpdateStatisticsConstantAction
All Implemented Interfaces:
ConstantAction

class UpdateStatisticsConstantAction
extends DDLConstantAction

This class describes actions that are performed for an UPDATE STATISTICS Statement at execution time.


Field Summary
private  long[] conglomerateNumber
           
private  boolean forTable
           
private static int GROUP_FETCH_SIZE
           
private  ExecIndexRow[] indexRow
           
private  DataValueDescriptor[] lastUniqueKey
           
private  java.lang.String objectName
           
private  UUID[] objectUUID
           
private  DataValueDescriptor[] rowBuffer
           
private  DataValueDescriptor[][] rowBufferArray
           
private  UUID tableUUID
           
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
UpdateStatisticsConstantAction()
           
UpdateStatisticsConstantAction(boolean forTable, java.lang.String objectName, UUID tableUUID, UUID[] objectUUID, long[] conglomerateNumber, ExecIndexRow[] indexRow)
           
 
Method Summary
private  int compareWithPrevKey(int index, boolean firstRow)
           
 void executeConstantAction(Activation activation)
          Run the ConstantAction.
private  void initializeRowBuffers(ExecIndexRow ir)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, modifiesTableId, readExternal, upToDate, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tableUUID

private UUID tableUUID

objectUUID

private UUID[] objectUUID

objectName

private java.lang.String objectName

forTable

private boolean forTable

conglomerateNumber

private long[] conglomerateNumber

indexRow

private ExecIndexRow[] indexRow

rowBufferArray

private DataValueDescriptor[][] rowBufferArray

rowBuffer

private DataValueDescriptor[] rowBuffer

lastUniqueKey

private DataValueDescriptor[] lastUniqueKey

GROUP_FETCH_SIZE

private static final int GROUP_FETCH_SIZE
See Also:
Constant Field Values
Constructor Detail

UpdateStatisticsConstantAction

public UpdateStatisticsConstantAction()

UpdateStatisticsConstantAction

public UpdateStatisticsConstantAction(boolean forTable,
                                      java.lang.String objectName,
                                      UUID tableUUID,
                                      UUID[] objectUUID,
                                      long[] conglomerateNumber,
                                      ExecIndexRow[] indexRow)
Method Detail

toString

public java.lang.String toString()

executeConstantAction

public void executeConstantAction(Activation activation)
                           throws StandardException
Description copied from interface: ConstantAction
Run the ConstantAction.

Parameters:
activation - The execution environment for this constant action.
Throws:
StandardException - Thrown on failure

initializeRowBuffers

private void initializeRowBuffers(ExecIndexRow ir)

compareWithPrevKey

private int compareWithPrevKey(int index,
                               boolean firstRow)
                        throws StandardException
Throws:
StandardException


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.