value.ktr 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>value</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <directory>/</directory>
  10. <parameters>
  11. <parameter>
  12. <name>input_db_ip</name>
  13. <default_value>172.17.0.1</default_value>
  14. <description/>
  15. </parameter>
  16. <parameter>
  17. <name>input_db_port</name>
  18. <default_value>27017</default_value>
  19. <description/>
  20. </parameter>
  21. <parameter>
  22. <name>out_db_ip</name>
  23. <default_value>172.17.0.1</default_value>
  24. <description/>
  25. </parameter>
  26. <parameter>
  27. <name>out_db_name</name>
  28. <default_value>ry</default_value>
  29. <description/>
  30. </parameter>
  31. <parameter>
  32. <name>out_db_port</name>
  33. <default_value>3306</default_value>
  34. <description/>
  35. </parameter>
  36. <parameter>
  37. <name>out_db_pwd</name>
  38. <default_value>sckjadmin</default_value>
  39. <description/>
  40. </parameter>
  41. <parameter>
  42. <name>out_db_username</name>
  43. <default_value>root</default_value>
  44. <description/>
  45. </parameter>
  46. </parameters>
  47. <log>
  48. <trans-log-table>
  49. <connection/>
  50. <schema/>
  51. <table/>
  52. <size_limit_lines/>
  53. <interval/>
  54. <timeout_days/>
  55. <field>
  56. <id>ID_BATCH</id>
  57. <enabled>Y</enabled>
  58. <name>ID_BATCH</name>
  59. </field>
  60. <field>
  61. <id>CHANNEL_ID</id>
  62. <enabled>Y</enabled>
  63. <name>CHANNEL_ID</name>
  64. </field>
  65. <field>
  66. <id>TRANSNAME</id>
  67. <enabled>Y</enabled>
  68. <name>TRANSNAME</name>
  69. </field>
  70. <field>
  71. <id>STATUS</id>
  72. <enabled>Y</enabled>
  73. <name>STATUS</name>
  74. </field>
  75. <field>
  76. <id>LINES_READ</id>
  77. <enabled>Y</enabled>
  78. <name>LINES_READ</name>
  79. <subject/>
  80. </field>
  81. <field>
  82. <id>LINES_WRITTEN</id>
  83. <enabled>Y</enabled>
  84. <name>LINES_WRITTEN</name>
  85. <subject/>
  86. </field>
  87. <field>
  88. <id>LINES_UPDATED</id>
  89. <enabled>Y</enabled>
  90. <name>LINES_UPDATED</name>
  91. <subject/>
  92. </field>
  93. <field>
  94. <id>LINES_INPUT</id>
  95. <enabled>Y</enabled>
  96. <name>LINES_INPUT</name>
  97. <subject/>
  98. </field>
  99. <field>
  100. <id>LINES_OUTPUT</id>
  101. <enabled>Y</enabled>
  102. <name>LINES_OUTPUT</name>
  103. <subject/>
  104. </field>
  105. <field>
  106. <id>LINES_REJECTED</id>
  107. <enabled>Y</enabled>
  108. <name>LINES_REJECTED</name>
  109. <subject/>
  110. </field>
  111. <field>
  112. <id>ERRORS</id>
  113. <enabled>Y</enabled>
  114. <name>ERRORS</name>
  115. </field>
  116. <field>
  117. <id>STARTDATE</id>
  118. <enabled>Y</enabled>
  119. <name>STARTDATE</name>
  120. </field>
  121. <field>
  122. <id>ENDDATE</id>
  123. <enabled>Y</enabled>
  124. <name>ENDDATE</name>
  125. </field>
  126. <field>
  127. <id>LOGDATE</id>
  128. <enabled>Y</enabled>
  129. <name>LOGDATE</name>
  130. </field>
  131. <field>
  132. <id>DEPDATE</id>
  133. <enabled>Y</enabled>
  134. <name>DEPDATE</name>
  135. </field>
  136. <field>
  137. <id>REPLAYDATE</id>
  138. <enabled>Y</enabled>
  139. <name>REPLAYDATE</name>
  140. </field>
  141. <field>
  142. <id>LOG_FIELD</id>
  143. <enabled>Y</enabled>
  144. <name>LOG_FIELD</name>
  145. </field>
  146. <field>
  147. <id>EXECUTING_SERVER</id>
  148. <enabled>N</enabled>
  149. <name>EXECUTING_SERVER</name>
  150. </field>
  151. <field>
  152. <id>EXECUTING_USER</id>
  153. <enabled>N</enabled>
  154. <name>EXECUTING_USER</name>
  155. </field>
  156. <field>
  157. <id>CLIENT</id>
  158. <enabled>N</enabled>
  159. <name>CLIENT</name>
  160. </field>
  161. </trans-log-table>
  162. <perf-log-table>
  163. <connection/>
  164. <schema/>
  165. <table/>
  166. <interval/>
  167. <timeout_days/>
  168. <field>
  169. <id>ID_BATCH</id>
  170. <enabled>Y</enabled>
  171. <name>ID_BATCH</name>
  172. </field>
  173. <field>
  174. <id>SEQ_NR</id>
  175. <enabled>Y</enabled>
  176. <name>SEQ_NR</name>
  177. </field>
  178. <field>
  179. <id>LOGDATE</id>
  180. <enabled>Y</enabled>
  181. <name>LOGDATE</name>
  182. </field>
  183. <field>
  184. <id>TRANSNAME</id>
  185. <enabled>Y</enabled>
  186. <name>TRANSNAME</name>
  187. </field>
  188. <field>
  189. <id>STEPNAME</id>
  190. <enabled>Y</enabled>
  191. <name>STEPNAME</name>
  192. </field>
  193. <field>
  194. <id>STEP_COPY</id>
  195. <enabled>Y</enabled>
  196. <name>STEP_COPY</name>
  197. </field>
  198. <field>
  199. <id>LINES_READ</id>
  200. <enabled>Y</enabled>
  201. <name>LINES_READ</name>
  202. </field>
  203. <field>
  204. <id>LINES_WRITTEN</id>
  205. <enabled>Y</enabled>
  206. <name>LINES_WRITTEN</name>
  207. </field>
  208. <field>
  209. <id>LINES_UPDATED</id>
  210. <enabled>Y</enabled>
  211. <name>LINES_UPDATED</name>
  212. </field>
  213. <field>
  214. <id>LINES_INPUT</id>
  215. <enabled>Y</enabled>
  216. <name>LINES_INPUT</name>
  217. </field>
  218. <field>
  219. <id>LINES_OUTPUT</id>
  220. <enabled>Y</enabled>
  221. <name>LINES_OUTPUT</name>
  222. </field>
  223. <field>
  224. <id>LINES_REJECTED</id>
  225. <enabled>Y</enabled>
  226. <name>LINES_REJECTED</name>
  227. </field>
  228. <field>
  229. <id>ERRORS</id>
  230. <enabled>Y</enabled>
  231. <name>ERRORS</name>
  232. </field>
  233. <field>
  234. <id>INPUT_BUFFER_ROWS</id>
  235. <enabled>Y</enabled>
  236. <name>INPUT_BUFFER_ROWS</name>
  237. </field>
  238. <field>
  239. <id>OUTPUT_BUFFER_ROWS</id>
  240. <enabled>Y</enabled>
  241. <name>OUTPUT_BUFFER_ROWS</name>
  242. </field>
  243. </perf-log-table>
  244. <channel-log-table>
  245. <connection/>
  246. <schema/>
  247. <table/>
  248. <timeout_days/>
  249. <field>
  250. <id>ID_BATCH</id>
  251. <enabled>Y</enabled>
  252. <name>ID_BATCH</name>
  253. </field>
  254. <field>
  255. <id>CHANNEL_ID</id>
  256. <enabled>Y</enabled>
  257. <name>CHANNEL_ID</name>
  258. </field>
  259. <field>
  260. <id>LOG_DATE</id>
  261. <enabled>Y</enabled>
  262. <name>LOG_DATE</name>
  263. </field>
  264. <field>
  265. <id>LOGGING_OBJECT_TYPE</id>
  266. <enabled>Y</enabled>
  267. <name>LOGGING_OBJECT_TYPE</name>
  268. </field>
  269. <field>
  270. <id>OBJECT_NAME</id>
  271. <enabled>Y</enabled>
  272. <name>OBJECT_NAME</name>
  273. </field>
  274. <field>
  275. <id>OBJECT_COPY</id>
  276. <enabled>Y</enabled>
  277. <name>OBJECT_COPY</name>
  278. </field>
  279. <field>
  280. <id>REPOSITORY_DIRECTORY</id>
  281. <enabled>Y</enabled>
  282. <name>REPOSITORY_DIRECTORY</name>
  283. </field>
  284. <field>
  285. <id>FILENAME</id>
  286. <enabled>Y</enabled>
  287. <name>FILENAME</name>
  288. </field>
  289. <field>
  290. <id>OBJECT_ID</id>
  291. <enabled>Y</enabled>
  292. <name>OBJECT_ID</name>
  293. </field>
  294. <field>
  295. <id>OBJECT_REVISION</id>
  296. <enabled>Y</enabled>
  297. <name>OBJECT_REVISION</name>
  298. </field>
  299. <field>
  300. <id>PARENT_CHANNEL_ID</id>
  301. <enabled>Y</enabled>
  302. <name>PARENT_CHANNEL_ID</name>
  303. </field>
  304. <field>
  305. <id>ROOT_CHANNEL_ID</id>
  306. <enabled>Y</enabled>
  307. <name>ROOT_CHANNEL_ID</name>
  308. </field>
  309. </channel-log-table>
  310. <step-log-table>
  311. <connection/>
  312. <schema/>
  313. <table/>
  314. <timeout_days/>
  315. <field>
  316. <id>ID_BATCH</id>
  317. <enabled>Y</enabled>
  318. <name>ID_BATCH</name>
  319. </field>
  320. <field>
  321. <id>CHANNEL_ID</id>
  322. <enabled>Y</enabled>
  323. <name>CHANNEL_ID</name>
  324. </field>
  325. <field>
  326. <id>LOG_DATE</id>
  327. <enabled>Y</enabled>
  328. <name>LOG_DATE</name>
  329. </field>
  330. <field>
  331. <id>TRANSNAME</id>
  332. <enabled>Y</enabled>
  333. <name>TRANSNAME</name>
  334. </field>
  335. <field>
  336. <id>STEPNAME</id>
  337. <enabled>Y</enabled>
  338. <name>STEPNAME</name>
  339. </field>
  340. <field>
  341. <id>STEP_COPY</id>
  342. <enabled>Y</enabled>
  343. <name>STEP_COPY</name>
  344. </field>
  345. <field>
  346. <id>LINES_READ</id>
  347. <enabled>Y</enabled>
  348. <name>LINES_READ</name>
  349. </field>
  350. <field>
  351. <id>LINES_WRITTEN</id>
  352. <enabled>Y</enabled>
  353. <name>LINES_WRITTEN</name>
  354. </field>
  355. <field>
  356. <id>LINES_UPDATED</id>
  357. <enabled>Y</enabled>
  358. <name>LINES_UPDATED</name>
  359. </field>
  360. <field>
  361. <id>LINES_INPUT</id>
  362. <enabled>Y</enabled>
  363. <name>LINES_INPUT</name>
  364. </field>
  365. <field>
  366. <id>LINES_OUTPUT</id>
  367. <enabled>Y</enabled>
  368. <name>LINES_OUTPUT</name>
  369. </field>
  370. <field>
  371. <id>LINES_REJECTED</id>
  372. <enabled>Y</enabled>
  373. <name>LINES_REJECTED</name>
  374. </field>
  375. <field>
  376. <id>ERRORS</id>
  377. <enabled>Y</enabled>
  378. <name>ERRORS</name>
  379. </field>
  380. <field>
  381. <id>LOG_FIELD</id>
  382. <enabled>N</enabled>
  383. <name>LOG_FIELD</name>
  384. </field>
  385. </step-log-table>
  386. <metrics-log-table>
  387. <connection/>
  388. <schema/>
  389. <table/>
  390. <timeout_days/>
  391. <field>
  392. <id>ID_BATCH</id>
  393. <enabled>Y</enabled>
  394. <name>ID_BATCH</name>
  395. </field>
  396. <field>
  397. <id>CHANNEL_ID</id>
  398. <enabled>Y</enabled>
  399. <name>CHANNEL_ID</name>
  400. </field>
  401. <field>
  402. <id>LOG_DATE</id>
  403. <enabled>Y</enabled>
  404. <name>LOG_DATE</name>
  405. </field>
  406. <field>
  407. <id>METRICS_DATE</id>
  408. <enabled>Y</enabled>
  409. <name>METRICS_DATE</name>
  410. </field>
  411. <field>
  412. <id>METRICS_CODE</id>
  413. <enabled>Y</enabled>
  414. <name>METRICS_CODE</name>
  415. </field>
  416. <field>
  417. <id>METRICS_DESCRIPTION</id>
  418. <enabled>Y</enabled>
  419. <name>METRICS_DESCRIPTION</name>
  420. </field>
  421. <field>
  422. <id>METRICS_SUBJECT</id>
  423. <enabled>Y</enabled>
  424. <name>METRICS_SUBJECT</name>
  425. </field>
  426. <field>
  427. <id>METRICS_TYPE</id>
  428. <enabled>Y</enabled>
  429. <name>METRICS_TYPE</name>
  430. </field>
  431. <field>
  432. <id>METRICS_VALUE</id>
  433. <enabled>Y</enabled>
  434. <name>METRICS_VALUE</name>
  435. </field>
  436. </metrics-log-table>
  437. </log>
  438. <maxdate>
  439. <connection/>
  440. <table/>
  441. <field/>
  442. <offset>0.0</offset>
  443. <maxdiff>0.0</maxdiff>
  444. </maxdate>
  445. <size_rowset>10000</size_rowset>
  446. <sleep_time_empty>50</sleep_time_empty>
  447. <sleep_time_full>50</sleep_time_full>
  448. <unique_connections>N</unique_connections>
  449. <feedback_shown>Y</feedback_shown>
  450. <feedback_size>50000</feedback_size>
  451. <using_thread_priorities>Y</using_thread_priorities>
  452. <shared_objects_file/>
  453. <capture_step_performance>N</capture_step_performance>
  454. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  455. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  456. <dependencies>
  457. </dependencies>
  458. <partitionschemas>
  459. </partitionschemas>
  460. <slaveservers>
  461. </slaveservers>
  462. <clusterschemas>
  463. </clusterschemas>
  464. <created_user>-</created_user>
  465. <created_date>2020/07/21 13:37:03.233</created_date>
  466. <modified_user>-</modified_user>
  467. <modified_date>2020/07/21 13:37:03.233</modified_date>
  468. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  469. <is_key_private>N</is_key_private>
  470. </info>
  471. <notepads>
  472. </notepads>
  473. <connection>
  474. <name>mysql_value</name>
  475. <server>${out_db_ip}</server>
  476. <type>MYSQL</type>
  477. <access>Native</access>
  478. <database>${out_db_name}</database>
  479. <port>${out_db_port}</port>
  480. <username>${out_db_username}</username>
  481. <password>${out_db_pwd}</password>
  482. <servername/>
  483. <data_tablespace/>
  484. <index_tablespace/>
  485. <attributes>
  486. <attribute>
  487. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  488. <attribute>UTF-8</attribute>
  489. </attribute>
  490. <attribute>
  491. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  492. <attribute>500</attribute>
  493. </attribute>
  494. <attribute>
  495. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  496. <attribute>true</attribute>
  497. </attribute>
  498. <attribute>
  499. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  500. <attribute>N</attribute>
  501. </attribute>
  502. <attribute>
  503. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  504. <attribute>N</attribute>
  505. </attribute>
  506. <attribute>
  507. <code>IS_CLUSTERED</code>
  508. <attribute>N</attribute>
  509. </attribute>
  510. <attribute>
  511. <code>PORT_NUMBER</code>
  512. <attribute>${out_db_port}</attribute>
  513. </attribute>
  514. <attribute>
  515. <code>PRESERVE_RESERVED_WORD_CASE</code>
  516. <attribute>Y</attribute>
  517. </attribute>
  518. <attribute>
  519. <code>QUOTE_ALL_FIELDS</code>
  520. <attribute>N</attribute>
  521. </attribute>
  522. <attribute>
  523. <code>STREAM_RESULTS</code>
  524. <attribute>Y</attribute>
  525. </attribute>
  526. <attribute>
  527. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  528. <attribute>Y</attribute>
  529. </attribute>
  530. <attribute>
  531. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  532. <attribute>Y</attribute>
  533. </attribute>
  534. <attribute>
  535. <code>USE_POOLING</code>
  536. <attribute>N</attribute>
  537. </attribute>
  538. </attributes>
  539. </connection>
  540. <order>
  541. <hop>
  542. <from>MongoDB input</from>
  543. <to>表输出</to>
  544. <enabled>N</enabled>
  545. </hop>
  546. <hop>
  547. <from>MongoDB input</from>
  548. <to>插入 / 更新</to>
  549. <enabled>Y</enabled>
  550. </hop>
  551. </order>
  552. <step>
  553. <name>MongoDB input</name>
  554. <type>MongoDbInput</type>
  555. <description/>
  556. <distribute>N</distribute>
  557. <custom_distribution/>
  558. <copies>1</copies>
  559. <partitioning>
  560. <method>none</method>
  561. <schema_name/>
  562. </partitioning>
  563. <hostname>${input_db_ip}</hostname>
  564. <port>${input_db_port}</port>
  565. <use_all_replica_members>N</use_all_replica_members>
  566. <db_name>info_admin</db_name>
  567. <fields_name/>
  568. <collection>value</collection>
  569. <json_field_name>json</json_field_name>
  570. <json_query>
  571. { $group:
  572. {
  573. _id: '$userid',
  574. type0: { $sum: {
  575. $cond: [{ $eq: [ '$type', '0' ] }, 1, 0 ],
  576. } },
  577. type1: { $sum: {
  578. $cond: [{ $eq: [ '$type', '1' ] }, 1, 0 ],
  579. } },
  580. },
  581. },
  582. { $project: {
  583. _id: 1,
  584. infoValue: { $multiply: [ '$type0', 5 ] },
  585. visitValue: { $multiply: [ '$type1', 1 ] },
  586. totalValue: { $add: [{ $multiply: [ '$type0', 5 ] }, { $multiply: [ '$type1', 1 ] }] },
  587. } },
  588. { $sort: { totalValue: -1 } },
  589. { $lookup: { from: 'sys_user', localField: '_id', foreignField: '_id', as: 'user' } },
  590. { $unwind: { path: '$user', preserveNullAndEmptyArrays: true } },
  591. { $project: {
  592. _id: 1,
  593. dept1: '$user.dept1',
  594. dept2: '$user.dept2',
  595. dept3: '$user.dept3',
  596. dept4: '$user.dept4',
  597. dept5: '$user.dept5',
  598. loginName: '$user.loginName',
  599. userName: '$user.userName',
  600. infoValue: 1,
  601. visitValue: 1,
  602. totalValue: 1,
  603. } },</json_query>
  604. <auth_database/>
  605. <auth_user/>
  606. <auth_password>Encrypted </auth_password>
  607. <auth_mech/>
  608. <auth_kerberos>N</auth_kerberos>
  609. <connect_timeout/>
  610. <socket_timeout/>
  611. <use_ssl_socket_factory>N</use_ssl_socket_factory>
  612. <read_preference>primary</read_preference>
  613. <output_json>N</output_json>
  614. <query_is_pipeline>Y</query_is_pipeline>
  615. <execute_for_each_row>N</execute_for_each_row>
  616. <mongo_fields>
  617. <mongo_field>
  618. <field_name>dept5</field_name>
  619. <field_path>$.dept5</field_path>
  620. <field_type>String</field_type>
  621. </mongo_field>
  622. <mongo_field>
  623. <field_name>totalValue</field_name>
  624. <field_path>$.totalValue</field_path>
  625. <field_type>Integer</field_type>
  626. </mongo_field>
  627. <mongo_field>
  628. <field_name>infoValue</field_name>
  629. <field_path>$.infoValue</field_path>
  630. <field_type>Integer</field_type>
  631. </mongo_field>
  632. <mongo_field>
  633. <field_name>userName</field_name>
  634. <field_path>$.userName</field_path>
  635. <field_type>String</field_type>
  636. </mongo_field>
  637. <mongo_field>
  638. <field_name>loginName</field_name>
  639. <field_path>$.loginName</field_path>
  640. <field_type>String</field_type>
  641. </mongo_field>
  642. <mongo_field>
  643. <field_name>visitValue</field_name>
  644. <field_path>$.visitValue</field_path>
  645. <field_type>Integer</field_type>
  646. </mongo_field>
  647. <mongo_field>
  648. <field_name>_id</field_name>
  649. <field_path>$._id</field_path>
  650. <field_type>String</field_type>
  651. </mongo_field>
  652. <mongo_field>
  653. <field_name>dept1</field_name>
  654. <field_path>$.dept1</field_path>
  655. <field_type>String</field_type>
  656. </mongo_field>
  657. <mongo_field>
  658. <field_name>dept2</field_name>
  659. <field_path>$.dept2</field_path>
  660. <field_type>String</field_type>
  661. </mongo_field>
  662. <mongo_field>
  663. <field_name>dept3</field_name>
  664. <field_path>$.dept3</field_path>
  665. <field_type>String</field_type>
  666. </mongo_field>
  667. <mongo_field>
  668. <field_name>dept4</field_name>
  669. <field_path>$.dept4</field_path>
  670. <field_type>String</field_type>
  671. </mongo_field>
  672. </mongo_fields>
  673. <attributes/>
  674. <cluster_schema/>
  675. <remotesteps>
  676. <input>
  677. </input>
  678. <output>
  679. </output>
  680. </remotesteps>
  681. <GUI>
  682. <xloc>256</xloc>
  683. <yloc>192</yloc>
  684. <draw>Y</draw>
  685. </GUI>
  686. </step>
  687. <step>
  688. <name>插入 / 更新</name>
  689. <type>InsertUpdate</type>
  690. <description/>
  691. <distribute>Y</distribute>
  692. <custom_distribution/>
  693. <copies>1</copies>
  694. <partitioning>
  695. <method>none</method>
  696. <schema_name/>
  697. </partitioning>
  698. <connection>mysql_value</connection>
  699. <commit>100</commit>
  700. <update_bypassed>N</update_bypassed>
  701. <lookup>
  702. <schema>ry</schema>
  703. <table>value</table>
  704. <key>
  705. <name>_id</name>
  706. <field>userid</field>
  707. <condition>=</condition>
  708. <name2/>
  709. </key>
  710. <value>
  711. <name>dept5</name>
  712. <rename>dept5</rename>
  713. <update>Y</update>
  714. </value>
  715. <value>
  716. <name>totalValue</name>
  717. <rename>totalValue</rename>
  718. <update>Y</update>
  719. </value>
  720. <value>
  721. <name>infoValue</name>
  722. <rename>infoValue</rename>
  723. <update>Y</update>
  724. </value>
  725. <value>
  726. <name>userName</name>
  727. <rename>userName</rename>
  728. <update>Y</update>
  729. </value>
  730. <value>
  731. <name>loginName</name>
  732. <rename>loginName</rename>
  733. <update>Y</update>
  734. </value>
  735. <value>
  736. <name>visitValue</name>
  737. <rename>visitValue</rename>
  738. <update>Y</update>
  739. </value>
  740. <value>
  741. <name>userid</name>
  742. <rename>_id</rename>
  743. <update>Y</update>
  744. </value>
  745. <value>
  746. <name>dept1</name>
  747. <rename>dept1</rename>
  748. <update>Y</update>
  749. </value>
  750. <value>
  751. <name>dept2</name>
  752. <rename>dept2</rename>
  753. <update>Y</update>
  754. </value>
  755. <value>
  756. <name>dept3</name>
  757. <rename>dept3</rename>
  758. <update>Y</update>
  759. </value>
  760. <value>
  761. <name>dept4</name>
  762. <rename>dept4</rename>
  763. <update>Y</update>
  764. </value>
  765. </lookup>
  766. <attributes/>
  767. <cluster_schema/>
  768. <remotesteps>
  769. <input>
  770. </input>
  771. <output>
  772. </output>
  773. </remotesteps>
  774. <GUI>
  775. <xloc>608</xloc>
  776. <yloc>192</yloc>
  777. <draw>Y</draw>
  778. </GUI>
  779. </step>
  780. <step>
  781. <name>表输出</name>
  782. <type>TableOutput</type>
  783. <description/>
  784. <distribute>Y</distribute>
  785. <custom_distribution/>
  786. <copies>1</copies>
  787. <partitioning>
  788. <method>none</method>
  789. <schema_name/>
  790. </partitioning>
  791. <connection>mysql_value</connection>
  792. <schema>ry</schema>
  793. <table>value</table>
  794. <commit>10000</commit>
  795. <truncate>Y</truncate>
  796. <ignore_errors>N</ignore_errors>
  797. <use_batch>Y</use_batch>
  798. <specify_fields>Y</specify_fields>
  799. <partitioning_enabled>N</partitioning_enabled>
  800. <partitioning_field/>
  801. <partitioning_daily>N</partitioning_daily>
  802. <partitioning_monthly>Y</partitioning_monthly>
  803. <tablename_in_field>N</tablename_in_field>
  804. <tablename_field/>
  805. <tablename_in_table>Y</tablename_in_table>
  806. <return_keys>N</return_keys>
  807. <return_field/>
  808. <fields>
  809. <field>
  810. <column_name>dept5</column_name>
  811. <stream_name>dept5</stream_name>
  812. </field>
  813. <field>
  814. <column_name>totalValue</column_name>
  815. <stream_name>totalValue</stream_name>
  816. </field>
  817. <field>
  818. <column_name>infoValue</column_name>
  819. <stream_name>infoValue</stream_name>
  820. </field>
  821. <field>
  822. <column_name>userName</column_name>
  823. <stream_name>userName</stream_name>
  824. </field>
  825. <field>
  826. <column_name>loginName</column_name>
  827. <stream_name>loginName</stream_name>
  828. </field>
  829. <field>
  830. <column_name>visitValue</column_name>
  831. <stream_name>visitValue</stream_name>
  832. </field>
  833. <field>
  834. <column_name>userid</column_name>
  835. <stream_name>_id</stream_name>
  836. </field>
  837. <field>
  838. <column_name>dept1</column_name>
  839. <stream_name>dept1</stream_name>
  840. </field>
  841. <field>
  842. <column_name>dept2</column_name>
  843. <stream_name>dept2</stream_name>
  844. </field>
  845. <field>
  846. <column_name>dept3</column_name>
  847. <stream_name>dept3</stream_name>
  848. </field>
  849. <field>
  850. <column_name>dept4</column_name>
  851. <stream_name>dept4</stream_name>
  852. </field>
  853. </fields>
  854. <attributes/>
  855. <cluster_schema/>
  856. <remotesteps>
  857. <input>
  858. </input>
  859. <output>
  860. </output>
  861. </remotesteps>
  862. <GUI>
  863. <xloc>608</xloc>
  864. <yloc>48</yloc>
  865. <draw>Y</draw>
  866. </GUI>
  867. </step>
  868. <step_error_handling>
  869. </step_error_handling>
  870. <slave-step-copy-partition-distribution>
  871. </slave-step-copy-partition-distribution>
  872. <slave_transformation>N</slave_transformation>
  873. <attributes/>
  874. </transformation>