[
https://issues.apache.org/jira/browse/CAMEL-12192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16344952#comment-16344952
]
ASF GitHub Bot commented on CAMEL-12192:
----------------------------------------
GitHub user neoxu999 opened a pull request:
https://github.com/apache/camel/pull/2200
CAMEL-12192 support csv bindy skip fields
added skipField to CsvRecord annotation, keeping the same implementation as
skipFirstLine
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/neoxu999/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2200.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2200
----
commit d0b7310f93b146b644244173ad937fcf9f4e2d82
Author: longxu <neoxu999@...>
Date: 2018-01-30T11:16:43Z
CAMEL-12192 support csv bindy skip fields
commit b6859e4e33fbca326f1d9b866cfb919e20e16c41
Author: longxu <neoxu999@...>
Date: 2018-01-30T11:56:19Z
update bindy csv by annoation skipField
----
> BindyCsvDataFormat does not support skip fields
> ------------------------------------------------
>
> Key: CAMEL-12192
> URL: https://issues.apache.org/jira/browse/CAMEL-12192
> Project: Camel
> Issue Type: Improvement
> Components: camel-bindy
> Affects Versions: 2.15.1, 2.20.1
> Reporter: Neo Xu
> Priority: Major
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Currently: BindyCsvDataFormat has to map all the fields in a CSV file.
> If there are 200 fields in a CSV file, it has to create 200 fields in a
> class. But sometimes, it is only interested in 20 fields. So it needs to skip
> some positions if they are not required. But BindyCsvDataFormat will throw an
> exception in this case.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)