Pages: 1 [2]
  Print  
Author Topic: Aggregate and remove attributes  (Read 2488 times)
JEdward
Full Member
***
Posts: 145


« Reply #15 on: September 09, 2013, 06:17:50 PM »

Yes, if you add an ID you can do you processing on one thread with generic attribute names & then join it with your original dataset after this is completed. 

Is that what you meant?

Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.012">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="5.3.012" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="generate_direct_mailing_data" compatibility="5.3.012" expanded="true" height="60" name="Generate Direct Mailing Data" width="90" x="45" y="30"/>
      <operator activated="true" class="generate_id" compatibility="5.3.012" expanded="true" height="76" name="Generate ID" width="90" x="112" y="210"/>
      <operator activated="true" class="rename_by_generic_names" compatibility="5.3.012" expanded="true" height="76" name="Rename by Generic Names" width="90" x="179" y="120"/>
      <operator activated="true" class="subprocess" compatibility="5.3.012" expanded="true" height="76" name="YourProcessingHere" width="90" x="246" y="30">
        <process expanded="true">
          <connect from_port="in 1" to_port="out 1"/>
          <portSpacing port="source_in 1" spacing="0"/>
          <portSpacing port="source_in 2" spacing="0"/>
          <portSpacing port="sink_out 1" spacing="0"/>
          <portSpacing port="sink_out 2" spacing="0"/>
        </process>
      </operator>
      <operator activated="true" class="join" compatibility="5.3.012" expanded="true" height="76" name="Join" width="90" x="313" y="165">
        <list key="key_attributes"/>
      </operator>
      <connect from_op="Generate Direct Mailing Data" from_port="output" to_op="Generate ID" to_port="example set input"/>
      <connect from_op="Generate ID" from_port="example set output" to_op="Rename by Generic Names" to_port="example set input"/>
      <connect from_op="Rename by Generic Names" from_port="example set output" to_op="YourProcessingHere" to_port="in 1"/>
      <connect from_op="Rename by Generic Names" from_port="original" to_op="Join" to_port="right"/>
      <connect from_op="YourProcessingHere" from_port="out 1" to_op="Join" to_port="left"/>
      <connect from_op="Join" from_port="join" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>
Logged
Jony
Newbie
*
Posts: 15


« Reply #16 on: September 10, 2013, 10:48:27 AM »

Hi,

This helps, but the thing is after aggregating with the new names i get aggregated columns as sum_1_2_3 for example, but i want in the output column names as sum_time-12-31-22_time-01-01-00_time-01-01-04 and so on. i mean in the result i also want my original names. but if i do replace the names and do the aggregation then it gives result with new names (obviously). but hot to replace those with original names?
Logged
Pages: 1 [2]
  Print  
 
Jump to: