static class FastCopyHelper.FastCopyContext
extends java.lang.Object
FastCopyHelper.| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
appendMode
Flag that indicates if the copy should happen with APPEND.
|
(package private) TemporaryBuffer |
dstBuf
The destination buffer.
|
(package private) boolean |
forceMapping
Flag that indicates if the mapping is mandatory to be generated at the end.
|
(package private) boolean |
hasMapping
true if at the current state of the execution, the mapping is in the database |
(package private) boolean |
isBefore
Is this context designated for copying before tables?
|
(package private) boolean |
looseCopyMode
Flag that indicates if this is a loose copy process.
|
(package private) java.util.Map<RecordBuffer.DatumAccess,RecordBuffer.DatumAccess> |
propsMap
The property mapping.
|
(package private) boolean |
simpleCopy
Flag identifying if the source and destination tables have the same structure.
|
(package private) TemporaryBuffer |
srcBuf
The source buffer.
|
| Constructor and Description |
|---|
FastCopyContext()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FastCopyHelper |
build()
Function to build a
FastCopyHelper based on the information stored in this context. |
FastCopyHelper.FastCopyContext |
setAppendMode(boolean appendMode)
Setter for the
appendMode field. |
FastCopyHelper.FastCopyContext |
setDestinationBuffer(TemporaryBuffer dstBuf)
Setter for the
dstBuf field. |
FastCopyHelper.FastCopyContext |
setForceMapping(boolean forceMapping)
Force the intermediate pk-mapping when copying.
|
FastCopyHelper.FastCopyContext |
setIsBefore(boolean isBefore)
Setter for the
isBefore field. |
FastCopyHelper.FastCopyContext |
setLooseCopyMode(boolean looseCopyMode)
Setter for the
looseCopyMode field. |
FastCopyHelper.FastCopyContext |
setPropsMap(java.util.Map<RecordBuffer.DatumAccess,RecordBuffer.DatumAccess> propsMap)
Setter for the
propsMap field. |
FastCopyHelper.FastCopyContext |
setSimpleCopy(boolean simpleCopy)
Setter for the
simpleCopy field. |
FastCopyHelper.FastCopyContext |
setSourceBuffer(TemporaryBuffer srcBuf)
Setter for the
srcBuf field. |
boolean isBefore
boolean simpleCopy
boolean appendMode
boolean looseCopyMode
boolean forceMapping
TemporaryBuffer srcBuf
TemporaryBuffer dstBuf
java.util.Map<RecordBuffer.DatumAccess,RecordBuffer.DatumAccess> propsMap
boolean hasMapping
true if at the current state of the execution, the mapping is in the databasepublic FastCopyHelper.FastCopyContext setIsBefore(boolean isBefore)
isBefore field.isBefore - The new value.public FastCopyHelper.FastCopyContext setSimpleCopy(boolean simpleCopy)
simpleCopy field.simpleCopy - The new value.public FastCopyHelper.FastCopyContext setAppendMode(boolean appendMode)
appendMode field.appendMode - The new value.public FastCopyHelper.FastCopyContext setLooseCopyMode(boolean looseCopyMode)
looseCopyMode field.looseCopyMode - The new value.public FastCopyHelper.FastCopyContext setSourceBuffer(TemporaryBuffer srcBuf)
srcBuf field.srcBuf - The new value.public FastCopyHelper.FastCopyContext setDestinationBuffer(TemporaryBuffer dstBuf)
dstBuf field.dstBuf - The new value.public FastCopyHelper.FastCopyContext setPropsMap(java.util.Map<RecordBuffer.DatumAccess,RecordBuffer.DatumAccess> propsMap)
propsMap field.propsMap - The new value.public FastCopyHelper.FastCopyContext setForceMapping(boolean forceMapping)
forceMapping - The new value.public FastCopyHelper build()
FastCopyHelper based on the information stored in this context.