<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">SHIMODA Hiroshi <shimo****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2012-08-09 17:25:21 +0900 (Thu, 09 Aug 2012)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1">66028cd16e4fe322d122c1bcb1c3429c334c1ec1</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em">Use batch processor correctly</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#diff-0">bin/gcs-post-sdf</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: bin/gcs-post-sdf (+2 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L2">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L5">5</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L7">7</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L8">8</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L54">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L55">55</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L57">57</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L58">58</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L59">59</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L60">60</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0L61">61</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R2">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R5">5</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R7">7</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R8">8</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R9">9</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R55">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R58">58</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R59">59</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R60">60</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R61">61</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/66028cd16e4fe322d122c1bcb1c3429c334c1ec1#L0R62">62</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -3,6 +3,7 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var CLI = require(__dirname + '/../lib/command-line').CommandLineInterface;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var commandLine = new CLI();</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var fs = require('fs');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+var BatchProcessor = require(__dirname + '/../lib/batch').Processor;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> commandLine</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> .usage('--source <path to SDF file> [options]')</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -55,7 +56,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">try {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return process.exit(1);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-processor.load(batches);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+processor.load(batches)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> .next(function(result) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> console.log('Status: %s', result.status);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> console.log('Added: %s', result.adds);</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>