{"id":44033,"date":"2025-06-16T14:28:56","date_gmt":"2025-06-16T06:28:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/44033.html"},"modified":"2025-06-16T14:28:56","modified_gmt":"2025-06-16T06:28:56","slug":"list-tomap%e4%bc%98%e5%8c%96%e4%bc%98%e5%8c%96%e5%86%8d%e4%bc%98%e5%8c%96%e5%88%b0%e6%9e%81%e8%87%b4","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/44033.html","title":{"rendered":"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4"},"content":{"rendered":"<p>\u8bf7\u5bf9\u4ee5\u4e0b\u4ee3\u7801\u8fdb\u884c\u4f18\u5316&#xff01;<\/p>\n<p>\u770b\u7740\u662f\u4e0d\u662f\u5f88\u7b80\u5355&#xff1f;\u4f60\u662f\u4e0d\u662f\u65e5\u5e38\u4e5f\u4f1a\u8fd9\u4e48\u5199&#xff1f;<\/p>\n<p>\u5f53\u524d\u4f7f\u7528\u7684\u662fjava21&#xff0c;<\/p>\n<p>\/\/1-\u7edf\u8ba1blockName\u51fa\u73b0\u7684\u6b21\u6570<br \/>\nConcurrentHashMap&lt;String, Integer&gt; map &#061; new ConcurrentHashMap&lt;&gt;();<br \/>\n        stockList.parallelStream().forEach(st -&gt; {<br \/>\n            String blockName &#061; st.getBlock_name();<br \/>\n            if (map.containsKey(blockName)) {<br \/>\n                map.put(blockName, map.get(blockName) &#043; 1);<br \/>\n            } else {<br \/>\n                map.put(blockName, 1);<br \/>\n            }<br \/>\n        });<br \/>\n\/\/2-\u4fdd\u5b58blockName\u51fa\u73b0\u7684\u6b21\u6570<br \/>\nstockList.parallelStream().forEach(st -&gt; {<br \/>\n    String blockName &#061; st.getBlock_name();<br \/>\n   st.setFinance_type(String.valueOf(map.get(blockName)));<br \/>\n}); <\/p>\n<h2>\u4f18\u5316\u4e00<\/h2>\n<p>ConcurrentHashMap \u548c parallelStream \u6765\u7edf\u8ba1 stockList \u4e2d\u6bcf\u4e2a blockName \u7684\u51fa\u73b0\u6b21\u6570&#xff0c;\u5e76\u5c06\u7edf\u8ba1\u7ed3\u679c\u8bbe\u7f6e\u5230\u6bcf\u4e2a stock \u5bf9\u8c61\u7684 finance_type \u5c5e\u6027\u4e2d\u3002\u867d\u7136\u4ee3\u7801\u529f\u80fd\u6b63\u786e&#xff0c;\u4f46\u5b58\u5728\u4ee5\u4e0b\u4f18\u5316\u7a7a\u95f4&#xff1a;<\/p>\n<\/p>\n<li>\n<p>\u91cd\u590d\u904d\u5386\u95ee\u9898&#xff1a;\u4ee3\u7801\u4f7f\u7528\u4e86\u4e24\u4e2a parallelStream().forEach \u5206\u522b\u5904\u7406\u8ba1\u6570\u548c\u8d4b\u503c&#xff0c;\u589e\u52a0\u4e86\u5f00\u9500\u3002\u53ef\u4ee5\u5408\u5e76\u4e3a\u4e00\u6b21\u904d\u5386\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ebf\u7a0b\u5b89\u5168\u6539\u8fdb&#xff1a;ConcurrentHashMap \u7684 containsKey \u548c get \u7ec4\u5408\u4e0d\u662f\u539f\u5b50\u64cd\u4f5c&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u5e76\u53d1\u95ee\u9898\u3002\u53ef\u4ee5\u4f7f\u7528 compute \u6216 merge \u65b9\u6cd5\u6765\u786e\u4fdd\u7ebf\u7a0b\u5b89\u5168\u3002<\/p>\n<\/li>\n<li>\n<p>\u6027\u80fd\u4f18\u5316&#xff1a;parallelStream \u5728\u5c0f\u6570\u636e\u96c6\u4e0a\u53ef\u80fd\u5f15\u5165\u4e0d\u5fc5\u8981\u7684\u7ebf\u7a0b\u5f00\u9500&#xff0c;\u5efa\u8bae\u6839\u636e\u6570\u636e\u89c4\u6a21\u9009\u62e9\u662f\u5426\u5e76\u884c\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ee3\u7801\u7b80\u6d01\u6027&#xff1a;\u53ef\u4ee5\u4f7f\u7528 Collectors.groupingBy \u7b80\u5316\u8ba1\u6570\u903b\u8f91\u3002<\/p>\n<\/li>\n<p>\u4ee5\u4e0b\u662f\u4f18\u5316\u540e\u7684\u4ee3\u7801&#xff1a;<\/p>\n<p>ConcurrentHashMap&lt;String, Integer&gt; map &#061; new ConcurrentHashMap&lt;&gt;();<br \/>\n\/\/ \u7edf\u8ba1 blockName \u51fa\u73b0\u6b21\u6570<br \/>\nstockList.parallelStream()<br \/>\n    .collect(Collectors.groupingBy(<br \/>\n        Stock::getBlock_name,<br \/>\n        Collectors.counting()))<br \/>\n    .forEach((blockName, count) -&gt;<br \/>\n        map.put(blockName, count.intValue()));<\/p>\n<p>\/\/ \u8bbe\u7f6e finance_type<br \/>\nstockList.parallelStream().forEach(st -&gt;<br \/>\n    st.setFinance_type(String.valueOf(map.get(st.getBlock_name())))); <\/p>\n<h4>\u4f18\u5316\u70b9\u8bf4\u660e&#xff1a;<\/h4>\n<li>\n<p>\u5355\u6b21\u7edf\u8ba1&#xff1a;\u4f7f\u7528 Collectors.groupingBy \u548c Collectors.counting \u4e00\u6b21\u6027\u5b8c\u6210 blockName \u7684\u8ba1\u6570&#xff0c;\u66ff\u4ee3\u624b\u52a8 forEach \u548c put \u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ebf\u7a0b\u5b89\u5168&#xff1a;collect \u64cd\u4f5c\u662f\u7ebf\u7a0b\u5b89\u5168\u7684&#xff0c;\u751f\u6210\u7684 Map \u7ed3\u679c\u76f4\u63a5\u5199\u5165 ConcurrentHashMap&#xff0c;\u907f\u514d\u4e86 containsKey \u548c get \u7684\u975e\u539f\u5b50\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ee3\u7801\u66f4\u7b80\u6d01&#xff1a;groupingBy \u662f\u51fd\u6570\u5f0f\u7f16\u7a0b\u98ce\u683c&#xff0c;\u903b\u8f91\u66f4\u6e05\u6670&#xff0c;\u51cf\u5c11\u4e86\u624b\u52a8\u7ef4\u62a4 map \u7684\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>\u4fdd\u7559\u5e76\u884c\u5904\u7406&#xff1a;\u7ee7\u7eed\u4f7f\u7528 parallelStream \u4fdd\u6301\u5e76\u53d1\u6027\u80fd&#xff0c;\u9002\u5408\u5927\u6570\u636e\u91cf\u573a\u666f\u3002<\/p>\n<\/li>\n<h4 style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250616062853-684fb9a553190.jpg\" \/><\/h4>\n<h4>\u8fdb\u4e00\u6b65\u4f18\u5316\u5efa\u8bae&#xff1a;<\/h4>\n<ul>\n<li>\n<p>\u5e76\u884c\u4e0e\u4e32\u884c\u9009\u62e9&#xff1a;\u5982\u679c stockList \u6570\u636e\u91cf\u8f83\u5c0f&#xff08;\u4f8b\u5982\u51e0\u767e\u6761&#xff09;&#xff0c;parallelStream \u7684\u7ebf\u7a0b\u5207\u6362\u6210\u672c\u53ef\u80fd\u9ad8\u4e8e\u5355\u7ebf\u7a0b\u5904\u7406&#xff0c;\u5efa\u8bae\u6d4b\u8bd5\u5207\u6362\u4e3a stream() \u7684\u6027\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p>\u5408\u5e76\u64cd\u4f5c&#xff1a;\u5982\u679c finance_type \u53ea\u4f9d\u8d56\u4e8e\u8ba1\u6570\u7ed3\u679c&#xff0c;\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5408\u5e76\u8ba1\u6570\u548c\u8d4b\u503c\u903b\u8f91\u4e3a\u5355\u6b21\u904d\u5386&#xff0c;\u4f46\u9700\u8981\u6743\u8861\u4ee3\u7801\u53ef\u8bfb\u6027\u3002\u4f8b\u5982&#xff1a;<\/p>\n<ul><\/ul>\n<\/li>\n<\/ul>\n<p>Map&lt;String, Long&gt; countMap &#061; stockList.parallelStream()<br \/>\n    .collect(Collectors.groupingBy(<br \/>\n        Stock::getBlock_name,<br \/>\n        Collectors.counting()));<br \/>\nstockList.forEach(st -&gt;<br \/>\n    st.setFinance_type(String.valueOf(countMap.get(st.getBlock_name())))); <\/p>\n<p>\u00a0\u00a0\u8fd9\u91cc\u53bb\u6389\u4e86 ConcurrentHashMap&#xff0c;\u56e0\u4e3a\u8ba1\u6570\u540e\u7684 Map \u53ea\u8bfb\u4e0d\u5199&#xff0c;\u65e0\u9700\u5e76\u53d1\u652f\u6301\u3002<\/p>\n<ul>\n<li>\n<p>\u5f02\u5e38\u5904\u7406&#xff1a;\u786e\u4fdd getBlock_name \u4e0d\u4f1a\u8fd4\u56de null&#xff0c;\u5426\u5219\u9700\u6dfb\u52a0\u7a7a\u503c\u68c0\u67e5\u4ee5\u907f\u514d NullPointerException\u3002<\/p>\n<\/li>\n<li>\n<p>\u6027\u80fd\u6d4b\u8bd5&#xff1a;\u5efa\u8bae\u5bf9\u4f18\u5316\u540e\u7684\u4ee3\u7801\u8fdb\u884c\u6027\u80fd\u6d4b\u8bd5&#xff0c;\u786e\u8ba4\u5728\u4f60\u7684\u5b9e\u9645\u6570\u636e\u89c4\u6a21\u4e0b\u662f\u5426\u63d0\u5347\u4e86\u6548\u7387\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>\u6ce8\u610f\u4e8b\u9879&#xff1a;<\/h4>\n<ul>\n<li>\n<p>\u5982\u679c stockList \u975e\u5e38\u5927&#xff0c;parallelStream \u80fd\u6709\u6548\u5229\u7528\u591a\u6838 CPU&#xff0c;\u4f46\u9700\u786e\u4fdd Stock \u5bf9\u8c61\u7684 getBlock_name \u548c setFinance_type \u65b9\u6cd5\u7ebf\u7a0b\u5b89\u5168\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c finance_type \u7684\u503c\u4ec5\u4e3a\u5b57\u7b26\u4e32\u5316\u7684\u8ba1\u6570&#xff0c;\u8003\u8651\u76f4\u63a5\u5728 Stock \u7c7b\u4e2d\u7ef4\u62a4\u8ba1\u6570\u903b\u8f91&#xff0c;\u51cf\u5c11 Map \u7684\u4f7f\u7528&#xff08;\u89c6\u4e1a\u52a1\u9700\u6c42\u800c\u5b9a&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>\u4f18\u5316\u4e8c<\/h2>\n<p>\u9488\u5bf9\u4e0a\u767e\u4e07\u6761\u6570\u636e\u7684\u573a\u666f&#xff0c;\u6027\u80fd\u548c\u7ebf\u7a0b\u5b89\u5168\u662f\u5173\u952e\u3002\u4ee5\u4e0b\u662f\u9488\u5bf9\u4f60\u7684\u9700\u6c42&#xff08;ConcurrentHashMap \u7edf\u8ba1 blockName \u51fa\u73b0\u6b21\u6570\u5e76\u8bbe\u7f6e finance_type&#xff09;\u8fdb\u4e00\u6b65\u4f18\u5316\u7684\u4ee3\u7801&#xff0c;\u91cd\u70b9\u63d0\u5347\u6027\u80fd\u548c\u786e\u4fdd\u7edd\u5bf9\u7ebf\u7a0b\u5b89\u5168&#xff0c;\u540c\u65f6\u4fdd\u6301\u7b80\u6d01\u6027\u3002<\/p>\n<h4>\u4f18\u5316\u76ee\u6807<\/h4>\n<li>\n<p>\u6027\u80fd\u6700\u4f73&#xff1a;\u51cf\u5c11\u904d\u5386\u6b21\u6570&#xff0c;\u4f18\u5316\u5e76\u884c\u5904\u7406&#xff0c;\u964d\u4f4e\u9501\u7ade\u4e89\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ebf\u7a0b\u5b89\u5168&#xff1a;\u786e\u4fdd\u6240\u6709\u64cd\u4f5c\u5728\u9ad8\u5e76\u53d1\u4e0b\u65e0\u7ade\u4e89\u6216\u6570\u636e\u4e0d\u4e00\u81f4\u3002<\/p>\n<\/li>\n<li>\n<p>\u9002\u7528\u5927\u6570\u91cf&#xff1a;\u9488\u5bf9\u767e\u4e07\u7ea7\u6570\u636e&#xff0c;\u5145\u5206\u5229\u7528\u591a\u6838 CPU&#xff0c;\u51cf\u5c11\u5185\u5b58\u5f00\u9500\u3002<\/p>\n<\/li>\n<h4>\u4f18\u5316\u540e\u7684\u4ee3\u7801<\/h4>\n<p> ConcurrentMap&lt;String, Long&gt; collect1 &#061; stockList.parallelStream().filter(st -&gt; st.getBlock_name() !&#061; null).collect(Collectors.groupingByConcurrent(Stock::getBlock_name, Collectors.counting()));<br \/>\n        stockList.parallelStream().forEach(st -&gt; {<br \/>\n            st.setFinance_type(String.valueOf(map.get(st.getBlock_name())));<br \/>\n        }); <\/p>\n<h4>\u4f18\u5316\u70b9\u8be6\u89e3<\/h4>\n<li>\n<p>\u4f7f\u7528 **groupingByConcurrent**&#xff1a;<\/p>\n<li>\n<p>Collectors.groupingByConcurrent \u4e13\u4e3a\u5e76\u884c\u6d41\u8bbe\u8ba1&#xff0c;\u5185\u90e8\u4f7f\u7528 ConcurrentHashMap \u5b58\u50a8\u7ed3\u679c&#xff0c;\u786e\u4fdd\u8ba1\u6570\u8fc7\u7a0b\u7ebf\u7a0b\u5b89\u5168\u3002<\/p>\n<\/li>\n<li>\n<p>\u76f8\u6bd4\u666e\u901a groupingBy&#xff0c;\u5b83\u51cf\u5c11\u4e86\u5408\u5e76\u9636\u6bb5\u7684\u5f00\u9500&#xff0c;\u9002\u5408\u767e\u4e07\u7ea7\u6570\u636e\u7684\u9ad8\u5e76\u53d1\u573a\u666f\u3002<\/p>\n<\/li>\n<li>\n<p>\u76f4\u63a5\u751f\u6210\u8ba1\u6570\u7ed3\u679c&#xff0c;\u7701\u53bb\u624b\u52a8\u7ef4\u62a4 ConcurrentHashMap \u7684\u6b65\u9aa4\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u5355\u6b21\u8ba1\u6570 &#043; \u5355\u6b21\u8d4b\u503c&#xff1a;<\/p>\n<li>\n<p>\u7b2c\u4e00\u6b21 parallelStream \u5b8c\u6210\u6240\u6709 blockName \u7684\u8ba1\u6570&#xff0c;\u751f\u6210 countMap\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b2c\u4e8c\u6b21 parallelStream \u904d\u5386 stockList&#xff0c;\u5c06\u8ba1\u6570\u7ed3\u679c\u8bbe\u7f6e\u5230 finance_type\u3002<\/p>\n<\/li>\n<li>\n<p>\u867d\u7136\u4ecd\u662f\u4e24\u6b21\u904d\u5386&#xff0c;\u4f46\u6bcf\u4e00\u6b65\u90fd\u662f\u9ad8\u5ea6\u5e76\u884c\u7684&#xff0c;\u4e14\u907f\u514d\u4e86\u5728\u8ba1\u6570\u9636\u6bb5\u5bf9 ConcurrentHashMap \u7684\u7ade\u4e89\u6027\u5199\u5165\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u7ebf\u7a0b\u5b89\u5168\u4fdd\u8bc1&#xff1a;<\/p>\n<li>\n<p>groupingByConcurrent \u786e\u4fdd\u8ba1\u6570\u8fc7\u7a0b\u65e0\u7ade\u4e89\u3002<\/p>\n<\/li>\n<li>\n<p>countMap.get \u662f\u53ea\u8bfb\u64cd\u4f5c&#xff0c;ConcurrentHashMap \u7684\u8bfb\u64cd\u4f5c\u5929\u7136\u7ebf\u7a0b\u5b89\u5168&#xff0c;\u65e0\u9700\u989d\u5916\u540c\u6b65\u3002<\/p>\n<\/li>\n<li>\n<p>\u5047\u8bbe Stock.setFinance_type \u662f\u7b80\u5355\u7684\u5b57\u6bb5\u8d4b\u503c&#xff08;\u65e0\u590d\u6742\u903b\u8f91&#xff09;&#xff0c;\u5219\u7ebf\u7a0b\u5b89\u5168\u65e0\u95ee\u9898\u3002\u5982\u679c setFinance_type \u5305\u542b\u590d\u6742\u903b\u8f91&#xff0c;\u9700\u786e\u4fdd\u5176\u7ebf\u7a0b\u5b89\u5168\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u6027\u80fd\u4f18\u5316&#xff1a;<\/p>\n<li>\n<p>\u5e76\u884c\u6d41&#xff1a;parallelStream \u5145\u5206\u5229\u7528\u591a\u6838 CPU&#xff0c;\u9002\u5408\u767e\u4e07\u7ea7\u6570\u636e\u3002Java 21 \u7684 Fork\/Join \u6846\u67b6\u4f1a\u6839\u636e CPU \u6838\u5fc3\u6570\u52a8\u6001\u5206\u914d\u4efb\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u907f\u514d\u9501\u7ade\u4e89&#xff1a;groupingByConcurrent \u5185\u90e8\u4f18\u5316\u4e86 ConcurrentHashMap \u7684\u5206\u6bb5\u9501&#xff0c;\u51cf\u5c11\u5e76\u53d1\u5199\u5165\u7684\u74f6\u9888\u3002<\/p>\n<\/li>\n<li>\n<p style=\"text-align:center\">\u5185\u5b58\u6548\u7387&#xff1a;countMap \u53ea\u5b58\u50a8\u6bcf\u4e2a blockName \u7684\u8ba1\u6570&#xff0c;\u5185\u5b58\u5360\u7528\u53ef\u63a7\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250616062853-684fb9a5f2cda.jpg\" \/><\/p>\n<\/li>\n<\/li>\n<h2>\u7ec8\u6781\u4f18\u5316<\/h2>\n<p>\u9488\u5bf9\u4f60\u7684\u9700\u6c42&#xff08;\u767e\u4e07\u7ea7\u6570\u636e\u3001\u6240\u6709 finance_type \u57fa\u4e8e\u6700\u7ec8\u8ba1\u6570\u3001\u6027\u80fd\u6700\u4f73\u4e14\u7ebf\u7a0b\u5b89\u5168&#xff09;&#xff0c;\u4e14\u8003\u8651\u5230\u7cfb\u7edf\u652f\u6301\u5f02\u6b65\u6846\u67b6&#xff08;\u5982 Java 21 \u7684\u865a\u62df\u7ebf\u7a0b\u6216 Reactor&#xff09;&#xff0c;\u4ee5\u4e0b\u662f\u4f7f\u7528 CompletableFuture \u548c\u865a\u62df\u7ebf\u7a0b\u4f18\u5316\u7684\u6700\u7ec8\u4ee3\u7801\u65b9\u6848\u3002\u76f8\u6bd4\u4e4b\u524d\u7684 groupingByConcurrent \u65b9\u6848&#xff0c;\u5f02\u6b65\u6846\u67b6\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u5347\u541e\u5410\u91cf&#xff0c;\u5c24\u5176\u5728\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\u3002\u4ee3\u7801\u786e\u4fdd finance_type \u57fa\u4e8e\u6700\u7ec8\u8ba1\u6570\u503c<\/p>\n<h4>\u6700\u7ec8\u4f18\u5316\u4ee3\u7801&#xff08;\u57fa\u4e8e CompletableFuture \u548c\u865a\u62df\u7ebf\u7a0b&#xff09;<\/h4>\n<p>\u00b7\u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/p>\n<p>\/\/\u4f7f\u7528\u865a\u62df\u7ebf\u7a0b\u6267\u884c\u5668<br \/>\n        Executor virtualThreadExecutor &#061; Executors.newVirtualThreadPerTaskExecutor();<br \/>\n        \/\/\u5f02\u6b65\u8ba1\u6570<br \/>\n        CompletableFuture&lt;ConcurrentMap&lt;String, Long&gt;&gt; concurrentMapCompletableFuture &#061; CompletableFuture.supplyAsync(() -&gt; stockList.parallelStream().filter(st -&gt; st.getBlock_name() !&#061; null)<br \/>\n                        .collect(Collectors.groupingByConcurrent(<br \/>\n                                Stock::getBlock_name,<br \/>\n                                Collectors.counting()<br \/>\n                        ))<br \/>\n                , virtualThreadExecutor);<br \/>\n        \/\/\u5f02\u6b65\u8d4b\u503c<br \/>\n        CompletableFuture&lt;Void&gt; voidCompletableFuture &#061; concurrentMapCompletableFuture.thenAcceptAsync(countMap -&gt; stockList.parallelStream().filter(st -&gt; st.getBlock_name() !&#061; null)<br \/>\n                .forEach(st -&gt; st.setFinance_type(String.valueOf(countMap.get(st.getBlock_name())))), virtualThreadExecutor);<\/p>\n<p>        \/\/wait for all<br \/>\n        voidCompletableFuture.join(); <\/p>\n<h4>\u4f18\u5316\u8bf4\u660e<\/h4>\n<li>\n<p>\u865a\u62df\u7ebf\u7a0b&#xff08;Java 21&#xff09;&#xff1a;<\/p>\n<li>\n<p>\u4f7f\u7528 Executors.newVirtualThreadPerTaskExecutor() \u521b\u5efa\u865a\u62df\u7ebf\u7a0b\u6267\u884c\u5668\u3002\u865a\u62df\u7ebf\u7a0b\u662f Java 21 \u7684\u8f7b\u91cf\u7ea7\u7ebf\u7a0b&#xff0c;\u521b\u5efa\u548c\u5207\u6362\u6210\u672c\u6781\u4f4e&#xff0c;\u9002\u5408\u9ad8\u5e76\u53d1\u4efb\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u865a\u62df\u7ebf\u7a0b\u5141\u8bb8\u4e3a\u6bcf\u4e2a\u4efb\u52a1\u5206\u914d\u72ec\u7acb\u7ebf\u7a0b&#xff0c;\u6700\u5927\u5316\u5e76\u53d1\u6027&#xff0c;\u7279\u522b\u9002\u5408 I\/O \u5bc6\u96c6\u6216\u963b\u585e\u64cd\u4f5c\u8f83\u5c11\u7684\u573a\u666f&#xff08;\u5982\u4f60\u7684\u8ba1\u6570\u548c\u8d4b\u503c\u903b\u8f91&#xff09;\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>CompletableFuture \u5f02\u6b65\u5904\u7406&#xff1a;<\/p>\n<li>\n<p>\u5c06\u8ba1\u6570\u548c\u8d4b\u503c\u5206\u4e3a\u4e24\u4e2a\u5f02\u6b65\u9636\u6bb5&#xff1a;<\/p>\n<ul>\n<li>\n<p>countFuture&#xff1a;\u5f02\u6b65\u6267\u884c groupingByConcurrent&#xff0c;\u751f\u6210\u6700\u7ec8\u8ba1\u6570 Map\u3002<\/p>\n<\/li>\n<li>\n<p>assignFuture&#xff1a;\u5728\u8ba1\u6570\u5b8c\u6210\u540e\u5f02\u6b65\u6267\u884c finance_type \u8d4b\u503c\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>thenAcceptAsync \u786e\u4fdd\u8d4b\u503c\u9636\u6bb5\u7b49\u5f85\u8ba1\u6570\u5b8c\u6210&#xff0c;\u4fdd\u8bc1 finance_type \u57fa\u4e8e\u6700\u7ec8\u8ba1\u6570\u503c\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f02\u6b65\u6267\u884c\u51cf\u5c11\u4e3b\u7ebf\u7a0b\u963b\u585e&#xff0c;\u63d0\u9ad8\u541e\u5410\u91cf\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u7ebf\u7a0b\u5b89\u5168&#xff1a;<\/p>\n<li>\n<p>groupingByConcurrent \u4f7f\u7528 ConcurrentHashMap&#xff0c;\u8ba1\u6570\u8fc7\u7a0b\u7ebf\u7a0b\u5b89\u5168\u3002<\/p>\n<\/li>\n<li>\n<p>\u8d4b\u503c\u9636\u6bb5\u53ea\u8bfb countMap&#xff0c;\u65e0\u7ade\u4e89&#xff0c;Stock.setFinance_type \u5047\u8bbe\u4e3a\u7b80\u5355\u5b57\u6bb5\u8d4b\u503c&#xff08;\u7ebf\u7a0b\u5b89\u5168&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u865a\u62df\u7ebf\u7a0b\u9694\u79bb\u4efb\u52a1&#xff0c;\u964d\u4f4e\u7ebf\u7a0b\u5207\u6362\u5f00\u9500\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u6027\u80fd\u4f18\u5316&#xff1a;<\/p>\n<li>\n<p>\u5e76\u884c\u6d41 &#043; \u865a\u62df\u7ebf\u7a0b&#xff1a;parallelStream \u7ed3\u5408\u865a\u62df\u7ebf\u7a0b\u5145\u5206\u5229\u7528\u591a\u6838 CPU&#xff0c;\u9002\u5408\u767e\u4e07\u7ea7\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f02\u6b65\u6d41\u6c34\u7ebf&#xff1a;CompletableFuture \u5c06\u8ba1\u6570\u548c\u8d4b\u503c\u89e3\u8026&#xff0c;\u5141\u8bb8\u7cfb\u7edf\u5728\u7b49\u5f85\u8ba1\u6570\u5b8c\u6210\u65f6\u8c03\u5ea6\u5176\u4ed6\u4efb\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f4e\u5f00\u9500&#xff1a;\u865a\u62df\u7ebf\u7a0b\u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u51cf\u5c11\u4e0a\u4e0b\u6587\u5207\u6362\u6210\u672c&#xff0c;\u76f8\u6bd4\u4f20\u7edf\u7ebf\u7a0b\u6c60\u66f4\u9ad8\u6548\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u7a7a\u503c\u5904\u7406&#xff1a;<\/p>\n<li>\n<p>\u6dfb\u52a0 filter(st -&gt; st.getBlock_name() !&#061; null) \u9632\u6b62 blockName \u4e3a null \u5bfc\u81f4\u5f02\u5e38\u3002<\/p>\n<\/li>\n<\/li>\n<h4>\u4e3a\u4ec0\u4e48\u4f18\u4e8e\u4e4b\u524d\u7684\u65b9\u6848<\/h4>\n<ul>\n<li>\n<p>\u76f8\u6bd4 **groupingByConcurrent****&#xff08;\u540c\u6b65\u5e76\u884c\u6d41&#xff09;**&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u865a\u62df\u7ebf\u7a0b\u51cf\u5c11\u7ebf\u7a0b\u6c60\u7ba1\u7406\u7684\u5f00\u9500&#xff0c;\u9002\u5408\u9ad8\u5e76\u53d1\u4efb\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>CompletableFuture \u7684\u5f02\u6b65\u6267\u884c\u5141\u8bb8\u66f4\u7075\u6d3b\u7684\u4efb\u52a1\u8c03\u5ea6&#xff0c;\u53ef\u80fd\u5728\u591a\u4efb\u52a1\u73af\u5883\u4e2d\u63d0\u5347\u6574\u4f53\u541e\u5410\u91cf\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u76f8\u6bd4 AtomicInteger** \u5355\u6b21\u904d\u5386**&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u786e\u4fdd finance_type \u57fa\u4e8e\u6700\u7ec8\u8ba1\u6570\u503c&#xff08;\u5982 &#034;44444&#034;&#xff09;&#xff0c;\u7b26\u5408\u4f60\u7684\u4e1a\u52a1\u9700\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p>\u907f\u514d\u4e86 AtomicInteger \u7684 CAS \u7ade\u4e89\u95ee\u9898&#xff0c;\u6027\u80fd\u66f4\u7a33\u5b9a\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u6700\u540e\u6267\u884c\u7ed3\u679c\u6bd4\u8f83<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"298\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250616062855-684fb9a7c043d.png\" width=\"604\" \/><\/p>\n<p>\u600e\u4e48\u6837&#xff0c;\u7ed3\u679c\u662f\u4e0d\u662f\u51fa\u4e4e\u610f\u6599\u3002<\/p>\n<h2>java8\u5982\u4f55\u5207\u6362\u5230java21&#xff1f;<\/h2>\n<p>\u5df2\u7ecf\u90fd\u8bbe\u7f6ejava21\u4e86&#xff0c;\u4f46\u662f\u8fd8\u62a5\u9519<\/p>\n<p><span style=\"color:#fe2c24\">java: \u627e\u4e0d\u5230\u7b26\u53f7 \u00a0 \u7b26\u53f7: \u00a0 \u65b9\u6cd5 newVirtualThreadPerTaskExecutor() \u00a0 \u4f4d\u7f6e: \u7c7b java.util.concurrent<\/span><\/p>\n<p>\u539f\u56e0 \u6ca1\u6709\u5b8c\u5168\u8bbe\u7f6e<\/p>\n<p>1-idea\u91cc\u8bbe\u7f6e\u3002<\/p>\n<p>2-pom.xml\u91cc\u518d\u7ee7\u7eed\u8bbe\u7f6e\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb737\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u539f\u59cb\u4ee3\u7801\u4f7f\u7528ConcurrentHashMap\u548c\u4e24\u4e2aparallelStream\u904d\u5386\u5b58\u5728\u91cd\u590d\u8ba1\u7b97\u548c\u975e\u539f\u5b50\u64cd\u4f5c\u95ee\u9898\u3002\u7b2c\u4e00\u7ea7\u4f18\u5316\u4f7f\u7528Collectors.groupingBy\u7b80\u5316\u8ba1\u6570\u903b\u8f91\uff0c\u786e\u4fdd\u7ebf\u7a0b\u5b89\u5168\uff1b\u7b2c\u4e8c\u7ea7\u4f18\u5316\u5f15\u5165groupingByConcurrent\u63d0\u5347\u767e\u4e07\u7ea7\u6570\u636e\u5904\u7406\u6027\u80fd\uff1b\u7ec8\u6781\u65b9\u6848\u91c7\u7528Java21\u865a\u62df\u7ebf\u7a0b\u548cCompletableFuture\u5b9e\u73b0\u5f02\u6b65\u5904\u7406\uff0c\u6700\u5927\u5316\u5e76\u53d1\u6027\u80fd\u3002\u6587\u7ae0\u8fd8\u89e3\u51b3\u4e86Java21\u73af\u5883\u914d\u7f6e\u62a5\u9519\u95ee<\/p>\n","protected":false},"author":2,"featured_media":44030,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,3027],"topic":[],"class_list":["post-44033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-list"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/44033.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb737\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u539f\u59cb\u4ee3\u7801\u4f7f\u7528ConcurrentHashMap\u548c\u4e24\u4e2aparallelStream\u904d\u5386\u5b58\u5728\u91cd\u590d\u8ba1\u7b97\u548c\u975e\u539f\u5b50\u64cd\u4f5c\u95ee\u9898\u3002\u7b2c\u4e00\u7ea7\u4f18\u5316\u4f7f\u7528Collectors.groupingBy\u7b80\u5316\u8ba1\u6570\u903b\u8f91\uff0c\u786e\u4fdd\u7ebf\u7a0b\u5b89\u5168\uff1b\u7b2c\u4e8c\u7ea7\u4f18\u5316\u5f15\u5165groupingByConcurrent\u63d0\u5347\u767e\u4e07\u7ea7\u6570\u636e\u5904\u7406\u6027\u80fd\uff1b\u7ec8\u6781\u65b9\u6848\u91c7\u7528Java21\u865a\u62df\u7ebf\u7a0b\u548cCompletableFuture\u5b9e\u73b0\u5f02\u6b65\u5904\u7406\uff0c\u6700\u5927\u5316\u5e76\u53d1\u6027\u80fd\u3002\u6587\u7ae0\u8fd8\u89e3\u51b3\u4e86Java21\u73af\u5883\u914d\u7f6e\u62a5\u9519\u95ee\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/44033.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-16T06:28:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250616062853-684fb9a553190.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44033.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/44033.html\",\"name\":\"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-16T06:28:56+00:00\",\"dateModified\":\"2025-06-16T06:28:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/44033.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/44033.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44033.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/44033.html","og_locale":"zh_CN","og_type":"article","og_title":"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb737\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u539f\u59cb\u4ee3\u7801\u4f7f\u7528ConcurrentHashMap\u548c\u4e24\u4e2aparallelStream\u904d\u5386\u5b58\u5728\u91cd\u590d\u8ba1\u7b97\u548c\u975e\u539f\u5b50\u64cd\u4f5c\u95ee\u9898\u3002\u7b2c\u4e00\u7ea7\u4f18\u5316\u4f7f\u7528Collectors.groupingBy\u7b80\u5316\u8ba1\u6570\u903b\u8f91\uff0c\u786e\u4fdd\u7ebf\u7a0b\u5b89\u5168\uff1b\u7b2c\u4e8c\u7ea7\u4f18\u5316\u5f15\u5165groupingByConcurrent\u63d0\u5347\u767e\u4e07\u7ea7\u6570\u636e\u5904\u7406\u6027\u80fd\uff1b\u7ec8\u6781\u65b9\u6848\u91c7\u7528Java21\u865a\u62df\u7ebf\u7a0b\u548cCompletableFuture\u5b9e\u73b0\u5f02\u6b65\u5904\u7406\uff0c\u6700\u5927\u5316\u5e76\u53d1\u6027\u80fd\u3002\u6587\u7ae0\u8fd8\u89e3\u51b3\u4e86Java21\u73af\u5883\u914d\u7f6e\u62a5\u9519\u95ee","og_url":"https:\/\/www.wsisp.com\/helps\/44033.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-16T06:28:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250616062853-684fb9a553190.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/44033.html","url":"https:\/\/www.wsisp.com\/helps\/44033.html","name":"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-16T06:28:56+00:00","dateModified":"2025-06-16T06:28:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/44033.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/44033.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/44033.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"List ToMap\u4f18\u5316\u4f18\u5316\u518d\u4f18\u5316\u5230\u6781\u81f4"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=44033"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44033\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/44030"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=44033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=44033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=44033"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=44033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}