Package com.illumon.iris.importers.util
Class MergeData.Builder
java.lang.Object
com.illumon.iris.importers.util.MergeData.Builder
- All Implemented Interfaces:
MergeDataBuilder
- Enclosing class:
- MergeData
The Builder class allows setting properties for a merge and provides a
build()
method which returns a MergeData object that will use the configured properties to merge data.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a MergeData object using the properties that have been set in theMergeDataBuilder
.setAllowEmptyInput
(Boolean allowEmptyInput) Sets if empty inputs are allowed.setCodecName
(String codecName) Sets the codec.Sets whether to force merge when destinations already have data.setLowHeapUsage
(Boolean lowHeapUsage) Sets how much heap to use.setMaximumConcurrentColumns
(int maximumConcurrentColumns) Sets the maximum number of concurrent input columns.setPartitionColumnFormula
(String partColumnFormula) Sets the partition column formula.setPartitionColumnValue
(String partColumnValue) Sets the partition column value.setSortColumnFormula
(String sortColumnFormula) Sets the sort column formula.setSourceTable
(Table sourceTable) Sets the Table to use as source of data for the merge operation.setStorageFormat
(String storageFormat) Sets the storage format.setSyncMode
(String syncMode) Sets the data synchronization mode.setThreadPoolSize
(int threadPoolSize) Sets the thread pool size.
-
Constructor Details
-
Builder
-
-
Method Details
-
setPartitionColumnFormula
Description copied from interface:MergeDataBuilder
Sets the partition column formula.- Specified by:
setPartitionColumnFormula
in interfaceMergeDataBuilder
- Parameters:
partColumnFormula
- partition column formula.- Returns:
- this builder.
-
setPartitionColumnValue
Description copied from interface:MergeDataBuilder
Sets the partition column value. This method adds quotes around a literal partition value to make a formula.- Specified by:
setPartitionColumnValue
in interfaceMergeDataBuilder
- Parameters:
partColumnValue
- partition column value.- Returns:
- this builder.
-
setThreadPoolSize
Description copied from interface:MergeDataBuilder
Sets the thread pool size.- Specified by:
setThreadPoolSize
in interfaceMergeDataBuilder
- Parameters:
threadPoolSize
- thread pool size.- Returns:
- this builder.
-
setMaximumConcurrentColumns
Sets the maximum number of concurrent input columns.- Specified by:
setMaximumConcurrentColumns
in interfaceMergeDataBuilder
- Parameters:
maximumConcurrentColumns
- the maximum number of concurrent input columns.- Returns:
- this builder.
-
setLowHeapUsage
Sets how much heap to use.- Specified by:
setLowHeapUsage
in interfaceMergeDataBuilder
- Parameters:
lowHeapUsage
- true to use low amounts of heap.- Returns:
- this builder.
-
setForce
Description copied from interface:MergeDataBuilder
Sets whether to force merge when destinations already have data.- Specified by:
setForce
in interfaceMergeDataBuilder
- Parameters:
force
- Whether to force merge when destinations already have data.- Returns:
- this builder.
-
setAllowEmptyInput
Description copied from interface:MergeDataBuilder
Sets if empty inputs are allowed.- Specified by:
setAllowEmptyInput
in interfaceMergeDataBuilder
- Parameters:
allowEmptyInput
- true to allow empty inputs.- Returns:
- this builder.
-
setSortColumnFormula
Description copied from interface:MergeDataBuilder
Sets the sort column formula.- Specified by:
setSortColumnFormula
in interfaceMergeDataBuilder
- Parameters:
sortColumnFormula
- column formula.- Returns:
- this builder.
-
setStorageFormat
Description copied from interface:MergeDataBuilder
Sets the storage format.- Specified by:
setStorageFormat
in interfaceMergeDataBuilder
- Parameters:
storageFormat
- storage format.- Returns:
- this builder.
- See Also:
-
setCodecName
Description copied from interface:MergeDataBuilder
Sets the codec.- Specified by:
setCodecName
in interfaceMergeDataBuilder
- Parameters:
codecName
- codec name.- Returns:
- this builder.
-
setSyncMode
Description copied from interface:MergeDataBuilder
Sets the data synchronization mode.- Specified by:
setSyncMode
in interfaceMergeDataBuilder
- Parameters:
syncMode
- data synchronization mode.- Returns:
- this builder.
-
setSourceTable
Description copied from interface:MergeDataBuilder
Sets the Table to use as source of data for the merge operation.- Specified by:
setSourceTable
in interfaceMergeDataBuilder
- Parameters:
sourceTable
- Table to use as source of data for the merge operation.- Returns:
- this builder.
-
build
Description copied from interface:MergeDataBuilder
Creates a MergeData object using the properties that have been set in theMergeDataBuilder
.- Specified by:
build
in interfaceMergeDataBuilder
- Returns:
- new
MergeData
object.
-