{"id":923,"date":"2016-11-27T16:13:47","date_gmt":"2016-11-27T07:13:47","guid":{"rendered":"http:\/\/esoro.jp\/?p=923"},"modified":"2018-09-13T20:25:59","modified_gmt":"2018-09-13T11:25:59","slug":"poi%e3%81%a7%e3%82%a8%e3%82%af%e3%82%bb%e3%83%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e8%aa%ad%e3%82%80%e3%81%ab%e3%81%afstreamingreader%e3%81%8c%e5%bf%85%e9%a0%88poi","status":"publish","type":"post","link":"https:\/\/esoro.jp\/?p=923","title":{"rendered":"POI\u3067\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3080\u306b\u306fStreamingReader\u304c\u5fc5\u9808\u3063POI"},"content":{"rendered":"<p>\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30b7\u30fc\u30c8\u3092DB\u306b\u53d6\u308a\u8fbc\u3080\u8981\u4ef6\u304c\u3042\u308a\u3001DB\u30b5\u30fc\u30d0\u3067\u3042\u308blinux\u4e0a\u3067\u53d6\u308a\u8fbc\u3080\u51e6\u7406\u3092\u3059\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305aCSV\u306b\u3067\u3082\u5909\u63db\u3057\u3066\u3057\u307e\u3048\u3070\u5f8c\u306f\u3069\u3046\u306b\u3067\u3082\u306a\u308b\u306e\u3067\u3001Apache POI\u3092\u4f7f\u3063\u3066\u6c4e\u7528\u3067\u4f7f\u3048\u305d\u3046\u306a\u7c21\u6613CSV\u5909\u63db\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u7c21\u5358\u306b\u30c6\u30b9\u30c8\u3057\u305f\u5f8c\u3001\u3044\u3056\u5bfe\u8c61\u3068\u306a\u308b\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3067\u5b9f\u884c\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3044\u3064\u307e\u3067\u305f\u3063\u3066\u3082\u7d42\u308f\u3089\u306a\u3044\u3057\u3001\u30e1\u30e2\u30ea\u3092\u6570G\u98df\u3046\u3068\u3044\u3046\u7570\u5e38\u306a\u72b6\u614b\u306b\u3002<br \/>\n\u3000\u30c6\u30b9\u30c8\u3057\u305f\u6642\u306e\u30a8\u30af\u30bb\u30eb\u306f\u6570\u5343\u7a0b\u5ea6\u3067\u3001\u3044\u3056\u5b9f\u884c\u3057\u305f\u30a8\u30af\u30bb\u30eb\u306f\u6570\u4e07\u898f\u6a21\u306e\u9055\u3044\u304c\u3042\u308a\u3001\u5927\u91cf\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u308b\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u306e\u5834\u5408\u306bPOI\u3067\u306f\u554f\u984c\u304c\u3042\u308b\u307f\u305f\u3044\u3067\u3059\u3002\u3067\u3001\u3053\u308a\u3083\u4f55\u3068\u304b\u3057\u306a\u3044\u3068\u3068\u8abf\u3079\u3066\u3044\u304f\u3068\u3001\u305d\u308c\u3092\u89e3\u6d88\u3057\u3066\u304f\u308c\u308b\u7d20\u6674\u3089\u3057\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u767a\u898b\u3002<br \/>\n<a href=\"https:\/\/github.com\/monitorjbl\/excel-streaming-reader\" target=\"_blank\">https:\/\/github.com\/monitorjbl\/excel-streaming-reader<\/a><\/p>\n<p>\u4e0a\u8a18\u30b5\u30a4\u30c8\u306eREADME\u306b\u5f93\u3044\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bWorkbookFactory.create\u306e\u7b87\u6240\u3092\u7f6e\u304d\u63db\u3048\u308b\u306e\u307f\u3067\u3057\u305f\u3002\uff08input\u306f\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u306eInputStream\uff09<\/p>\n<pre class=\"lang:java decode:true \" title=\"excelreader\" >        Workbook wb;\r\n\t\ttry {\r\n\/\/POI\u6a19\u6e96\u3067\u306f\u30c0\u30e1\t\t\twb = WorkbookFactory.create(input);\r\n\t\t\twb = StreamingReader.builder()\r\n\t\t\t        .rowCacheSize(1000)    \r\n\t\t\t        .bufferSize(4096)     \r\n\t\t\t        .open(input);\r\n\u30fb\u30fb\u30fb\u4ee5\u4e0b\u7565\r\n<\/pre>\n<p>\u5909\u3048\u305f\u5f8c\u306f\u4f55\u4e8b\u3082\u306a\u304b\u3063\u305f\u304b\u306e\u3088\u3046\u306b\u3061\u3083\u3093\u3068\u7d42\u308f\u308a\u307e\u3057\u305f\u3002<br \/>\n\u305d\u308c\u306b\u3057\u3066\u3082POI\u306f\u975e\u63a8\u5968\u30e1\u30bd\u30c3\u30c9\u3092\u3044\u3064\u7f6e\u304d\u63db\u3048\u3066\u304f\u308c\u308b\u306e\u3060\u308d\u3046\uff1f<\/p>\n<p>\u8ffd\u4f38<br \/>\nsheet.getNumMergedRegions() \u7b49\u3001\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u304c\u591a\u6570\u3042\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u7d50\u5408\u30bb\u30eb\u306a\u3069\u3092\u610f\u8b58\u3057\u306a\u3044\u3067\u3001\u5358\u7d14\u306b\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u884c\u6bce\u306b\u9806\u6b21\u8aad\u307f\u53d6\u308b\u3088\u3046\u306a\u51e6\u7406\u306b\u306f\u9069\u3057\u3066\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30b7\u30fc\u30c8\u3092DB\u306b\u53d6\u308a\u8fbc\u3080\u8981\u4ef6\u304c\u3042\u308a\u3001DB\u30b5\u30fc\u30d0\u3067\u3042\u308blinux &hellip; <a href=\"https:\/\/esoro.jp\/?p=923\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/923"}],"collection":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=923"}],"version-history":[{"count":0,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/923\/revisions"}],"wp:attachment":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}