久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <legend id='Tc9ge'><style id='Tc9ge'><dir id='Tc9ge'><q id='Tc9ge'></q></dir></style></legend>
  1. <i id='Tc9ge'><tr id='Tc9ge'><dt id='Tc9ge'><q id='Tc9ge'><span id='Tc9ge'><b id='Tc9ge'><form id='Tc9ge'><ins id='Tc9ge'></ins><ul id='Tc9ge'></ul><sub id='Tc9ge'></sub></form><legend id='Tc9ge'></legend><bdo id='Tc9ge'><pre id='Tc9ge'><center id='Tc9ge'></center></pre></bdo></b><th id='Tc9ge'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Tc9ge'><tfoot id='Tc9ge'></tfoot><dl id='Tc9ge'><fieldset id='Tc9ge'></fieldset></dl></div>

  2. <tfoot id='Tc9ge'></tfoot>
      <bdo id='Tc9ge'></bdo><ul id='Tc9ge'></ul>

  3. <small id='Tc9ge'></small><noframes id='Tc9ge'>

      如何將一個(gè) CSV 中的一行與另一個(gè) CSV 文件中的所

      How can I compare the one line in one CSV with all lines in another CSV file?(如何將一個(gè) CSV 中的一行與另一個(gè) CSV 文件中的所有行進(jìn)行比較?)

      <small id='8X25M'></small><noframes id='8X25M'>

        <bdo id='8X25M'></bdo><ul id='8X25M'></ul>

        1. <i id='8X25M'><tr id='8X25M'><dt id='8X25M'><q id='8X25M'><span id='8X25M'><b id='8X25M'><form id='8X25M'><ins id='8X25M'></ins><ul id='8X25M'></ul><sub id='8X25M'></sub></form><legend id='8X25M'></legend><bdo id='8X25M'><pre id='8X25M'><center id='8X25M'></center></pre></bdo></b><th id='8X25M'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8X25M'><tfoot id='8X25M'></tfoot><dl id='8X25M'><fieldset id='8X25M'></fieldset></dl></div>
              <tbody id='8X25M'></tbody>
              • <legend id='8X25M'><style id='8X25M'><dir id='8X25M'><q id='8X25M'></q></dir></style></legend>
                <tfoot id='8X25M'></tfoot>
                本文介紹了如何將一個(gè) CSV 中的一行與另一個(gè) CSV 文件中的所有行進(jìn)行比較?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我有兩個(gè) CSV 文件:

                I have two CSV files:

                1. Identity(no,name,Age) 有 10 行
                2. Location(Address,no,City) 有 100 行
                1. Identity(no,name,Age) which has 10 rows
                2. Location(Address,no,City) which has 100 rows

                我需要提取行并使用 Location CSV 文件檢查 Identity 中的 no 列.

                I need to extract rows and check the no column in the Identity with Location CSV files.

                Identity CSV 文件中獲取單行并檢查 Identity.noLocation.noLocation<中有 100 行/code> CSV 文件.

                Get the single row from Identity CSV file and check Identity.no with Location.no having 100 rows in Location CSV file.

                如果匹配則在Identity, Location

                注意:我需要將 Identity 的第一行與 Location CSV 文件中的 100 行進(jìn)行比較,然后將第二行與 100 行進(jìn)行比較.它將在 Identity CSV 文件中繼續(xù)最多 10 行.

                Note: I need to get 1st row from Identity compare it with 100 rows in Location CSV file and then get the 2nd row compare it with 100 rows. It will be continue up to 10 rows in Identity CSV file.

                并將整體結(jié)果轉(zhuǎn)換為 Json.然后將結(jié)果移入 SQL Server.

                And overall results convert into Json.Then move the results in to SQL Server.

                是否可以在 Apache Nifi 中使用?

                感謝任何幫助.

                推薦答案

                您可以在 NiFi 中使用 DistributedMapCache 功能執(zhí)行此操作,該功能實(shí)現(xiàn)了用于查找的鍵/值存儲(chǔ).該設(shè)置需要一個(gè)分布式地圖緩存,以及兩個(gè)流 - 一個(gè)用于使用您的地址記錄填充緩存,另一個(gè)用于通過 no 字段查找地址.

                You can do this in NiFi by using the DistributedMapCache feature, which implements a key/value store for lookups. The setup requires a distributed map cache, plus two flows - one to populate the cache with your Address records, and one to look up the address by the no field.

                1. DistributedMapCache 由兩個(gè)控制器服務(wù)定義,一個(gè) DistributedMapCacheServer 和 DistributeMapCacheClientService.如果您的數(shù)據(jù)集很小,您可以使用localhost"作為服務(wù)器.

                1. The DistributedMapCache is defined by two controller services, a DistributedMapCacheServer and a DistributeMapCacheClientService. If your data set is small, you can just use "localhost" as the server.

                填充緩存需要讀取地址文件、拆分記錄、提取no 鍵,并將鍵/值對(duì)放入緩存.大致流程可能包括 GetFile -> SplitText -> ExtractText -> UpdateAttribute -> PutDistributedMapCache.

                Populating the cache requires reading the Address file, splitting the records, extracting the no key, and putting key/value pairs to the cache. An approximate flow might include GetFile -> SplitText -> ExtractText -> UpdateAttribute -> PutDistributedMapCache.

                查找您的身份記錄實(shí)際上與上面的流程非常相似,因?yàn)樗枰x取身份文件、拆分記錄、提取no 鍵,然后獲取地址記錄.處理器流程可能包括 GetFile -> SplitText -> ExtractText -> UpdateAttribute -> FetchDistributedMapCache.

                Looking up your identity records is actually fairly similar to the flow above, in that it requires reading the Identity file, splitting the records, extracting the no key, and then fetching the address record. Processor flow might include GetFile -> SplitText -> ExtractText -> UpdateAttribute -> FetchDistributedMapCache.

                您可以使用 AttributesToJSON 或 ExecuteScript 將整個(gè)或部分從 CSV 轉(zhuǎn)換為 JSON.

                You can convert the whole or parts from CSV to JSON with AttributesToJSON, or maybe ExecuteScript.

                這篇關(guān)于如何將一個(gè) CSV 中的一行與另一個(gè) CSV 文件中的所有行進(jìn)行比較?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Break down a table to pivot in columns (SQL,PYSPARK)(分解表以按列進(jìn)行透視(SQL、PYSPARK))
                Spark giving Null Pointer Exception while performing jdbc save(Spark在執(zhí)行jdbc保存時(shí)給出空指針異常)
                execute query on sqlserver using spark sql(使用 spark sql 在 sqlserver 上執(zhí)行查詢)
                Flowfile absolute path Nifi(Flowfile 絕對(duì)路徑 Nifi)
                Apache Nifi How to load JSON with nested array JSON and Call Oracle Stored Procedure(Apache Nifi 如何使用嵌套數(shù)組 JSON 加載 JSON 并調(diào)用 Oracle 存儲(chǔ)過程)
                executeSql failing after putSql processor(putSql處理器后executeSql失敗)

                1. <i id='TZam4'><tr id='TZam4'><dt id='TZam4'><q id='TZam4'><span id='TZam4'><b id='TZam4'><form id='TZam4'><ins id='TZam4'></ins><ul id='TZam4'></ul><sub id='TZam4'></sub></form><legend id='TZam4'></legend><bdo id='TZam4'><pre id='TZam4'><center id='TZam4'></center></pre></bdo></b><th id='TZam4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TZam4'><tfoot id='TZam4'></tfoot><dl id='TZam4'><fieldset id='TZam4'></fieldset></dl></div>

                        <tbody id='TZam4'></tbody>

                          <bdo id='TZam4'></bdo><ul id='TZam4'></ul>
                          <legend id='TZam4'><style id='TZam4'><dir id='TZam4'><q id='TZam4'></q></dir></style></legend>

                          <small id='TZam4'></small><noframes id='TZam4'>

                          <tfoot id='TZam4'></tfoot>
                        • 主站蜘蛛池模板: 在线免费观看av片 | 日本毛片在线观看 | 日本一级大毛片a一 | www.狠狠操 | 亚洲欧美日韩成人 | 91女人18毛片水多国产 | 五月婷婷影院 | 国产精品一区在线观看 | 国产三级视频在线播放 | 久草福利在线观看 | 国产伦精品一区二区三区免费视频 | 蜜臀久久99精品久久久久宅男 | 日韩黄色在线观看 | 国精产品一区二区 | 欧洲性视频 | 欧美在线免费观看 | 青青青视频在线 | 亚洲iv一区二区三区 | 日韩精品在线观看视频 | 国产性生活 | 四虎成人在线 | 日本一级大毛片a一 | 一区二区在线免费观看 | 久久久www成人免费精品 | 免费黄色一级 | 中文字幕综合网 | 综合一区二区三区 | 欧美一级片在线 | 成人一级黄色片 | 国产精品大全 | 欧美午夜视频 | 欧美在线日韩 | 亚洲精选在线观看 | 97免费在线 | 中文字幕在线免费视频 | 久久人体视频 | 欧美成人极品 | 91综合在线 | 日本在线视频一区二区 | 在线看日韩 | 四虎黄色片 |