Skip to content
Martin Danielsson edited this page Jul 30, 2015 · 3 revisions

Redirecting output to nil (no operation)

For certain things, it may be useful to not write any output; this is especially the case when using the statistics plugin, e.g. the frequence counter.

In order not to write any kind of output, use the following target configuration:

<Target config="">nil://</Target>

Example: Counting the country frequencies in a source CSV file:

<Transformation>
  <Source config="delim=';'">file://source_data.csv</Source>
  <Target config="">nil://</Target>
  <SourceTransform>
    <Transform config="delim=';'">stats://frequence</Transform>
    <Parameters>
      <Parameter name="Country">$Country</Parameter>
    </Parameters>
    <Settings>
      <Setting name="target">file://country_freqs.csv</Setting>
    </Setting>
  </SourceTransform>

  <Fields>
    <!-- These aren't used, can be left empty -->
  </Fields>
</Transformation>

See also:

Clone this wiki locally