Class LineSplitProcessor
- java.lang.Object
-
- org.apache.unomi.router.core.processor.LineSplitProcessor
-
- All Implemented Interfaces:
org.apache.camel.Processor
public class LineSplitProcessor extends Object implements org.apache.camel.Processor
Created by amidani on 29/12/2016.
-
-
Constructor Summary
Constructors Constructor Description LineSplitProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(org.apache.camel.Exchange exchange)
void
setColumnSeparator(String columnSeparator)
Sets the line separator.void
setFieldsMapping(Map<String,Integer> fieldsMapping)
Setter of fieldsMappingvoid
setHasDeleteColumn(boolean hasDeleteColumn)
void
setHasHeader(boolean hasHeader)
void
setMergingProperty(String mergingProperty)
Sets the merging property.void
setMultiValueDelimiter(String multiValueDelimiter)
Sets the multi value delimiter.void
setMultiValueSeparator(String multiValueSeparator)
Sets the multi value separator.void
setOverwriteExistingProfiles(boolean overwriteExistingProfiles)
void
setProfilePropertyTypes(Collection<PropertyType> profilePropertyTypes)
Sets the profile property types to use for the field mappingsvoid
setPropertiesToOverwrite(List<String> propertiesToOverwrite)
-
-
-
Method Detail
-
process
public void process(org.apache.camel.Exchange exchange) throws Exception
- Specified by:
process
in interfaceorg.apache.camel.Processor
- Throws:
Exception
-
setFieldsMapping
public void setFieldsMapping(Map<String,Integer> fieldsMapping)
Setter of fieldsMapping- Parameters:
fieldsMapping
- map String,Integer fieldName in ES and the matching column index in the import file
-
setOverwriteExistingProfiles
public void setOverwriteExistingProfiles(boolean overwriteExistingProfiles)
-
setHasHeader
public void setHasHeader(boolean hasHeader)
-
setHasDeleteColumn
public void setHasDeleteColumn(boolean hasDeleteColumn)
-
setMergingProperty
public void setMergingProperty(String mergingProperty)
Sets the merging property.- Parameters:
mergingProperty
- property used to check if the profile exist when merging
-
setColumnSeparator
public void setColumnSeparator(String columnSeparator)
Sets the line separator.- Parameters:
columnSeparator
- property used to specify a line separator. Defaults to ','
-
setMultiValueSeparator
public void setMultiValueSeparator(String multiValueSeparator)
Sets the multi value separator.- Parameters:
multiValueSeparator
- multi value separator
-
setMultiValueDelimiter
public void setMultiValueDelimiter(String multiValueDelimiter)
Sets the multi value delimiter.- Parameters:
multiValueDelimiter
- multi value delimiter
-
setProfilePropertyTypes
public void setProfilePropertyTypes(Collection<PropertyType> profilePropertyTypes)
Sets the profile property types to use for the field mappings- Parameters:
profilePropertyTypes
- the collection of property types to use
-
-