Skip to main content
Solved

Fanout with Static Header Rows

  • April 6, 2018
  • 1 reply
  • 4 views

Forum|alt.badge.img

How do I retain my header rows when I fanout my Text File Data Set? It seems I need to replicate the same number of features with the header row so the fanout can group-by the expression/attribute (that is only available in the data itself). I could see a possible FeatureMerger (with hard-coded values and a List) and then a ListExploder, but this seems overkill.

Ideally, the writer would support an additional header row(s) port - I need multiple header rows - that can be supplied before Fanout is processed.

Best answer by lars_de_vries

It is indeed necessary to create a separate header for each fanout-file.

Off course there a multiple ways to do so. Personally I prefer a Sampler with a GroupBy set on the fanout attribute and create/set the header from that point on.

View original
Did this help you find an answer to your question?

1 reply

lars_de_vries
Forum|alt.badge.img+10

It is indeed necessary to create a separate header for each fanout-file.

Off course there a multiple ways to do so. Personally I prefer a Sampler with a GroupBy set on the fanout attribute and create/set the header from that point on.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings