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
public static class MergeData.Builder extends Object implements MergeDataBuilder
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
-
Method Summary
Modifier and Type Method Description MergeDatabuild()Creates a MergeData object using the properties that have been set in theMergeDataBuilder.MergeData.BuildersetAllowEmptyInput(Boolean allowEmptyInput)Sets if empty inputs are allowed.MergeData.BuildersetCodecName(String codecName)Sets the codec.MergeData.BuildersetForce(Boolean force)Sets whether to force merge when destinations already have data.MergeData.BuildersetLowHeapUsage(Boolean lowHeapUsage)Sets how much heap to use.MergeData.BuildersetMaximumConcurrentColumns(int maximumConcurrentColumns)Sets the maximum number of concurrent input columns.MergeData.BuildersetPartitionColumnFormula(String partColumnFormula)Sets the partition column formula.MergeData.BuildersetPartitionColumnValue(String partColumnValue)Sets the partition column value.MergeData.BuildersetSortColumnFormula(String sortColumnFormula)Sets the sort column formula.MergeDataBuildersetSourceTable(Table sourceTable)Sets the Table to use as source of data for the merge operation.MergeData.BuildersetStorageFormat(String storageFormat)Sets the storage format.MergeData.BuildersetSyncMode(String syncMode)Sets the data synchronization mode.MergeData.BuildersetThreadPoolSize(int threadPoolSize)Sets the thread pool size.
-
Constructor Details
-
Method Details
-
setPartitionColumnFormula
Description copied from interface:MergeDataBuilderSets the partition column formula.- Specified by:
setPartitionColumnFormulain interfaceMergeDataBuilder- Parameters:
partColumnFormula- partition column formula.- Returns:
- this builder.
-
setPartitionColumnValue
Description copied from interface:MergeDataBuilderSets the partition column value. This method adds quotes around a literal partition value to make a formula.- Specified by:
setPartitionColumnValuein interfaceMergeDataBuilder- Parameters:
partColumnValue- partition column value.- Returns:
- this builder.
-
setThreadPoolSize
Description copied from interface:MergeDataBuilderSets the thread pool size.- Specified by:
setThreadPoolSizein interfaceMergeDataBuilder- Parameters:
threadPoolSize- thread pool size.- Returns:
- this builder.
-
setMaximumConcurrentColumns
Sets the maximum number of concurrent input columns.- Specified by:
setMaximumConcurrentColumnsin interfaceMergeDataBuilder- Parameters:
maximumConcurrentColumns- the maximum number of concurrent input columns.- Returns:
- this builder.
-
setLowHeapUsage
Sets how much heap to use.- Specified by:
setLowHeapUsagein interfaceMergeDataBuilder- Parameters:
lowHeapUsage- true to use low amounts of heap.- Returns:
- this builder.
-
setForce
Description copied from interface:MergeDataBuilderSets whether to force merge when destinations already have data.- Specified by:
setForcein interfaceMergeDataBuilder- Parameters:
force- Whether to force merge when destinations already have data.- Returns:
- this builder.
-
setAllowEmptyInput
Description copied from interface:MergeDataBuilderSets if empty inputs are allowed.- Specified by:
setAllowEmptyInputin interfaceMergeDataBuilder- Parameters:
allowEmptyInput- true to allow empty inputs.- Returns:
- this builder.
-
setSortColumnFormula
Description copied from interface:MergeDataBuilderSets the sort column formula.- Specified by:
setSortColumnFormulain interfaceMergeDataBuilder- Parameters:
sortColumnFormula- column formula.- Returns:
- this builder.
-
setStorageFormat
Description copied from interface:MergeDataBuilderSets the storage format.- Specified by:
setStorageFormatin interfaceMergeDataBuilder- Parameters:
storageFormat- storage format.- Returns:
- this builder.
- See Also:
Database.StorageFormat
-
setCodecName
Description copied from interface:MergeDataBuilderSets the codec.- Specified by:
setCodecNamein interfaceMergeDataBuilder- Parameters:
codecName- codec name.- Returns:
- this builder.
-
setSyncMode
Description copied from interface:MergeDataBuilderSets the data synchronization mode.- Specified by:
setSyncModein interfaceMergeDataBuilder- Parameters:
syncMode- data synchronization mode.- Returns:
- this builder.
-
setSourceTable
Description copied from interface:MergeDataBuilderSets the Table to use as source of data for the merge operation.- Specified by:
setSourceTablein interfaceMergeDataBuilder- Parameters:
sourceTable- Table to use as source of data for the merge operation.- Returns:
- this builder.
-
build
Description copied from interface:MergeDataBuilderCreates a MergeData object using the properties that have been set in theMergeDataBuilder.- Specified by:
buildin interfaceMergeDataBuilder- Returns:
- new
MergeDataobject.
-