hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [5/8] hbase-site git commit: Published site at 4508f670b136ae36325016e8d51b784ab0ec490b.
Date Thu, 04 Oct 2018 14:52:50 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/04fd4290/devapidocs/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
----------------------------------------------------------------------
diff --git a/devapidocs/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html b/devapidocs/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
index eff8e9f..b67b142 100644
--- a/devapidocs/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
+++ b/devapidocs/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
@@ -18,7 +18,7 @@
     catch(err) {
     }
 //-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":9,"i7":10,"i8":9,"i9":10,"i10":10,"i11":10,"i12":9};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":9,"i7":10,"i8":9,"i9":10,"i10":10,"i11":10,"i12":10,"i13":9};
 var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
 var altColor = "altColor";
 var rowColor = "rowColor";
@@ -170,14 +170,18 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#persistentOutput">persistentOutput</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
+<td class="colFirst"><code>private long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#position">position</a></span></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
 <td class="colFirst"><code>private <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#region">region</a></span></code>&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>private <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#row">row</a></span></code>&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>private long</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#sequence">sequence</a></span></code>&nbsp;</td>
 </tr>
@@ -283,23 +287,29 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 </tr>
 <tr id="i9" class="rowColor">
 <td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#setPosition-long-">setPosition</a></span>(long&nbsp;position)</code>
+<div class="block">sets the position to start seeking the WAL file</div>
+</td>
+</tr>
+<tr id="i10" class="altColor">
+<td class="colFirst"><code>void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#setRegionFilter-java.lang.String-">setRegionFilter</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;region)</code>
 <div class="block">sets the region by which output will be filtered</div>
 </td>
 </tr>
-<tr id="i10" class="altColor">
+<tr id="i11" class="rowColor">
 <td class="colFirst"><code>void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#setRowFilter-java.lang.String-">setRowFilter</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;row)</code>
 <div class="block">sets the region by which output will be filtered</div>
 </td>
 </tr>
-<tr id="i11" class="rowColor">
+<tr id="i12" class="altColor">
 <td class="colFirst"><code>void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#setSequenceFilter-long-">setSequenceFilter</a></span>(long&nbsp;sequence)</code>
 <div class="block">sets the region by which output will be filtered</div>
 </td>
 </tr>
-<tr id="i12" class="altColor">
+<tr id="i13" class="rowColor">
 <td class="colFirst"><code>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#toStringMap-org.apache.hadoop.hbase.Cell-">toStringMap</a></span>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</code>&nbsp;</td>
 </tr>
@@ -409,12 +419,21 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <a name="MAPPER">
 <!--   -->
 </a>
-<ul class="blockListLast">
+<ul class="blockList">
 <li class="blockList">
 <h4>MAPPER</h4>
 <pre>private static final&nbsp;com.fasterxml.jackson.databind.ObjectMapper <a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.86">MAPPER</a></pre>
 </li>
 </ul>
+<a name="position">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>position</h4>
+<pre>private&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.88">position</a></pre>
+</li>
+</ul>
 </li>
 </ul>
 <!-- ========= CONSTRUCTOR DETAIL ======== -->
@@ -429,7 +448,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>WALPrettyPrinter</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.91">WALPrettyPrinter</a>()</pre>
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.93">WALPrettyPrinter</a>()</pre>
 <div class="block">Basic constructor that simply initializes values to reasonable defaults.</div>
 </li>
 </ul>
@@ -439,7 +458,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>WALPrettyPrinter</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.127">WALPrettyPrinter</a>(boolean&nbsp;outputValues,
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.129">WALPrettyPrinter</a>(boolean&nbsp;outputValues,
                         boolean&nbsp;outputJSON,
                         long&nbsp;sequence,
                         <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;region,
@@ -480,7 +499,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>enableValues</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.146">enableValues</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.148">enableValues</a>()</pre>
 <div class="block">turns value output on</div>
 </li>
 </ul>
@@ -490,7 +509,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>disableValues</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.153">disableValues</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.155">disableValues</a>()</pre>
 <div class="block">turns value output off</div>
 </li>
 </ul>
@@ -500,7 +519,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>enableJSON</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.160">enableJSON</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.162">enableJSON</a>()</pre>
 <div class="block">turns JSON output on</div>
 </li>
 </ul>
@@ -510,7 +529,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>disableJSON</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.167">disableJSON</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.169">disableJSON</a>()</pre>
 <div class="block">turns JSON output off, and turns on "pretty strings" for human consumption</div>
 </li>
 </ul>
@@ -520,7 +539,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>setSequenceFilter</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.178">setSequenceFilter</a>(long&nbsp;sequence)</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.180">setSequenceFilter</a>(long&nbsp;sequence)</pre>
 <div class="block">sets the region by which output will be filtered</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -535,7 +554,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>setRegionFilter</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.189">setRegionFilter</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;region)</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.191">setRegionFilter</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;region)</pre>
 <div class="block">sets the region by which output will be filtered</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -550,7 +569,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>setRowFilter</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.200">setRowFilter</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;row)</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.202">setRowFilter</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;row)</pre>
 <div class="block">sets the region by which output will be filtered</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -559,13 +578,27 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 </dl>
 </li>
 </ul>
+<a name="setPosition-long-">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setPosition</h4>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.211">setPosition</a>(long&nbsp;position)</pre>
+<div class="block">sets the position to start seeking the WAL file</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>position</code> - initial position to start seeking the given WAL file</dd>
+</dl>
+</li>
+</ul>
 <a name="beginPersistentOutput--">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
 <h4>beginPersistentOutput</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.208">beginPersistentOutput</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.219">beginPersistentOutput</a>()</pre>
 <div class="block">enables output as a single, persistent list. at present, only relevant in
  the case of JSON output.</div>
 </li>
@@ -576,7 +609,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>endPersistentOutput</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.221">endPersistentOutput</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.232">endPersistentOutput</a>()</pre>
 <div class="block">ends output of a single, persistent list. at present, only relevant in the
  case of JSON output.</div>
 </li>
@@ -587,7 +620,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>processFile</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.241">processFile</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.252">processFile</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                         org.apache.hadoop.fs.Path&nbsp;p)
                  throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block">reads a log file and outputs its contents, one transaction at a time, as
@@ -608,7 +641,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>toStringMap</h4>
-<pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.335">toStringMap</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
+<pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.354">toStringMap</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
 </li>
 </ul>
 <a name="main-java.lang.String:A-">
@@ -617,7 +650,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>main</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.359">main</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.378">main</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)
                  throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -631,7 +664,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>run</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.372">run</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html#line.391">run</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)
                 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block">Pass one or more log file names and formatting options and it will dump out
  a text version of the contents on <code>stdout</code>.</div>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/04fd4290/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
index dbb0b4b..551c7cc 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
@@ -16,11 +16,11 @@
 <span class="sourceLineNo">008</span>@InterfaceAudience.Private<a name="line.8"></a>
 <span class="sourceLineNo">009</span>public class Version {<a name="line.9"></a>
 <span class="sourceLineNo">010</span>  public static final String version = "3.0.0-SNAPSHOT";<a name="line.10"></a>
-<span class="sourceLineNo">011</span>  public static final String revision = "42aa3dd463c0d30a9b940d296b87316b5c67e1f5";<a name="line.11"></a>
+<span class="sourceLineNo">011</span>  public static final String revision = "4508f670b136ae36325016e8d51b784ab0ec490b";<a name="line.11"></a>
 <span class="sourceLineNo">012</span>  public static final String user = "jenkins";<a name="line.12"></a>
-<span class="sourceLineNo">013</span>  public static final String date = "Tue Oct  2 14:44:08 UTC 2018";<a name="line.13"></a>
+<span class="sourceLineNo">013</span>  public static final String date = "Thu Oct  4 14:44:15 UTC 2018";<a name="line.13"></a>
 <span class="sourceLineNo">014</span>  public static final String url = "git://jenkins-websites1.apache.org/home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.14"></a>
-<span class="sourceLineNo">015</span>  public static final String srcChecksum = "71ccf58161ef9c9c0e0dc546d4bc2c7b";<a name="line.15"></a>
+<span class="sourceLineNo">015</span>  public static final String srcChecksum = "a18bd10ed008a7354e8f6b089bfc87aa";<a name="line.15"></a>
 <span class="sourceLineNo">016</span>}<a name="line.16"></a>
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/04fd4290/devapidocs/src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html b/devapidocs/src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
index dc69851..f3088a2 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/wal/WALPrettyPrinter.html
@@ -92,349 +92,372 @@
 <span class="sourceLineNo">084</span>  private PrintStream out;<a name="line.84"></a>
 <span class="sourceLineNo">085</span>  // for JSON encoding<a name="line.85"></a>
 <span class="sourceLineNo">086</span>  private static final ObjectMapper MAPPER = new ObjectMapper();<a name="line.86"></a>
-<span class="sourceLineNo">087</span><a name="line.87"></a>
-<span class="sourceLineNo">088</span>  /**<a name="line.88"></a>
-<span class="sourceLineNo">089</span>   * Basic constructor that simply initializes values to reasonable defaults.<a name="line.89"></a>
-<span class="sourceLineNo">090</span>   */<a name="line.90"></a>
-<span class="sourceLineNo">091</span>  public WALPrettyPrinter() {<a name="line.91"></a>
-<span class="sourceLineNo">092</span>    outputValues = false;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    outputJSON = false;<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    sequence = -1;<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    region = null;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    row = null;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>    persistentOutput = false;<a name="line.97"></a>
-<span class="sourceLineNo">098</span>    firstTxn = true;<a name="line.98"></a>
-<span class="sourceLineNo">099</span>    out = System.out;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
-<span class="sourceLineNo">101</span><a name="line.101"></a>
-<span class="sourceLineNo">102</span>  /**<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   * Fully specified constructor.<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   *<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   * @param outputValues<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   *          when true, enables output of values along with other log<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   *          information<a name="line.107"></a>
-<span class="sourceLineNo">108</span>   * @param outputJSON<a name="line.108"></a>
-<span class="sourceLineNo">109</span>   *          when true, enables output in JSON format rather than a<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   *          "pretty string"<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   * @param sequence<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   *          when nonnegative, serves as a filter; only log entries with this<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   *          sequence id will be printed<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   * @param region<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   *          when not null, serves as a filter; only log entries from this<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   *          region will be printed<a name="line.116"></a>
-<span class="sourceLineNo">117</span>   * @param row<a name="line.117"></a>
-<span class="sourceLineNo">118</span>   *          when not null, serves as a filter; only log entries from this row<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   *          will be printed<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * @param persistentOutput<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   *          keeps a single list running for multiple files. if enabled, the<a name="line.121"></a>
-<span class="sourceLineNo">122</span>   *          endPersistentOutput() method must be used!<a name="line.122"></a>
-<span class="sourceLineNo">123</span>   * @param out<a name="line.123"></a>
-<span class="sourceLineNo">124</span>   *          Specifies an alternative to stdout for the destination of this<a name="line.124"></a>
-<span class="sourceLineNo">125</span>   *          PrettyPrinter's output.<a name="line.125"></a>
-<span class="sourceLineNo">126</span>   */<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  public WALPrettyPrinter(boolean outputValues, boolean outputJSON,<a name="line.127"></a>
-<span class="sourceLineNo">128</span>      long sequence, String region, String row, boolean persistentOutput,<a name="line.128"></a>
-<span class="sourceLineNo">129</span>      PrintStream out) {<a name="line.129"></a>
-<span class="sourceLineNo">130</span>    this.outputValues = outputValues;<a name="line.130"></a>
-<span class="sourceLineNo">131</span>    this.outputJSON = outputJSON;<a name="line.131"></a>
-<span class="sourceLineNo">132</span>    this.sequence = sequence;<a name="line.132"></a>
-<span class="sourceLineNo">133</span>    this.region = region;<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    this.row = row;<a name="line.134"></a>
-<span class="sourceLineNo">135</span>    this.persistentOutput = persistentOutput;<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    if (persistentOutput) {<a name="line.136"></a>
-<span class="sourceLineNo">137</span>      beginPersistentOutput();<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    }<a name="line.138"></a>
-<span class="sourceLineNo">139</span>    this.out = out;<a name="line.139"></a>
-<span class="sourceLineNo">140</span>    this.firstTxn = true;<a name="line.140"></a>
-<span class="sourceLineNo">141</span>  }<a name="line.141"></a>
-<span class="sourceLineNo">142</span><a name="line.142"></a>
-<span class="sourceLineNo">143</span>  /**<a name="line.143"></a>
-<span class="sourceLineNo">144</span>   * turns value output on<a name="line.144"></a>
-<span class="sourceLineNo">145</span>   */<a name="line.145"></a>
-<span class="sourceLineNo">146</span>  public void enableValues() {<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    outputValues = true;<a name="line.147"></a>
-<span class="sourceLineNo">148</span>  }<a name="line.148"></a>
-<span class="sourceLineNo">149</span><a name="line.149"></a>
-<span class="sourceLineNo">150</span>  /**<a name="line.150"></a>
-<span class="sourceLineNo">151</span>   * turns value output off<a name="line.151"></a>
-<span class="sourceLineNo">152</span>   */<a name="line.152"></a>
-<span class="sourceLineNo">153</span>  public void disableValues() {<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    outputValues = false;<a name="line.154"></a>
-<span class="sourceLineNo">155</span>  }<a name="line.155"></a>
-<span class="sourceLineNo">156</span><a name="line.156"></a>
-<span class="sourceLineNo">157</span>  /**<a name="line.157"></a>
-<span class="sourceLineNo">158</span>   * turns JSON output on<a name="line.158"></a>
-<span class="sourceLineNo">159</span>   */<a name="line.159"></a>
-<span class="sourceLineNo">160</span>  public void enableJSON() {<a name="line.160"></a>
-<span class="sourceLineNo">161</span>    outputJSON = true;<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  }<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>  /**<a name="line.164"></a>
-<span class="sourceLineNo">165</span>   * turns JSON output off, and turns on "pretty strings" for human consumption<a name="line.165"></a>
-<span class="sourceLineNo">166</span>   */<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  public void disableJSON() {<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    outputJSON = false;<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  }<a name="line.169"></a>
-<span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span>  /**<a name="line.171"></a>
-<span class="sourceLineNo">172</span>   * sets the region by which output will be filtered<a name="line.172"></a>
-<span class="sourceLineNo">173</span>   *<a name="line.173"></a>
-<span class="sourceLineNo">174</span>   * @param sequence<a name="line.174"></a>
-<span class="sourceLineNo">175</span>   *          when nonnegative, serves as a filter; only log entries with this<a name="line.175"></a>
-<span class="sourceLineNo">176</span>   *          sequence id will be printed<a name="line.176"></a>
-<span class="sourceLineNo">177</span>   */<a name="line.177"></a>
-<span class="sourceLineNo">178</span>  public void setSequenceFilter(long sequence) {<a name="line.178"></a>
-<span class="sourceLineNo">179</span>    this.sequence = sequence;<a name="line.179"></a>
-<span class="sourceLineNo">180</span>  }<a name="line.180"></a>
-<span class="sourceLineNo">181</span><a name="line.181"></a>
-<span class="sourceLineNo">182</span>  /**<a name="line.182"></a>
-<span class="sourceLineNo">183</span>   * sets the region by which output will be filtered<a name="line.183"></a>
-<span class="sourceLineNo">184</span>   *<a name="line.184"></a>
-<span class="sourceLineNo">185</span>   * @param region<a name="line.185"></a>
-<span class="sourceLineNo">186</span>   *          when not null, serves as a filter; only log entries from this<a name="line.186"></a>
-<span class="sourceLineNo">187</span>   *          region will be printed<a name="line.187"></a>
-<span class="sourceLineNo">188</span>   */<a name="line.188"></a>
-<span class="sourceLineNo">189</span>  public void setRegionFilter(String region) {<a name="line.189"></a>
-<span class="sourceLineNo">190</span>    this.region = region;<a name="line.190"></a>
-<span class="sourceLineNo">191</span>  }<a name="line.191"></a>
-<span class="sourceLineNo">192</span><a name="line.192"></a>
-<span class="sourceLineNo">193</span>  /**<a name="line.193"></a>
-<span class="sourceLineNo">194</span>   * sets the region by which output will be filtered<a name="line.194"></a>
-<span class="sourceLineNo">195</span>   *<a name="line.195"></a>
-<span class="sourceLineNo">196</span>   * @param row<a name="line.196"></a>
-<span class="sourceLineNo">197</span>   *          when not null, serves as a filter; only log entries from this row<a name="line.197"></a>
-<span class="sourceLineNo">198</span>   *          will be printed<a name="line.198"></a>
-<span class="sourceLineNo">199</span>   */<a name="line.199"></a>
-<span class="sourceLineNo">200</span>  public void setRowFilter(String row) {<a name="line.200"></a>
-<span class="sourceLineNo">201</span>    this.row = row;<a name="line.201"></a>
-<span class="sourceLineNo">202</span>  }<a name="line.202"></a>
-<span class="sourceLineNo">203</span><a name="line.203"></a>
-<span class="sourceLineNo">204</span>  /**<a name="line.204"></a>
-<span class="sourceLineNo">205</span>   * enables output as a single, persistent list. at present, only relevant in<a name="line.205"></a>
-<span class="sourceLineNo">206</span>   * the case of JSON output.<a name="line.206"></a>
-<span class="sourceLineNo">207</span>   */<a name="line.207"></a>
-<span class="sourceLineNo">208</span>  public void beginPersistentOutput() {<a name="line.208"></a>
-<span class="sourceLineNo">209</span>    if (persistentOutput)<a name="line.209"></a>
-<span class="sourceLineNo">210</span>      return;<a name="line.210"></a>
-<span class="sourceLineNo">211</span>    persistentOutput = true;<a name="line.211"></a>
-<span class="sourceLineNo">212</span>    firstTxn = true;<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    if (outputJSON)<a name="line.213"></a>
-<span class="sourceLineNo">214</span>      out.print("[");<a name="line.214"></a>
-<span class="sourceLineNo">215</span>  }<a name="line.215"></a>
-<span class="sourceLineNo">216</span><a name="line.216"></a>
-<span class="sourceLineNo">217</span>  /**<a name="line.217"></a>
-<span class="sourceLineNo">218</span>   * ends output of a single, persistent list. at present, only relevant in the<a name="line.218"></a>
-<span class="sourceLineNo">219</span>   * case of JSON output.<a name="line.219"></a>
-<span class="sourceLineNo">220</span>   */<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  public void endPersistentOutput() {<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    if (!persistentOutput)<a name="line.222"></a>
-<span class="sourceLineNo">223</span>      return;<a name="line.223"></a>
-<span class="sourceLineNo">224</span>    persistentOutput = false;<a name="line.224"></a>
-<span class="sourceLineNo">225</span>    if (outputJSON)<a name="line.225"></a>
-<span class="sourceLineNo">226</span>      out.print("]");<a name="line.226"></a>
-<span class="sourceLineNo">227</span>  }<a name="line.227"></a>
-<span class="sourceLineNo">228</span><a name="line.228"></a>
-<span class="sourceLineNo">229</span>  /**<a name="line.229"></a>
-<span class="sourceLineNo">230</span>   * reads a log file and outputs its contents, one transaction at a time, as<a name="line.230"></a>
-<span class="sourceLineNo">231</span>   * specified by the currently configured options<a name="line.231"></a>
-<span class="sourceLineNo">232</span>   *<a name="line.232"></a>
-<span class="sourceLineNo">233</span>   * @param conf<a name="line.233"></a>
-<span class="sourceLineNo">234</span>   *          the HBase configuration relevant to this log file<a name="line.234"></a>
-<span class="sourceLineNo">235</span>   * @param p<a name="line.235"></a>
-<span class="sourceLineNo">236</span>   *          the path of the log file to be read<a name="line.236"></a>
-<span class="sourceLineNo">237</span>   * @throws IOException<a name="line.237"></a>
-<span class="sourceLineNo">238</span>   *           may be unable to access the configured filesystem or requested<a name="line.238"></a>
-<span class="sourceLineNo">239</span>   *           file.<a name="line.239"></a>
-<span class="sourceLineNo">240</span>   */<a name="line.240"></a>
-<span class="sourceLineNo">241</span>  public void processFile(final Configuration conf, final Path p)<a name="line.241"></a>
-<span class="sourceLineNo">242</span>      throws IOException {<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    FileSystem fs = p.getFileSystem(conf);<a name="line.243"></a>
-<span class="sourceLineNo">244</span>    if (!fs.exists(p)) {<a name="line.244"></a>
-<span class="sourceLineNo">245</span>      throw new FileNotFoundException(p.toString());<a name="line.245"></a>
-<span class="sourceLineNo">246</span>    }<a name="line.246"></a>
-<span class="sourceLineNo">247</span>    if (!fs.isFile(p)) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span>      throw new IOException(p + " is not a file");<a name="line.248"></a>
-<span class="sourceLineNo">249</span>    }<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span>    WAL.Reader log = WALFactory.createReader(fs, p, conf);<a name="line.251"></a>
-<span class="sourceLineNo">252</span><a name="line.252"></a>
-<span class="sourceLineNo">253</span>    if (log instanceof ProtobufLogReader) {<a name="line.253"></a>
-<span class="sourceLineNo">254</span>      List&lt;String&gt; writerClsNames = ((ProtobufLogReader) log).getWriterClsNames();<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      if (writerClsNames != null &amp;&amp; writerClsNames.size() &gt; 0) {<a name="line.255"></a>
-<span class="sourceLineNo">256</span>        out.print("Writer Classes: ");<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        for (int i = 0; i &lt; writerClsNames.size(); i++) {<a name="line.257"></a>
-<span class="sourceLineNo">258</span>          out.print(writerClsNames.get(i));<a name="line.258"></a>
-<span class="sourceLineNo">259</span>          if (i != writerClsNames.size() - 1) {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>            out.print(" ");<a name="line.260"></a>
-<span class="sourceLineNo">261</span>          }<a name="line.261"></a>
-<span class="sourceLineNo">262</span>        }<a name="line.262"></a>
-<span class="sourceLineNo">263</span>        out.println();<a name="line.263"></a>
-<span class="sourceLineNo">264</span>      }<a name="line.264"></a>
-<span class="sourceLineNo">265</span><a name="line.265"></a>
-<span class="sourceLineNo">266</span>      String cellCodecClsName = ((ProtobufLogReader) log).getCodecClsName();<a name="line.266"></a>
-<span class="sourceLineNo">267</span>      if (cellCodecClsName != null) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span>        out.println("Cell Codec Class: " + cellCodecClsName);<a name="line.268"></a>
-<span class="sourceLineNo">269</span>      }<a name="line.269"></a>
-<span class="sourceLineNo">270</span>    }<a name="line.270"></a>
-<span class="sourceLineNo">271</span><a name="line.271"></a>
-<span class="sourceLineNo">272</span>    if (outputJSON &amp;&amp; !persistentOutput) {<a name="line.272"></a>
-<span class="sourceLineNo">273</span>      out.print("[");<a name="line.273"></a>
-<span class="sourceLineNo">274</span>      firstTxn = true;<a name="line.274"></a>
-<span class="sourceLineNo">275</span>    }<a name="line.275"></a>
+<span class="sourceLineNo">087</span>  //allows for jumping straight to a given portion of the file<a name="line.87"></a>
+<span class="sourceLineNo">088</span>  private long position;<a name="line.88"></a>
+<span class="sourceLineNo">089</span><a name="line.89"></a>
+<span class="sourceLineNo">090</span>  /**<a name="line.90"></a>
+<span class="sourceLineNo">091</span>   * Basic constructor that simply initializes values to reasonable defaults.<a name="line.91"></a>
+<span class="sourceLineNo">092</span>   */<a name="line.92"></a>
+<span class="sourceLineNo">093</span>  public WALPrettyPrinter() {<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    outputValues = false;<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    outputJSON = false;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    sequence = -1;<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    region = null;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    row = null;<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    persistentOutput = false;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    firstTxn = true;<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    out = System.out;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>  }<a name="line.102"></a>
+<span class="sourceLineNo">103</span><a name="line.103"></a>
+<span class="sourceLineNo">104</span>  /**<a name="line.104"></a>
+<span class="sourceLineNo">105</span>   * Fully specified constructor.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>   *<a name="line.106"></a>
+<span class="sourceLineNo">107</span>   * @param outputValues<a name="line.107"></a>
+<span class="sourceLineNo">108</span>   *          when true, enables output of values along with other log<a name="line.108"></a>
+<span class="sourceLineNo">109</span>   *          information<a name="line.109"></a>
+<span class="sourceLineNo">110</span>   * @param outputJSON<a name="line.110"></a>
+<span class="sourceLineNo">111</span>   *          when true, enables output in JSON format rather than a<a name="line.111"></a>
+<span class="sourceLineNo">112</span>   *          "pretty string"<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   * @param sequence<a name="line.113"></a>
+<span class="sourceLineNo">114</span>   *          when nonnegative, serves as a filter; only log entries with this<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   *          sequence id will be printed<a name="line.115"></a>
+<span class="sourceLineNo">116</span>   * @param region<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   *          when not null, serves as a filter; only log entries from this<a name="line.117"></a>
+<span class="sourceLineNo">118</span>   *          region will be printed<a name="line.118"></a>
+<span class="sourceLineNo">119</span>   * @param row<a name="line.119"></a>
+<span class="sourceLineNo">120</span>   *          when not null, serves as a filter; only log entries from this row<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   *          will be printed<a name="line.121"></a>
+<span class="sourceLineNo">122</span>   * @param persistentOutput<a name="line.122"></a>
+<span class="sourceLineNo">123</span>   *          keeps a single list running for multiple files. if enabled, the<a name="line.123"></a>
+<span class="sourceLineNo">124</span>   *          endPersistentOutput() method must be used!<a name="line.124"></a>
+<span class="sourceLineNo">125</span>   * @param out<a name="line.125"></a>
+<span class="sourceLineNo">126</span>   *          Specifies an alternative to stdout for the destination of this<a name="line.126"></a>
+<span class="sourceLineNo">127</span>   *          PrettyPrinter's output.<a name="line.127"></a>
+<span class="sourceLineNo">128</span>   */<a name="line.128"></a>
+<span class="sourceLineNo">129</span>  public WALPrettyPrinter(boolean outputValues, boolean outputJSON,<a name="line.129"></a>
+<span class="sourceLineNo">130</span>      long sequence, String region, String row, boolean persistentOutput,<a name="line.130"></a>
+<span class="sourceLineNo">131</span>      PrintStream out) {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    this.outputValues = outputValues;<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    this.outputJSON = outputJSON;<a name="line.133"></a>
+<span class="sourceLineNo">134</span>    this.sequence = sequence;<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    this.region = region;<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    this.row = row;<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    this.persistentOutput = persistentOutput;<a name="line.137"></a>
+<span class="sourceLineNo">138</span>    if (persistentOutput) {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      beginPersistentOutput();<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    }<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    this.out = out;<a name="line.141"></a>
+<span class="sourceLineNo">142</span>    this.firstTxn = true;<a name="line.142"></a>
+<span class="sourceLineNo">143</span>  }<a name="line.143"></a>
+<span class="sourceLineNo">144</span><a name="line.144"></a>
+<span class="sourceLineNo">145</span>  /**<a name="line.145"></a>
+<span class="sourceLineNo">146</span>   * turns value output on<a name="line.146"></a>
+<span class="sourceLineNo">147</span>   */<a name="line.147"></a>
+<span class="sourceLineNo">148</span>  public void enableValues() {<a name="line.148"></a>
+<span class="sourceLineNo">149</span>    outputValues = true;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>  }<a name="line.150"></a>
+<span class="sourceLineNo">151</span><a name="line.151"></a>
+<span class="sourceLineNo">152</span>  /**<a name="line.152"></a>
+<span class="sourceLineNo">153</span>   * turns value output off<a name="line.153"></a>
+<span class="sourceLineNo">154</span>   */<a name="line.154"></a>
+<span class="sourceLineNo">155</span>  public void disableValues() {<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    outputValues = false;<a name="line.156"></a>
+<span class="sourceLineNo">157</span>  }<a name="line.157"></a>
+<span class="sourceLineNo">158</span><a name="line.158"></a>
+<span class="sourceLineNo">159</span>  /**<a name="line.159"></a>
+<span class="sourceLineNo">160</span>   * turns JSON output on<a name="line.160"></a>
+<span class="sourceLineNo">161</span>   */<a name="line.161"></a>
+<span class="sourceLineNo">162</span>  public void enableJSON() {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>    outputJSON = true;<a name="line.163"></a>
+<span class="sourceLineNo">164</span>  }<a name="line.164"></a>
+<span class="sourceLineNo">165</span><a name="line.165"></a>
+<span class="sourceLineNo">166</span>  /**<a name="line.166"></a>
+<span class="sourceLineNo">167</span>   * turns JSON output off, and turns on "pretty strings" for human consumption<a name="line.167"></a>
+<span class="sourceLineNo">168</span>   */<a name="line.168"></a>
+<span class="sourceLineNo">169</span>  public void disableJSON() {<a name="line.169"></a>
+<span class="sourceLineNo">170</span>    outputJSON = false;<a name="line.170"></a>
+<span class="sourceLineNo">171</span>  }<a name="line.171"></a>
+<span class="sourceLineNo">172</span><a name="line.172"></a>
+<span class="sourceLineNo">173</span>  /**<a name="line.173"></a>
+<span class="sourceLineNo">174</span>   * sets the region by which output will be filtered<a name="line.174"></a>
+<span class="sourceLineNo">175</span>   *<a name="line.175"></a>
+<span class="sourceLineNo">176</span>   * @param sequence<a name="line.176"></a>
+<span class="sourceLineNo">177</span>   *          when nonnegative, serves as a filter; only log entries with this<a name="line.177"></a>
+<span class="sourceLineNo">178</span>   *          sequence id will be printed<a name="line.178"></a>
+<span class="sourceLineNo">179</span>   */<a name="line.179"></a>
+<span class="sourceLineNo">180</span>  public void setSequenceFilter(long sequence) {<a name="line.180"></a>
+<span class="sourceLineNo">181</span>    this.sequence = sequence;<a name="line.181"></a>
+<span class="sourceLineNo">182</span>  }<a name="line.182"></a>
+<span class="sourceLineNo">183</span><a name="line.183"></a>
+<span class="sourceLineNo">184</span>  /**<a name="line.184"></a>
+<span class="sourceLineNo">185</span>   * sets the region by which output will be filtered<a name="line.185"></a>
+<span class="sourceLineNo">186</span>   *<a name="line.186"></a>
+<span class="sourceLineNo">187</span>   * @param region<a name="line.187"></a>
+<span class="sourceLineNo">188</span>   *          when not null, serves as a filter; only log entries from this<a name="line.188"></a>
+<span class="sourceLineNo">189</span>   *          region will be printed<a name="line.189"></a>
+<span class="sourceLineNo">190</span>   */<a name="line.190"></a>
+<span class="sourceLineNo">191</span>  public void setRegionFilter(String region) {<a name="line.191"></a>
+<span class="sourceLineNo">192</span>    this.region = region;<a name="line.192"></a>
+<span class="sourceLineNo">193</span>  }<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
+<span class="sourceLineNo">195</span>  /**<a name="line.195"></a>
+<span class="sourceLineNo">196</span>   * sets the region by which output will be filtered<a name="line.196"></a>
+<span class="sourceLineNo">197</span>   *<a name="line.197"></a>
+<span class="sourceLineNo">198</span>   * @param row<a name="line.198"></a>
+<span class="sourceLineNo">199</span>   *          when not null, serves as a filter; only log entries from this row<a name="line.199"></a>
+<span class="sourceLineNo">200</span>   *          will be printed<a name="line.200"></a>
+<span class="sourceLineNo">201</span>   */<a name="line.201"></a>
+<span class="sourceLineNo">202</span>  public void setRowFilter(String row) {<a name="line.202"></a>
+<span class="sourceLineNo">203</span>    this.row = row;<a name="line.203"></a>
+<span class="sourceLineNo">204</span>  }<a name="line.204"></a>
+<span class="sourceLineNo">205</span><a name="line.205"></a>
+<span class="sourceLineNo">206</span>  /**<a name="line.206"></a>
+<span class="sourceLineNo">207</span>   * sets the position to start seeking the WAL file<a name="line.207"></a>
+<span class="sourceLineNo">208</span>   * @param position<a name="line.208"></a>
+<span class="sourceLineNo">209</span>   *          initial position to start seeking the given WAL file<a name="line.209"></a>
+<span class="sourceLineNo">210</span>   */<a name="line.210"></a>
+<span class="sourceLineNo">211</span>  public void setPosition(long position) {<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    this.position = position;<a name="line.212"></a>
+<span class="sourceLineNo">213</span>  }<a name="line.213"></a>
+<span class="sourceLineNo">214</span><a name="line.214"></a>
+<span class="sourceLineNo">215</span>  /**<a name="line.215"></a>
+<span class="sourceLineNo">216</span>   * enables output as a single, persistent list. at present, only relevant in<a name="line.216"></a>
+<span class="sourceLineNo">217</span>   * the case of JSON output.<a name="line.217"></a>
+<span class="sourceLineNo">218</span>   */<a name="line.218"></a>
+<span class="sourceLineNo">219</span>  public void beginPersistentOutput() {<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    if (persistentOutput)<a name="line.220"></a>
+<span class="sourceLineNo">221</span>      return;<a name="line.221"></a>
+<span class="sourceLineNo">222</span>    persistentOutput = true;<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    firstTxn = true;<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    if (outputJSON)<a name="line.224"></a>
+<span class="sourceLineNo">225</span>      out.print("[");<a name="line.225"></a>
+<span class="sourceLineNo">226</span>  }<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>  /**<a name="line.228"></a>
+<span class="sourceLineNo">229</span>   * ends output of a single, persistent list. at present, only relevant in the<a name="line.229"></a>
+<span class="sourceLineNo">230</span>   * case of JSON output.<a name="line.230"></a>
+<span class="sourceLineNo">231</span>   */<a name="line.231"></a>
+<span class="sourceLineNo">232</span>  public void endPersistentOutput() {<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    if (!persistentOutput)<a name="line.233"></a>
+<span class="sourceLineNo">234</span>      return;<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    persistentOutput = false;<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    if (outputJSON)<a name="line.236"></a>
+<span class="sourceLineNo">237</span>      out.print("]");<a name="line.237"></a>
+<span class="sourceLineNo">238</span>  }<a name="line.238"></a>
+<span class="sourceLineNo">239</span><a name="line.239"></a>
+<span class="sourceLineNo">240</span>  /**<a name="line.240"></a>
+<span class="sourceLineNo">241</span>   * reads a log file and outputs its contents, one transaction at a time, as<a name="line.241"></a>
+<span class="sourceLineNo">242</span>   * specified by the currently configured options<a name="line.242"></a>
+<span class="sourceLineNo">243</span>   *<a name="line.243"></a>
+<span class="sourceLineNo">244</span>   * @param conf<a name="line.244"></a>
+<span class="sourceLineNo">245</span>   *          the HBase configuration relevant to this log file<a name="line.245"></a>
+<span class="sourceLineNo">246</span>   * @param p<a name="line.246"></a>
+<span class="sourceLineNo">247</span>   *          the path of the log file to be read<a name="line.247"></a>
+<span class="sourceLineNo">248</span>   * @throws IOException<a name="line.248"></a>
+<span class="sourceLineNo">249</span>   *           may be unable to access the configured filesystem or requested<a name="line.249"></a>
+<span class="sourceLineNo">250</span>   *           file.<a name="line.250"></a>
+<span class="sourceLineNo">251</span>   */<a name="line.251"></a>
+<span class="sourceLineNo">252</span>  public void processFile(final Configuration conf, final Path p)<a name="line.252"></a>
+<span class="sourceLineNo">253</span>      throws IOException {<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    FileSystem fs = p.getFileSystem(conf);<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    if (!fs.exists(p)) {<a name="line.255"></a>
+<span class="sourceLineNo">256</span>      throw new FileNotFoundException(p.toString());<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    }<a name="line.257"></a>
+<span class="sourceLineNo">258</span>    if (!fs.isFile(p)) {<a name="line.258"></a>
+<span class="sourceLineNo">259</span>      throw new IOException(p + " is not a file");<a name="line.259"></a>
+<span class="sourceLineNo">260</span>    }<a name="line.260"></a>
+<span class="sourceLineNo">261</span><a name="line.261"></a>
+<span class="sourceLineNo">262</span>    WAL.Reader log = WALFactory.createReader(fs, p, conf);<a name="line.262"></a>
+<span class="sourceLineNo">263</span><a name="line.263"></a>
+<span class="sourceLineNo">264</span>    if (log instanceof ProtobufLogReader) {<a name="line.264"></a>
+<span class="sourceLineNo">265</span>      List&lt;String&gt; writerClsNames = ((ProtobufLogReader) log).getWriterClsNames();<a name="line.265"></a>
+<span class="sourceLineNo">266</span>      if (writerClsNames != null &amp;&amp; writerClsNames.size() &gt; 0) {<a name="line.266"></a>
+<span class="sourceLineNo">267</span>        out.print("Writer Classes: ");<a name="line.267"></a>
+<span class="sourceLineNo">268</span>        for (int i = 0; i &lt; writerClsNames.size(); i++) {<a name="line.268"></a>
+<span class="sourceLineNo">269</span>          out.print(writerClsNames.get(i));<a name="line.269"></a>
+<span class="sourceLineNo">270</span>          if (i != writerClsNames.size() - 1) {<a name="line.270"></a>
+<span class="sourceLineNo">271</span>            out.print(" ");<a name="line.271"></a>
+<span class="sourceLineNo">272</span>          }<a name="line.272"></a>
+<span class="sourceLineNo">273</span>        }<a name="line.273"></a>
+<span class="sourceLineNo">274</span>        out.println();<a name="line.274"></a>
+<span class="sourceLineNo">275</span>      }<a name="line.275"></a>
 <span class="sourceLineNo">276</span><a name="line.276"></a>
-<span class="sourceLineNo">277</span>    try {<a name="line.277"></a>
-<span class="sourceLineNo">278</span>      WAL.Entry entry;<a name="line.278"></a>
-<span class="sourceLineNo">279</span>      while ((entry = log.next()) != null) {<a name="line.279"></a>
-<span class="sourceLineNo">280</span>        WALKey key = entry.getKey();<a name="line.280"></a>
-<span class="sourceLineNo">281</span>        WALEdit edit = entry.getEdit();<a name="line.281"></a>
-<span class="sourceLineNo">282</span>        // begin building a transaction structure<a name="line.282"></a>
-<span class="sourceLineNo">283</span>        Map&lt;String, Object&gt; txn = key.toStringMap();<a name="line.283"></a>
-<span class="sourceLineNo">284</span>        long writeTime = key.getWriteTime();<a name="line.284"></a>
-<span class="sourceLineNo">285</span>        // check output filters<a name="line.285"></a>
-<span class="sourceLineNo">286</span>        if (sequence &gt;= 0 &amp;&amp; ((Long) txn.get("sequence")) != sequence)<a name="line.286"></a>
-<span class="sourceLineNo">287</span>          continue;<a name="line.287"></a>
-<span class="sourceLineNo">288</span>        if (region != null &amp;&amp; !((String) txn.get("region")).equals(region))<a name="line.288"></a>
-<span class="sourceLineNo">289</span>          continue;<a name="line.289"></a>
-<span class="sourceLineNo">290</span>        // initialize list into which we will store atomic actions<a name="line.290"></a>
-<span class="sourceLineNo">291</span>        List&lt;Map&gt; actions = new ArrayList&lt;&gt;();<a name="line.291"></a>
-<span class="sourceLineNo">292</span>        for (Cell cell : edit.getCells()) {<a name="line.292"></a>
-<span class="sourceLineNo">293</span>          // add atomic operation to txn<a name="line.293"></a>
-<span class="sourceLineNo">294</span>          Map&lt;String, Object&gt; op = new HashMap&lt;&gt;(toStringMap(cell));<a name="line.294"></a>
-<span class="sourceLineNo">295</span>          if (outputValues) op.put("value", Bytes.toStringBinary(CellUtil.cloneValue(cell)));<a name="line.295"></a>
-<span class="sourceLineNo">296</span>          // check row output filter<a name="line.296"></a>
-<span class="sourceLineNo">297</span>          if (row == null || ((String) op.get("row")).equals(row)) {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>            actions.add(op);<a name="line.298"></a>
-<span class="sourceLineNo">299</span>          }<a name="line.299"></a>
-<span class="sourceLineNo">300</span>        }<a name="line.300"></a>
-<span class="sourceLineNo">301</span>        if (actions.isEmpty())<a name="line.301"></a>
+<span class="sourceLineNo">277</span>      String cellCodecClsName = ((ProtobufLogReader) log).getCodecClsName();<a name="line.277"></a>
+<span class="sourceLineNo">278</span>      if (cellCodecClsName != null) {<a name="line.278"></a>
+<span class="sourceLineNo">279</span>        out.println("Cell Codec Class: " + cellCodecClsName);<a name="line.279"></a>
+<span class="sourceLineNo">280</span>      }<a name="line.280"></a>
+<span class="sourceLineNo">281</span>    }<a name="line.281"></a>
+<span class="sourceLineNo">282</span><a name="line.282"></a>
+<span class="sourceLineNo">283</span>    if (outputJSON &amp;&amp; !persistentOutput) {<a name="line.283"></a>
+<span class="sourceLineNo">284</span>      out.print("[");<a name="line.284"></a>
+<span class="sourceLineNo">285</span>      firstTxn = true;<a name="line.285"></a>
+<span class="sourceLineNo">286</span>    }<a name="line.286"></a>
+<span class="sourceLineNo">287</span><a name="line.287"></a>
+<span class="sourceLineNo">288</span>    if (position &gt; 0) {<a name="line.288"></a>
+<span class="sourceLineNo">289</span>      log.seek(position);<a name="line.289"></a>
+<span class="sourceLineNo">290</span>    }<a name="line.290"></a>
+<span class="sourceLineNo">291</span><a name="line.291"></a>
+<span class="sourceLineNo">292</span>    try {<a name="line.292"></a>
+<span class="sourceLineNo">293</span>      WAL.Entry entry;<a name="line.293"></a>
+<span class="sourceLineNo">294</span>      while ((entry = log.next()) != null) {<a name="line.294"></a>
+<span class="sourceLineNo">295</span>        WALKey key = entry.getKey();<a name="line.295"></a>
+<span class="sourceLineNo">296</span>        WALEdit edit = entry.getEdit();<a name="line.296"></a>
+<span class="sourceLineNo">297</span>        // begin building a transaction structure<a name="line.297"></a>
+<span class="sourceLineNo">298</span>        Map&lt;String, Object&gt; txn = key.toStringMap();<a name="line.298"></a>
+<span class="sourceLineNo">299</span>        long writeTime = key.getWriteTime();<a name="line.299"></a>
+<span class="sourceLineNo">300</span>        // check output filters<a name="line.300"></a>
+<span class="sourceLineNo">301</span>        if (sequence &gt;= 0 &amp;&amp; ((Long) txn.get("sequence")) != sequence)<a name="line.301"></a>
 <span class="sourceLineNo">302</span>          continue;<a name="line.302"></a>
-<span class="sourceLineNo">303</span>        txn.put("actions", actions);<a name="line.303"></a>
-<span class="sourceLineNo">304</span>        if (outputJSON) {<a name="line.304"></a>
-<span class="sourceLineNo">305</span>          // JSON output is a straightforward "toString" on the txn object<a name="line.305"></a>
-<span class="sourceLineNo">306</span>          if (firstTxn)<a name="line.306"></a>
-<span class="sourceLineNo">307</span>            firstTxn = false;<a name="line.307"></a>
-<span class="sourceLineNo">308</span>          else<a name="line.308"></a>
-<span class="sourceLineNo">309</span>            out.print(",");<a name="line.309"></a>
-<span class="sourceLineNo">310</span>          // encode and print JSON<a name="line.310"></a>
-<span class="sourceLineNo">311</span>          out.print(MAPPER.writeValueAsString(txn));<a name="line.311"></a>
-<span class="sourceLineNo">312</span>        } else {<a name="line.312"></a>
-<span class="sourceLineNo">313</span>          // Pretty output, complete with indentation by atomic action<a name="line.313"></a>
-<span class="sourceLineNo">314</span>          out.println("Sequence=" + txn.get("sequence") + " "<a name="line.314"></a>
-<span class="sourceLineNo">315</span>              + ", region=" + txn.get("region") + " at write timestamp=" + new Date(writeTime));<a name="line.315"></a>
-<span class="sourceLineNo">316</span>          for (int i = 0; i &lt; actions.size(); i++) {<a name="line.316"></a>
-<span class="sourceLineNo">317</span>            Map op = actions.get(i);<a name="line.317"></a>
-<span class="sourceLineNo">318</span>            out.println("row=" + op.get("row") +<a name="line.318"></a>
-<span class="sourceLineNo">319</span>                ", column=" + op.get("family") + ":" + op.get("qualifier"));<a name="line.319"></a>
-<span class="sourceLineNo">320</span>            if (op.get("tag") != null) {<a name="line.320"></a>
-<span class="sourceLineNo">321</span>              out.println("    tag: " + op.get("tag"));<a name="line.321"></a>
-<span class="sourceLineNo">322</span>            }<a name="line.322"></a>
-<span class="sourceLineNo">323</span>            if (outputValues) out.println("    value: " + op.get("value"));<a name="line.323"></a>
-<span class="sourceLineNo">324</span>          }<a name="line.324"></a>
-<span class="sourceLineNo">325</span>        }<a name="line.325"></a>
-<span class="sourceLineNo">326</span>      }<a name="line.326"></a>
-<span class="sourceLineNo">327</span>    } finally {<a name="line.327"></a>
-<span class="sourceLineNo">328</span>      log.close();<a name="line.328"></a>
-<span class="sourceLineNo">329</span>    }<a name="line.329"></a>
-<span class="sourceLineNo">330</span>    if (outputJSON &amp;&amp; !persistentOutput) {<a name="line.330"></a>
-<span class="sourceLineNo">331</span>      out.print("]");<a name="line.331"></a>
-<span class="sourceLineNo">332</span>    }<a name="line.332"></a>
-<span class="sourceLineNo">333</span>  }<a name="line.333"></a>
-<span class="sourceLineNo">334</span><a name="line.334"></a>
-<span class="sourceLineNo">335</span>  private static Map&lt;String, Object&gt; toStringMap(Cell cell) {<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    Map&lt;String, Object&gt; stringMap = new HashMap&lt;&gt;();<a name="line.336"></a>
-<span class="sourceLineNo">337</span>    stringMap.put("row",<a name="line.337"></a>
-<span class="sourceLineNo">338</span>        Bytes.toStringBinary(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()));<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    stringMap.put("family", Bytes.toStringBinary(cell.getFamilyArray(), cell.getFamilyOffset(),<a name="line.339"></a>
-<span class="sourceLineNo">340</span>                cell.getFamilyLength()));<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    stringMap.put("qualifier",<a name="line.341"></a>
-<span class="sourceLineNo">342</span>        Bytes.toStringBinary(cell.getQualifierArray(), cell.getQualifierOffset(),<a name="line.342"></a>
-<span class="sourceLineNo">343</span>            cell.getQualifierLength()));<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    stringMap.put("timestamp", cell.getTimestamp());<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    stringMap.put("vlen", cell.getValueLength());<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    if (cell.getTagsLength() &gt; 0) {<a name="line.346"></a>
-<span class="sourceLineNo">347</span>      List&lt;String&gt; tagsString = new ArrayList&lt;&gt;();<a name="line.347"></a>
-<span class="sourceLineNo">348</span>      Iterator&lt;Tag&gt; tagsIterator = PrivateCellUtil.tagsIterator(cell);<a name="line.348"></a>
-<span class="sourceLineNo">349</span>      while (tagsIterator.hasNext()) {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>        Tag tag = tagsIterator.next();<a name="line.350"></a>
-<span class="sourceLineNo">351</span>        tagsString<a name="line.351"></a>
-<span class="sourceLineNo">352</span>            .add((tag.getType()) + ":" + Bytes.toStringBinary(Tag.cloneValue(tag)));<a name="line.352"></a>
-<span class="sourceLineNo">353</span>      }<a name="line.353"></a>
-<span class="sourceLineNo">354</span>      stringMap.put("tag", tagsString);<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    }<a name="line.355"></a>
-<span class="sourceLineNo">356</span>    return stringMap;<a name="line.356"></a>
-<span class="sourceLineNo">357</span>  }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span>  public static void main(String[] args) throws IOException {<a name="line.359"></a>
-<span class="sourceLineNo">360</span>    run(args);<a name="line.360"></a>
-<span class="sourceLineNo">361</span>  }<a name="line.361"></a>
-<span class="sourceLineNo">362</span><a name="line.362"></a>
-<span class="sourceLineNo">363</span>  /**<a name="line.363"></a>
-<span class="sourceLineNo">364</span>   * Pass one or more log file names and formatting options and it will dump out<a name="line.364"></a>
-<span class="sourceLineNo">365</span>   * a text version of the contents on &lt;code&gt;stdout&lt;/code&gt;.<a name="line.365"></a>
-<span class="sourceLineNo">366</span>   *<a name="line.366"></a>
-<span class="sourceLineNo">367</span>   * @param args<a name="line.367"></a>
-<span class="sourceLineNo">368</span>   *          Command line arguments<a name="line.368"></a>
-<span class="sourceLineNo">369</span>   * @throws IOException<a name="line.369"></a>
-<span class="sourceLineNo">370</span>   *           Thrown upon file system errors etc.<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   */<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  public static void run(String[] args) throws IOException {<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    // create options<a name="line.373"></a>
-<span class="sourceLineNo">374</span>    Options options = new Options();<a name="line.374"></a>
-<span class="sourceLineNo">375</span>    options.addOption("h", "help", false, "Output help message");<a name="line.375"></a>
-<span class="sourceLineNo">376</span>    options.addOption("j", "json", false, "Output JSON");<a name="line.376"></a>
-<span class="sourceLineNo">377</span>    options.addOption("p", "printvals", false, "Print values");<a name="line.377"></a>
-<span class="sourceLineNo">378</span>    options.addOption("r", "region", true,<a name="line.378"></a>
-<span class="sourceLineNo">379</span>        "Region to filter by. Pass encoded region name; e.g. '9192caead6a5a20acb4454ffbc79fa14'");<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    options.addOption("s", "sequence", true,<a name="line.380"></a>
-<span class="sourceLineNo">381</span>        "Sequence to filter by. Pass sequence number.");<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    options.addOption("w", "row", true, "Row to filter by. Pass row name.");<a name="line.382"></a>
-<span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span>    WALPrettyPrinter printer = new WALPrettyPrinter();<a name="line.384"></a>
-<span class="sourceLineNo">385</span>    CommandLineParser parser = new PosixParser();<a name="line.385"></a>
-<span class="sourceLineNo">386</span>    List&lt;?&gt; files = null;<a name="line.386"></a>
-<span class="sourceLineNo">387</span>    try {<a name="line.387"></a>
-<span class="sourceLineNo">388</span>      CommandLine cmd = parser.parse(options, args);<a name="line.388"></a>
-<span class="sourceLineNo">389</span>      files = cmd.getArgList();<a name="line.389"></a>
-<span class="sourceLineNo">390</span>      if (files.isEmpty() || cmd.hasOption("h")) {<a name="line.390"></a>
-<span class="sourceLineNo">391</span>        HelpFormatter formatter = new HelpFormatter();<a name="line.391"></a>
-<span class="sourceLineNo">392</span>        formatter.printHelp("WAL &lt;filename...&gt;", options, true);<a name="line.392"></a>
-<span class="sourceLineNo">393</span>        System.exit(-1);<a name="line.393"></a>
-<span class="sourceLineNo">394</span>      }<a name="line.394"></a>
-<span class="sourceLineNo">395</span>      // configure the pretty printer using command line options<a name="line.395"></a>
-<span class="sourceLineNo">396</span>      if (cmd.hasOption("p"))<a name="line.396"></a>
-<span class="sourceLineNo">397</span>        printer.enableValues();<a name="line.397"></a>
-<span class="sourceLineNo">398</span>      if (cmd.hasOption("j"))<a name="line.398"></a>
-<span class="sourceLineNo">399</span>        printer.enableJSON();<a name="line.399"></a>
-<span class="sourceLineNo">400</span>      if (cmd.hasOption("r"))<a name="line.400"></a>
-<span class="sourceLineNo">401</span>        printer.setRegionFilter(cmd.getOptionValue("r"));<a name="line.401"></a>
-<span class="sourceLineNo">402</span>      if (cmd.hasOption("s"))<a name="line.402"></a>
-<span class="sourceLineNo">403</span>        printer.setSequenceFilter(Long.parseLong(cmd.getOptionValue("s")));<a name="line.403"></a>
-<span class="sourceLineNo">404</span>      if (cmd.hasOption("w"))<a name="line.404"></a>
-<span class="sourceLineNo">405</span>        printer.setRowFilter(cmd.getOptionValue("w"));<a name="line.405"></a>
-<span class="sourceLineNo">406</span>    } catch (ParseException e) {<a name="line.406"></a>
-<span class="sourceLineNo">407</span>      LOG.error("Failed to parse commandLine arguments", e);<a name="line.407"></a>
-<span class="sourceLineNo">408</span>      HelpFormatter formatter = new HelpFormatter();<a name="line.408"></a>
-<span class="sourceLineNo">409</span>      formatter.printHelp("HFile filename(s) ", options, true);<a name="line.409"></a>
-<span class="sourceLineNo">410</span>      System.exit(-1);<a name="line.410"></a>
-<span class="sourceLineNo">411</span>    }<a name="line.411"></a>
-<span class="sourceLineNo">412</span>    // get configuration, file system, and process the given files<a name="line.412"></a>
-<span class="sourceLineNo">413</span>    Configuration conf = HBaseConfiguration.create();<a name="line.413"></a>
-<span class="sourceLineNo">414</span>    FSUtils.setFsDefault(conf, FSUtils.getRootDir(conf));<a name="line.414"></a>
-<span class="sourceLineNo">415</span><a name="line.415"></a>
-<span class="sourceLineNo">416</span>    // begin output<a name="line.416"></a>
-<span class="sourceLineNo">417</span>    printer.beginPersistentOutput();<a name="line.417"></a>
-<span class="sourceLineNo">418</span>    for (Object f : files) {<a name="line.418"></a>
-<span class="sourceLineNo">419</span>      Path file = new Path((String) f);<a name="line.419"></a>
-<span class="sourceLineNo">420</span>      FileSystem fs = file.getFileSystem(conf);<a name="line.420"></a>
-<span class="sourceLineNo">421</span>      if (!fs.exists(file)) {<a name="line.421"></a>
-<span class="sourceLineNo">422</span>        System.err.println("ERROR, file doesnt exist: " + file);<a name="line.422"></a>
-<span class="sourceLineNo">423</span>        return;<a name="line.423"></a>
-<span class="sourceLineNo">424</span>      }<a name="line.424"></a>
-<span class="sourceLineNo">425</span>      printer.processFile(conf, file);<a name="line.425"></a>
-<span class="sourceLineNo">426</span>    }<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    printer.endPersistentOutput();<a name="line.427"></a>
-<span class="sourceLineNo">428</span>  }<a name="line.428"></a>
-<span class="sourceLineNo">429</span>}<a name="line.429"></a>
+<span class="sourceLineNo">303</span>        if (region != null &amp;&amp; !((String) txn.get("region")).equals(region))<a name="line.303"></a>
+<span class="sourceLineNo">304</span>          continue;<a name="line.304"></a>
+<span class="sourceLineNo">305</span>        // initialize list into which we will store atomic actions<a name="line.305"></a>
+<span class="sourceLineNo">306</span>        List&lt;Map&gt; actions = new ArrayList&lt;&gt;();<a name="line.306"></a>
+<span class="sourceLineNo">307</span>        for (Cell cell : edit.getCells()) {<a name="line.307"></a>
+<span class="sourceLineNo">308</span>          // add atomic operation to txn<a name="line.308"></a>
+<span class="sourceLineNo">309</span>          Map&lt;String, Object&gt; op = new HashMap&lt;&gt;(toStringMap(cell));<a name="line.309"></a>
+<span class="sourceLineNo">310</span>          if (outputValues) op.put("value", Bytes.toStringBinary(CellUtil.cloneValue(cell)));<a name="line.310"></a>
+<span class="sourceLineNo">311</span>          // check row output filter<a name="line.311"></a>
+<span class="sourceLineNo">312</span>          if (row == null || ((String) op.get("row")).equals(row)) {<a name="line.312"></a>
+<span class="sourceLineNo">313</span>            actions.add(op);<a name="line.313"></a>
+<span class="sourceLineNo">314</span>          }<a name="line.314"></a>
+<span class="sourceLineNo">315</span>          op.put("total_size_sum", PrivateCellUtil.estimatedSizeOfCell(cell));<a name="line.315"></a>
+<span class="sourceLineNo">316</span>        }<a name="line.316"></a>
+<span class="sourceLineNo">317</span>        if (actions.isEmpty())<a name="line.317"></a>
+<span class="sourceLineNo">318</span>          continue;<a name="line.318"></a>
+<span class="sourceLineNo">319</span>        txn.put("actions", actions);<a name="line.319"></a>
+<span class="sourceLineNo">320</span>        if (outputJSON) {<a name="line.320"></a>
+<span class="sourceLineNo">321</span>          // JSON output is a straightforward "toString" on the txn object<a name="line.321"></a>
+<span class="sourceLineNo">322</span>          if (firstTxn)<a name="line.322"></a>
+<span class="sourceLineNo">323</span>            firstTxn = false;<a name="line.323"></a>
+<span class="sourceLineNo">324</span>          else<a name="line.324"></a>
+<span class="sourceLineNo">325</span>            out.print(",");<a name="line.325"></a>
+<span class="sourceLineNo">326</span>          // encode and print JSON<a name="line.326"></a>
+<span class="sourceLineNo">327</span>          out.print(MAPPER.writeValueAsString(txn));<a name="line.327"></a>
+<span class="sourceLineNo">328</span>        } else {<a name="line.328"></a>
+<span class="sourceLineNo">329</span>          // Pretty output, complete with indentation by atomic action<a name="line.329"></a>
+<span class="sourceLineNo">330</span>          out.println("Sequence=" + txn.get("sequence") + " "<a name="line.330"></a>
+<span class="sourceLineNo">331</span>              + ", region=" + txn.get("region") + " at write timestamp=" + new Date(writeTime));<a name="line.331"></a>
+<span class="sourceLineNo">332</span>          for (int i = 0; i &lt; actions.size(); i++) {<a name="line.332"></a>
+<span class="sourceLineNo">333</span>            Map op = actions.get(i);<a name="line.333"></a>
+<span class="sourceLineNo">334</span>            out.println("row=" + op.get("row") +<a name="line.334"></a>
+<span class="sourceLineNo">335</span>                ", column=" + op.get("family") + ":" + op.get("qualifier"));<a name="line.335"></a>
+<span class="sourceLineNo">336</span>            if (op.get("tag") != null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>              out.println("    tag: " + op.get("tag"));<a name="line.337"></a>
+<span class="sourceLineNo">338</span>            }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>            if (outputValues) out.println("    value: " + op.get("value"));<a name="line.339"></a>
+<span class="sourceLineNo">340</span>            out.println("cell total size sum: " + op.get("total_size_sum"));<a name="line.340"></a>
+<span class="sourceLineNo">341</span>          }<a name="line.341"></a>
+<span class="sourceLineNo">342</span>        }<a name="line.342"></a>
+<span class="sourceLineNo">343</span>        out.println("edit heap size: " + entry.getEdit().heapSize());<a name="line.343"></a>
+<span class="sourceLineNo">344</span>        out.println("position: " + log.getPosition());<a name="line.344"></a>
+<span class="sourceLineNo">345</span>      }<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    } finally {<a name="line.346"></a>
+<span class="sourceLineNo">347</span>      log.close();<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    }<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    if (outputJSON &amp;&amp; !persistentOutput) {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>      out.print("]");<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    }<a name="line.351"></a>
+<span class="sourceLineNo">352</span>  }<a name="line.352"></a>
+<span class="sourceLineNo">353</span><a name="line.353"></a>
+<span class="sourceLineNo">354</span>  private static Map&lt;String, Object&gt; toStringMap(Cell cell) {<a name="line.354"></a>
+<span class="sourceLineNo">355</span>    Map&lt;String, Object&gt; stringMap = new HashMap&lt;&gt;();<a name="line.355"></a>
+<span class="sourceLineNo">356</span>    stringMap.put("row",<a name="line.356"></a>
+<span class="sourceLineNo">357</span>        Bytes.toStringBinary(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()));<a name="line.357"></a>
+<span class="sourceLineNo">358</span>    stringMap.put("family", Bytes.toStringBinary(cell.getFamilyArray(), cell.getFamilyOffset(),<a name="line.358"></a>
+<span class="sourceLineNo">359</span>                cell.getFamilyLength()));<a name="line.359"></a>
+<span class="sourceLineNo">360</span>    stringMap.put("qualifier",<a name="line.360"></a>
+<span class="sourceLineNo">361</span>        Bytes.toStringBinary(cell.getQualifierArray(), cell.getQualifierOffset(),<a name="line.361"></a>
+<span class="sourceLineNo">362</span>            cell.getQualifierLength()));<a name="line.362"></a>
+<span class="sourceLineNo">363</span>    stringMap.put("timestamp", cell.getTimestamp());<a name="line.363"></a>
+<span class="sourceLineNo">364</span>    stringMap.put("vlen", cell.getValueLength());<a name="line.364"></a>
+<span class="sourceLineNo">365</span>    if (cell.getTagsLength() &gt; 0) {<a name="line.365"></a>
+<span class="sourceLineNo">366</span>      List&lt;String&gt; tagsString = new ArrayList&lt;&gt;();<a name="line.366"></a>
+<span class="sourceLineNo">367</span>      Iterator&lt;Tag&gt; tagsIterator = PrivateCellUtil.tagsIterator(cell);<a name="line.367"></a>
+<span class="sourceLineNo">368</span>      while (tagsIterator.hasNext()) {<a name="line.368"></a>
+<span class="sourceLineNo">369</span>        Tag tag = tagsIterator.next();<a name="line.369"></a>
+<span class="sourceLineNo">370</span>        tagsString<a name="line.370"></a>
+<span class="sourceLineNo">371</span>            .add((tag.getType()) + ":" + Bytes.toStringBinary(Tag.cloneValue(tag)));<a name="line.371"></a>
+<span class="sourceLineNo">372</span>      }<a name="line.372"></a>
+<span class="sourceLineNo">373</span>      stringMap.put("tag", tagsString);<a name="line.373"></a>
+<span class="sourceLineNo">374</span>    }<a name="line.374"></a>
+<span class="sourceLineNo">375</span>    return stringMap;<a name="line.375"></a>
+<span class="sourceLineNo">376</span>  }<a name="line.376"></a>
+<span class="sourceLineNo">377</span><a name="line.377"></a>
+<span class="sourceLineNo">378</span>  public static void main(String[] args) throws IOException {<a name="line.378"></a>
+<span class="sourceLineNo">379</span>    run(args);<a name="line.379"></a>
+<span class="sourceLineNo">380</span>  }<a name="line.380"></a>
+<span class="sourceLineNo">381</span><a name="line.381"></a>
+<span class="sourceLineNo">382</span>  /**<a name="line.382"></a>
+<span class="sourceLineNo">383</span>   * Pass one or more log file names and formatting options and it will dump out<a name="line.383"></a>
+<span class="sourceLineNo">384</span>   * a text version of the contents on &lt;code&gt;stdout&lt;/code&gt;.<a name="line.384"></a>
+<span class="sourceLineNo">385</span>   *<a name="line.385"></a>
+<span class="sourceLineNo">386</span>   * @param args<a name="line.386"></a>
+<span class="sourceLineNo">387</span>   *          Command line arguments<a name="line.387"></a>
+<span class="sourceLineNo">388</span>   * @throws IOException<a name="line.388"></a>
+<span class="sourceLineNo">389</span>   *           Thrown upon file system errors etc.<a name="line.389"></a>
+<span class="sourceLineNo">390</span>   */<a name="line.390"></a>
+<span class="sourceLineNo">391</span>  public static void run(String[] args) throws IOException {<a name="line.391"></a>
+<span class="sourceLineNo">392</span>    // create options<a name="line.392"></a>
+<span class="sourceLineNo">393</span>    Options options = new Options();<a name="line.393"></a>
+<span class="sourceLineNo">394</span>    options.addOption("h", "help", false, "Output help message");<a name="line.394"></a>
+<span class="sourceLineNo">395</span>    options.addOption("j", "json", false, "Output JSON");<a name="line.395"></a>
+<span class="sourceLineNo">396</span>    options.addOption("p", "printvals", false, "Print values");<a name="line.396"></a>
+<span class="sourceLineNo">397</span>    options.addOption("r", "region", true,<a name="line.397"></a>
+<span class="sourceLineNo">398</span>        "Region to filter by. Pass encoded region name; e.g. '9192caead6a5a20acb4454ffbc79fa14'");<a name="line.398"></a>
+<span class="sourceLineNo">399</span>    options.addOption("s", "sequence", true,<a name="line.399"></a>
+<span class="sourceLineNo">400</span>        "Sequence to filter by. Pass sequence number.");<a name="line.400"></a>
+<span class="sourceLineNo">401</span>    options.addOption("w", "row", true, "Row to filter by. Pass row name.");<a name="line.401"></a>
+<span class="sourceLineNo">402</span>    options.addOption("g", "goto", true, "Position to seek to in the file");<a name="line.402"></a>
+<span class="sourceLineNo">403</span><a name="line.403"></a>
+<span class="sourceLineNo">404</span>    WALPrettyPrinter printer = new WALPrettyPrinter();<a name="line.404"></a>
+<span class="sourceLineNo">405</span>    CommandLineParser parser = new PosixParser();<a name="line.405"></a>
+<span class="sourceLineNo">406</span>    List&lt;?&gt; files = null;<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    try {<a name="line.407"></a>
+<span class="sourceLineNo">408</span>      CommandLine cmd = parser.parse(options, args);<a name="line.408"></a>
+<span class="sourceLineNo">409</span>      files = cmd.getArgList();<a name="line.409"></a>
+<span class="sourceLineNo">410</span>      if (files.isEmpty() || cmd.hasOption("h")) {<a name="line.410"></a>
+<span class="sourceLineNo">411</span>        HelpFormatter formatter = new HelpFormatter();<a name="line.411"></a>
+<span class="sourceLineNo">412</span>        formatter.printHelp("WAL &lt;filename...&gt;", options, true);<a name="line.412"></a>
+<span class="sourceLineNo">413</span>        System.exit(-1);<a name="line.413"></a>
+<span class="sourceLineNo">414</span>      }<a name="line.414"></a>
+<span class="sourceLineNo">415</span>      // configure the pretty printer using command line options<a name="line.415"></a>
+<span class="sourceLineNo">416</span>      if (cmd.hasOption("p"))<a name="line.416"></a>
+<span class="sourceLineNo">417</span>        printer.enableValues();<a name="line.417"></a>
+<span class="sourceLineNo">418</span>      if (cmd.hasOption("j"))<a name="line.418"></a>
+<span class="sourceLineNo">419</span>        printer.enableJSON();<a name="line.419"></a>
+<span class="sourceLineNo">420</span>      if (cmd.hasOption("r"))<a name="line.420"></a>
+<span class="sourceLineNo">421</span>        printer.setRegionFilter(cmd.getOptionValue("r"));<a name="line.421"></a>
+<span class="sourceLineNo">422</span>      if (cmd.hasOption("s"))<a name="line.422"></a>
+<span class="sourceLineNo">423</span>        printer.setSequenceFilter(Long.parseLong(cmd.getOptionValue("s")));<a name="line.423"></a>
+<span class="sourceLineNo">424</span>      if (cmd.hasOption("w"))<a name="line.424"></a>
+<span class="sourceLineNo">425</span>        printer.setRowFilter(cmd.getOptionValue("w"));<a name="line.425"></a>
+<span class="sourceLineNo">426</span>      if (cmd.hasOption("g")) {<a name="line.426"></a>
+<span class="sourceLineNo">427</span>        printer.setPosition(Long.parseLong(cmd.getOptionValue("g")));<a name="line.427"></a>
+<span class="sourceLineNo">428</span>      }<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    } catch (ParseException e) {<a name="line.429"></a>
+<span class="sourceLineNo">430</span>      LOG.error("Failed to parse commandLine arguments", e);<a name="line.430"></a>
+<span class="sourceLineNo">431</span>      HelpFormatter formatter = new HelpFormatter();<a name="line.431"></a>
+<span class="sourceLineNo">432</span>      formatter.printHelp("HFile filename(s) ", options, true);<a name="line.432"></a>
+<span class="sourceLineNo">433</span>      System.exit(-1);<a name="line.433"></a>
+<span class="sourceLineNo">434</span>    }<a name="line.434"></a>
+<span class="sourceLineNo">435</span>    // get configuration, file system, and process the given files<a name="line.435"></a>
+<span class="sourceLineNo">436</span>    Configuration conf = HBaseConfiguration.create();<a name="line.436"></a>
+<span class="sourceLineNo">437</span>    FSUtils.setFsDefault(conf, FSUtils.getRootDir(conf));<a name="line.437"></a>
+<span class="sourceLineNo">438</span><a name="line.438"></a>
+<span class="sourceLineNo">439</span>    // begin output<a name="line.439"></a>
+<span class="sourceLineNo">440</span>    printer.beginPersistentOutput();<a name="line.440"></a>
+<span class="sourceLineNo">441</span>    for (Object f : files) {<a name="line.441"></a>
+<span class="sourceLineNo">442</span>      Path file = new Path((String) f);<a name="line.442"></a>
+<span class="sourceLineNo">443</span>      FileSystem fs = file.getFileSystem(conf);<a name="line.443"></a>
+<span class="sourceLineNo">444</span>      if (!fs.exists(file)) {<a name="line.444"></a>
+<span class="sourceLineNo">445</span>        System.err.println("ERROR, file doesnt exist: " + file);<a name="line.445"></a>
+<span class="sourceLineNo">446</span>        return;<a name="line.446"></a>
+<span class="sourceLineNo">447</span>      }<a name="line.447"></a>
+<span class="sourceLineNo">448</span>      printer.processFile(conf, file);<a name="line.448"></a>
+<span class="sourceLineNo">449</span>    }<a name="line.449"></a>
+<span class="sourceLineNo">450</span>    printer.endPersistentOutput();<a name="line.450"></a>
+<span class="sourceLineNo">451</span>  }<a name="line.451"></a>
+<span class="sourceLineNo">452</span>}<a name="line.452"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/04fd4290/downloads.html
----------------------------------------------------------------------
diff --git a/downloads.html b/downloads.html
index dfbe758..fbc92ef 100644
--- a/downloads.html
+++ b/downloads.html
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181002" />
+    <meta name="Date-Revision-yyyymmdd" content="20181004" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013; Apache HBase Downloads</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -423,7 +423,7 @@ under the License. -->
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-10-02</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-10-04</li>
             </p>
                 </div>
 


Mime
View raw message