pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <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="ltioe0n" 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'>

      如何將一個 CSV 中的一行與另一個 CSV 文件中的所

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

      <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="ngvnnps" 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>
                本文介紹了如何將一個 CSV 中的一行與另一個 CSV 文件中的所有行進行比較?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我有兩個 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 行進行比較,然后將第二行與 100 行進行比較.它將在 Identity CSV 文件中繼續最多 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.

                并將整體結果轉換為 Json.然后將結果移入 SQL Server.

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

                是否可以在 Apache Nifi 中使用?

                感謝任何幫助.

                推薦答案

                您可以在 NiFi 中使用 DistributedMapCache 功能執行此操作,該功能實現了用于查找的鍵/值存儲.該設置需要一個分布式地圖緩存,以及兩個流 - 一個用于使用您的地址記錄填充緩存,另一個用于通過 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 由兩個控制器服務定義,一個 DistributedMapCacheServer 和 DistributeMapCacheClientService.如果您的數據集很小,您可以使用localhost"作為服務器.

                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 鍵,并將鍵/值對放入緩存.大致流程可能包括 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.

                查找您的身份記錄實際上與上面的流程非常相似,因為它需要讀取身份文件、拆分記錄、提取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 將整個或部分從 CSV 轉換為 JSON.

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

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

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

                相關文檔推薦

                Break down a table to pivot in columns (SQL,PYSPARK)(分解表以按列進行透視(SQL、PYSPARK))
                Spark giving Null Pointer Exception while performing jdbc save(Spark在執行jdbc保存時給出空指針異常)
                execute query on sqlserver using spark sql(使用 spark sql 在 sqlserver 上執行查詢)
                Flowfile absolute path Nifi(Flowfile 絕對路徑 Nifi)
                Apache Nifi How to load JSON with nested array JSON and Call Oracle Stored Procedure(Apache Nifi 如何使用嵌套數組 JSON 加載 JSON 并調用 Oracle 存儲過程)
                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="x5zv0rt" 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>
                        • 主站蜘蛛池模板: 曙光腾达官网-天津脚手架租赁-木板架出租-移动门式脚手架租赁「免费搭设」 | 广域铭岛Geega(际嘉)工业互联网平台-以数字科技引领行业跃迁 | 深圳工程师职称评定条件及流程_深圳职称评审_职称评审-职称网 | 浙江皓格药业有限公司| 刑事律师_深圳著名刑事辩护律师_王平聚【清华博士|刑法教授】 | 吊篮式|移动式冷热冲击试验箱-二槽冷热冲击试验箱-广东科宝 | 智能楼宇-楼宇自控系统-楼宇智能化-楼宇自动化-三水智能化 | 不锈钢钢格栅板_热浸锌钢格板_镀锌钢格栅板_钢格栅盖板-格美瑞 | 博医通医疗器械互联网供应链服务平台_博医通 | 土壤墒情监测站_土壤墒情监测仪_土壤墒情监测系统_管式土壤墒情站-山东风途物联网 | 山东钢衬塑罐_管道_反应釜厂家-淄博富邦滚塑防腐设备科技有限公司 | 广东佛电电器有限公司|防雷开关|故障电弧断路器|智能量测断路器 广东西屋电气有限公司-广东西屋电气有限公司 | 余姚生活网_余姚论坛_余姚市综合门户网站 | 浴室柜-浴室镜厂家-YINAISI · 意大利设计师品牌 | 咿耐斯 |-浙江台州市丰源卫浴有限公司 | 福建自考_福建自学考试网| 地磅-电子地磅维修-电子吊秤-汽车衡-无人值守系统-公路治超-鹰牌衡器 | 板框压滤机-隔膜压滤机-厢式压滤机生产厂家-禹州市君工机械设备有限公司 | 同步带轮_同步带_同步轮_iHF合发齿轮厂家-深圳市合发齿轮机械有限公司 | 预制直埋蒸汽保温管-直埋管道-聚氨酯发泡保温管厂家 - 唐山市吉祥保温工贸有限公司 | 国标白水泥,高标号白水泥,白水泥厂家-淄博华雪建材有限公司 | 西安微信朋友圈广告投放_微信朋友圈推广_西安度娘网络科技有限公司 | Maneurop/美优乐压缩机,活塞压缩机,型号规格,技术参数,尺寸图片,价格经销商 | 叉车电池-叉车电瓶-叉车蓄电池-铅酸蓄电池-电动叉车蓄电池生产厂家 | 电子元器件呆滞料_元器件临期库存清仓尾料_尾料优选现货采购处理交易商城 | 仿古瓦,仿古金属瓦,铝瓦,铜瓦,铝合金瓦-西安东申景观艺术工程有限公司 | 温州富欧金属封头-不锈钢封头厂家 | 国资灵活用工平台_全国灵活用工平台前十名-灵活用工结算小帮手 | 活性炭-蜂窝-椰壳-柱状-粉状活性炭-河南唐达净水材料有限公司 | 华夏医界网_民营医疗产业信息平台_民营医院营销管理培训 | 焊锡丝|焊锡条|无铅锡条|无铅锡丝|无铅焊锡线|低温锡膏-深圳市川崎锡业科技有限公司 | 万家财经_财经新闻_在线财经资讯网 | 电销卡_稳定企业大语音卡-归属地可选-世纪通信 | 便携式谷丙转氨酶检测仪|华图生物科技百科 | NBA直播_NBA直播免费观看直播在线_NBA直播免费高清无插件在线观看-24直播网 | pos机办理,智能/扫码/二维码/微信支付宝pos机-北京万汇通宝商贸有限公司 | 啤酒设备-小型啤酒设备-啤酒厂设备-济南中酿机械设备有限公司 | 奶茶加盟,奶茶加盟店连锁品牌-甜啦啦官网| 二维运动混料机,加热型混料机,干粉混料机-南京腾阳干燥设备厂 | 顺辉瓷砖-大国品牌-中国顺辉| 上海冠顶工业设备有限公司-隧道炉,烘箱,UV固化机,涂装设备,高温炉,工业机器人生产厂家 | 钛合金标准件-钛合金螺丝-钛管件-钛合金棒-钛合金板-钛合金锻件-宝鸡远航钛业有限公司 |