Talend来自单个REST的两个DB输入(Talend two DB inputs from single REST)
尝试在Talend ESB中执行以下方案:
tREST_request ---- tXMLMap - 将其拆分为两个DB_Inputs - tXMLMap --- tREST_response
- 从RESTrequest获取ID,
- 然后通过此ID从两个不同的DB获取一些信息
- 最后结合两个数据库输入的结果REST响应
Talend不允许我将两个DB输入组合到单个XMLmap中,因为据我所知,可能只有一个Main流。 还有其他办法吗?
Trying to do following scheme in Talend ESB:
tREST_request ---- tXMLMap -- Split it to two DB_Inputs -- tXMLMap --- tREST_response
- getting ID from RESTrequest,
- then get some info from two different DBs by this ID
- and finally combine the result REST responses from both DB inputs
Talend do not allow me to combine both DB inputs to single XMLmap, as i understand may be only one Main flow. Are there any other way to do it?
原文:https://stackoverflow.com/questions/26510791
最满意答案
有52个! (这是五十二个阶乘)不同的数组,就像你描述的那样。 顺便说一句,他们被称为排列。 0到52之间的单个数字! 唯一代表这种排列。 您需要226位来存储这样的数字。 八个32位整数也可以。
您可以阅读有关将数字映射到排列的信息,然后返回此处 。
There are 52! (that's fifty two factorial) different arrays like you describe. By the way they are called permutations. A single number between 0 and 52! uniquely represents such a permutation. You need 226 bits to store such a number. Eight 32-bit integers would do just as well.
You can read about mapping numbers to permutations and back here.
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
SQL网络接口错误52(SQL Network Interface Error 52)[2023-04-20]
我不确定确切的关系是怎样的,但我能够解决这个问题。 我使用了MigrateDatabaseToLatestVersion初始化程序,显然这是我现在将其更改为CreateDatabaseIfNotExists初始化程序的问题,它工作正常。 I am not sure how the exact relationship ist but I was able to resolve this issue. I used the MigrateDatabaseToLatestVersion initializer ... -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
只需使用java 1.8并为我设置以下工作:它似乎需要最新的构建工具和使用插孔 android { compileSdkVersion 23 buildToolsVersion 24rc3 defaultConfig { ... jackOptions { enabled true } } dexOptions { incremental true } ...
-
将52个整数编码为较少量的好方法是什么?(What would be a good way to encode 52 integers into a fewer amount?)[2023-06-28]
有52个! (这是五十二个阶乘)不同的数组,就像你描述的那样。 顺便说一句,他们被称为排列。 0到52之间的单个数字! 唯一代表这种排列。 您需要226位来存储这样的数字。 八个32位整数也可以。 您可以阅读有关将数字映射到排列的信息,然后返回此处 。 There are 52! (that's fifty two factorial) different arrays like you describe. By the way they are called permutations. A single ... -
$zeros_array = array(); for($i = 1; $i <= 52; $i++) array_push($zeros_array, 0); for($i = 1; $i <= 52; $i++) $totaal["week".$i] = array_merge($totaal["week".$i], $zeros_array); $zeros_array = array(); for($i = 1; $i <= 52; $i++) ...
-
。:: JavaScript只支持53位整数::。 JavaScript中的所有数字都是浮点数,这意味着整数始终表示为 sign × mantissa × 2exponent 尾数有53位。 你可以使用指数来获得更高的整数,但是它们不会再连续。 例如,您通常需要将尾数乘以2(指数1)才能达到第54位。 但是,如果乘以2,则只能表示每个第二个整数: Math.pow(2, 53) // 54 bits 9007199254740992 Math.pow(2, 53) + 1 // 9007199 ...
-
周数范围的返回数组: function weeks($start_week) { $last_week = date_format(date_create('December 28th'), 'W'); $range = range(1, $last_week); return array_merge( array_slice($range, $start_week - 1), array_slice($range, 0, $start_week - ...
-
可能是这些项目中提交的作者字段中的电子邮件地址与您的GitHub帐户关联的任何电子邮件地址都不匹配。 如果您转到“帐户设置”,则会出现一个名为“电子邮件地址”的选项,您可以在其中添加与您关联的其他电子邮件地址,以便GitHub可以将这些提交识别为您的。 It's probably that the email addresses in the Author fields of the commits in those projects don't match any of the email address ...
-
方式1. 日期#strftime Date.new(2016,1,1).strftime("%U").to_i + 1 # week starts with Sunday Date.new(2016,1,1).strftime("%W").to_i + 1 # week starts with Monday 方式2. 日期#cweek Date.new(2016,1,1).cweek % 53 + 1 # week starts with Monday Way 1. Date#strftime Date ...