java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
, ConstantAction
DeleteConstantAction
, InsertConstantAction
, UpdatableVTIConstantAction
, UpdateConstantAction
abstract class WriteCursorConstantAction extends java.lang.Object implements ConstantAction, Formatable
Modifier and Type | Field | Description |
---|---|---|
private FormatableBitSet |
baseRowReadList |
|
private int[] |
baseRowReadMap |
|
(package private) long |
conglomId |
This class implements Formatable.
|
(package private) boolean |
deferred |
|
private FKInfo[] |
fkInfo |
|
(package private) StaticCompiledOpenConglomInfo |
heapSCOCI |
|
(package private) long[] |
indexCIDS |
|
(package private) java.lang.String[] |
indexNames |
|
(package private) StaticCompiledOpenConglomInfo[] |
indexSCOCIs |
|
(package private) IndexRowGenerator[] |
irgs |
|
(package private) int |
lockMode |
|
(package private) boolean |
singleRowSource |
|
private int[] |
streamStorableHeapColIds |
|
private java.util.Properties |
targetProperties |
|
(package private) UUID |
targetUUID |
|
private TriggerInfo |
triggerInfo |
|
private boolean |
underMerge |
True if this is an action of a MERGE statement
|
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
Constructor | Description |
---|---|
WriteCursorConstantAction() |
Public niladic constructor.
|
WriteCursorConstantAction(long conglomId,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
java.lang.String[] indexNames,
boolean deferred,
java.util.Properties targetProperties,
UUID targetUUID,
int lockMode,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
FormatableBitSet baseRowReadList,
int[] baseRowReadMap,
int[] streamStorableHeapColIds,
boolean singleRowSource,
boolean underMerge) |
Make the ConstantAction for a DELETE, INSERT, or UPDATE statement.
|
Modifier and Type | Method | Description |
---|---|---|
void |
executeConstantAction(Activation activation) |
NOP routine.
|
FormatableBitSet |
getBaseRowReadList() |
|
int[] |
getBaseRowReadMap() |
|
long |
getConglomerateId() |
Get the conglomerate id for the changed heap.
|
(package private) FKInfo[] |
getFKInfo() |
Gets the foreign key information for this constant action.
|
java.lang.String |
getIndexNameFromCID(long indexCID) |
get the index name given the conglomerate id of the index.
|
java.lang.String[] |
getIndexNames() |
|
java.lang.String |
getProperty(java.lang.String key) |
The the value of the specified key, if it exists, from
the targetProperties.
|
int[] |
getStreamStorableHeapColIds() |
|
java.util.Properties |
getTargetProperties() |
Get the targetProperties from the constant action.
|
(package private) TriggerInfo |
getTriggerInfo() |
Basically, the same as getFKInfo but for triggers.
|
void |
readExternal(java.io.ObjectInput in) |
Read this object from a stream of stored objects.
|
boolean |
underMerge() |
Return true if this is an action of a MERGE statement
|
void |
writeExternal(java.io.ObjectOutput out) |
Write this object to a stream of stored objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeFormatId
long conglomId
StaticCompiledOpenConglomInfo heapSCOCI
IndexRowGenerator[] irgs
long[] indexCIDS
StaticCompiledOpenConglomInfo[] indexSCOCIs
java.lang.String[] indexNames
boolean deferred
private java.util.Properties targetProperties
UUID targetUUID
int lockMode
private FKInfo[] fkInfo
private TriggerInfo triggerInfo
private FormatableBitSet baseRowReadList
private int[] baseRowReadMap
private int[] streamStorableHeapColIds
boolean singleRowSource
private boolean underMerge
public WriteCursorConstantAction()
public WriteCursorConstantAction(long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, java.lang.String[] indexNames, boolean deferred, java.util.Properties targetProperties, UUID targetUUID, int lockMode, FKInfo[] fkInfo, TriggerInfo triggerInfo, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, boolean singleRowSource, boolean underMerge)
conglomId
- Conglomerate ID of heap.heapSCOCI
- StaticCompiledOpenConglomInfo for heap.irgs
- Index descriptorsindexCIDS
- Conglomerate IDs of indicesindexSCOCIs
- StaticCompiledOpenConglomInfos for indexes.indexNames
- Names of indices on this table for error reporting.deferred
- True means process as a deferred updatetargetProperties
- Properties on the target tabletargetUUID
- UUID of target tablelockMode
- The lock mode to use on the target tablefkInfo
- Structure containing foreign key info, if any (may be null)triggerInfo
- Structure containing trigger info, if any (may be null)baseRowReadMap
- BaseRowReadMap[heapColId]->ReadRowColumnId. (0 based)streamStorableHeapColIds
- Null for non rep. (0 based)singleRowSource
- Whether or not source is a single row sourceunderMerge
- True if this action is under a MERGE statementfinal FKInfo[] getFKInfo()
TriggerInfo getTriggerInfo()
public final void executeConstantAction(Activation activation) throws StandardException
executeConstantAction
in interface ConstantAction
activation
- The execution environment for this constant action.StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- read this.java.io.IOException
- thrown on errorjava.lang.ClassNotFoundException
- thrown on errorpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- write bytes here.java.io.IOException
- thrown on errorpublic boolean underMerge()
public long getConglomerateId()
public java.util.Properties getTargetProperties()
public java.lang.String getProperty(java.lang.String key)
key
- The key to search forpublic FormatableBitSet getBaseRowReadList()
public int[] getBaseRowReadMap()
public int[] getStreamStorableHeapColIds()
public java.lang.String getIndexNameFromCID(long indexCID)
indexCID
- conglomerate ID of the index.public java.lang.String[] getIndexNames()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.