| java.lang.Object org.apache.derby.impl.sql.execute.TemporaryRowHolderImpl
TemporaryRowHolderImpl | class TemporaryRowHolderImpl implements TemporaryRowHolder(Code) | | This is a class that is used to temporarily
(non-persistently) hold rows that are used in
language execution. It will store them in an
array, or a temporary conglomerate, depending
on the number of rows.
It is used for deferred DML processing.
author: jamie |
Constructor Summary | |
public | TemporaryRowHolderImpl(Activation activation, Properties properties, ResultDescription resultDescription) Uses the default overflow to
a conglomerate threshold (5).
Parameters: activation - the activation Parameters: properties - the properties of the original table. | public | TemporaryRowHolderImpl(Activation activation, Properties properties, ResultDescription resultDescription, boolean isUniqueStream) Uses the default overflow to
a conglomerate threshold (5).
Parameters: activation - the activation Parameters: properties - the properties of the original table. | public | TemporaryRowHolderImpl(Activation activation, Properties properties, ResultDescription resultDescription, int overflowToConglomThreshold, boolean isUniqueStream, boolean isVirtualMemHeap) Create a temporary row holder with the defined overflow to conglom
Parameters: activation - the activation Parameters: properties - the properties of the original table. |
DEFAULT_OVERFLOWTHRESHOLD | final public static int DEFAULT_OVERFLOWTHRESHOLD(Code) | | |
STATE_DRAIN | final protected static int STATE_DRAIN(Code) | | |
STATE_INSERT | final protected static int STATE_INSERT(Code) | | |
STATE_UNINIT | final protected static int STATE_UNINIT(Code) | | |
activation | Activation activation(Code) | | Activation object with local state information.
|
lastArraySlot | protected int lastArraySlot(Code) | | |
state | protected int state(Code) | | |
TemporaryRowHolderImpl | public TemporaryRowHolderImpl(Activation activation, Properties properties, ResultDescription resultDescription)(Code) | | Uses the default overflow to
a conglomerate threshold (5).
Parameters: activation - the activation Parameters: properties - the properties of the original table. Usedto help the store use optimal page size, etc. Parameters: resultDescription - the result description. Relevant for the getResultDescriptioncall on the result set returned by getResultSet. May be null |
TemporaryRowHolderImpl | public TemporaryRowHolderImpl(Activation activation, Properties properties, ResultDescription resultDescription, boolean isUniqueStream)(Code) | | Uses the default overflow to
a conglomerate threshold (5).
Parameters: activation - the activation Parameters: properties - the properties of the original table. Usedto help the store use optimal page size, etc. Parameters: resultDescription - the result description. Relevant for the getResultDescriptioncall on the result set returned by getResultSet. May be null Parameters: isUniqueStream - - true , if it has to be temporary row holder unique stream |
TemporaryRowHolderImpl | public TemporaryRowHolderImpl(Activation activation, Properties properties, ResultDescription resultDescription, int overflowToConglomThreshold, boolean isUniqueStream, boolean isVirtualMemHeap)(Code) | | Create a temporary row holder with the defined overflow to conglom
Parameters: activation - the activation Parameters: properties - the properties of the original table. Usedto help the store use optimal page size, etc. Parameters: resultDescription - the result description. Relevant for the getResultDescriptioncall on the result set returned by getResultSet. May be null Parameters: overflowToConglomThreshold - on an attempt to insertthis number of rows, the rows will be putinto a temporary conglomerate. |
getPositionIndexConglomId | public long getPositionIndexConglomId()(Code) | | |
getResultSet | public CursorResultSet getResultSet()(Code) | | Get a result set for scanning what has been inserted
so far.
a result set to use |
getTemporaryConglomId | public long getTemporaryConglomId()(Code) | | |
setRowHolderTypeToUniqueStream | public void setRowHolderTypeToUniqueStream()(Code) | | |
truncate | public void truncate() throws StandardException(Code) | | Purge the row holder of all its rows.
Resets the row holder so that it can
accept new inserts. A cheap way to
recycle a row holder.
exception: StandardException - on error |
|
|