Published site at 82d554e3783372cc6b05489452c815b57c06f6cd.
Project: http://git-wip-us.apache.org/repos/asf/hbase-site/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase-site/commit/00788d32 Tree: http://git-wip-us.apache.org/repos/asf/hbase-site/tree/00788d32 Diff: http://git-wip-us.apache.org/repos/asf/hbase-site/diff/00788d32 Branch: refs/heads/asf-site Commit: 00788d3266fc0c6036d5cf73e4d946231c464db8 Parents: 2fd6b4c Author: jenkins <[email protected]> Authored: Thu May 4 14:58:34 2017 +0000 Committer: jenkins <[email protected]> Committed: Thu May 4 14:58:34 2017 +0000 ---------------------------------------------------------------------- acid-semantics.html | 4 +- apache_hbase_reference_guide.pdf | 4 +- apache_hbase_reference_guide.pdfmarks | 4 +- .../mapreduce/TableSnapshotInputFormat.html | 6 +- .../mapreduce/TableSnapshotInputFormat.html | 151 +- bulk-loads.html | 4 +- checkstyle-aggregate.html | 10712 +++++++++-------- checkstyle.rss | 6 +- coc.html | 4 +- cygwin.html | 4 +- dependencies.html | 4 +- dependency-convergence.html | 4 +- dependency-info.html | 4 +- dependency-management.html | 4 +- devapidocs/constant-values.html | 6 +- devapidocs/index-all.html | 46 +- .../hadoop/hbase/backup/package-tree.html | 2 +- .../hadoop/hbase/class-use/HRegionInfo.html | 4 + .../hbase/classification/package-tree.html | 6 +- .../hadoop/hbase/client/package-tree.html | 24 +- .../hadoop/hbase/filter/package-tree.html | 8 +- .../hadoop/hbase/io/hfile/package-tree.html | 4 +- ...tFormat.TableSnapshotRegionRecordReader.html | 22 +- ...hotInputFormat.TableSnapshotRegionSplit.html | 19 +- .../mapreduce/TableSnapshotInputFormat.html | 6 +- .../hadoop/hbase/mapreduce/package-tree.html | 2 +- .../VerifyReplication.Verifier.Counters.html | 16 +- .../replication/VerifyReplication.Verifier.html | 30 +- .../replication/VerifyReplication.html | 187 +- .../hadoop/hbase/master/package-tree.html | 4 +- .../hbase/master/procedure/package-tree.html | 2 +- .../org/apache/hadoop/hbase/package-tree.html | 12 +- .../hadoop/hbase/procedure2/package-tree.html | 6 +- .../hadoop/hbase/quotas/package-tree.html | 6 +- .../compactions/RatioBasedCompactionPolicy.html | 8 +- .../hadoop/hbase/regionserver/package-tree.html | 18 +- .../regionserver/querymatcher/package-tree.html | 2 +- .../class-use/ReplicationPeerConfig.html | 3 +- .../hadoop/hbase/rest/model/package-tree.html | 2 +- .../hbase/security/access/package-tree.html | 2 +- .../hadoop/hbase/security/package-tree.html | 2 +- .../hadoop/hbase/thrift/package-tree.html | 2 +- .../tmpl/master/MasterStatusTmpl.ImplData.html | 150 +- .../hbase/tmpl/master/MasterStatusTmpl.html | 60 +- .../hbase/tmpl/master/MasterStatusTmplImpl.html | 30 +- .../regionserver/RSStatusTmpl.ImplData.html | 90 +- .../hbase/tmpl/regionserver/RSStatusTmpl.html | 36 +- .../tmpl/regionserver/RSStatusTmplImpl.html | 18 +- .../hadoop/hbase/util/class-use/Pair.html | 3 +- .../apache/hadoop/hbase/util/package-tree.html | 6 +- .../org/apache/hadoop/hbase/Version.html | 6 +- ...tFormat.TableSnapshotRegionRecordReader.html | 151 +- ...hotInputFormat.TableSnapshotRegionSplit.html | 151 +- .../mapreduce/TableSnapshotInputFormat.html | 151 +- .../VerifyReplication.Verifier.Counters.html | 1207 +- .../replication/VerifyReplication.Verifier.html | 1207 +- .../replication/VerifyReplication.html | 1207 +- .../compactions/RatioBasedCompactionPolicy.html | 295 +- .../tmpl/master/MasterStatusTmpl.ImplData.html | 150 +- .../tmpl/master/MasterStatusTmpl.Intf.html | 150 +- .../hbase/tmpl/master/MasterStatusTmpl.html | 150 +- .../hbase/tmpl/master/MasterStatusTmplImpl.html | 40 +- .../regionserver/RSStatusTmpl.ImplData.html | 90 +- .../tmpl/regionserver/RSStatusTmpl.Intf.html | 90 +- .../hbase/tmpl/regionserver/RSStatusTmpl.html | 90 +- .../tmpl/regionserver/RSStatusTmplImpl.html | 24 +- export_control.html | 4 +- hbase-annotations/checkstyle.html | 6 +- hbase-annotations/dependencies.html | 6 +- hbase-annotations/dependency-convergence.html | 6 +- hbase-annotations/dependency-info.html | 6 +- hbase-annotations/dependency-management.html | 6 +- hbase-annotations/index.html | 6 +- hbase-annotations/integration.html | 6 +- hbase-annotations/issue-tracking.html | 6 +- hbase-annotations/license.html | 6 +- hbase-annotations/mail-lists.html | 6 +- hbase-annotations/plugin-management.html | 6 +- hbase-annotations/plugins.html | 6 +- hbase-annotations/project-info.html | 6 +- hbase-annotations/project-reports.html | 6 +- hbase-annotations/project-summary.html | 6 +- hbase-annotations/source-repository.html | 6 +- hbase-annotations/team-list.html | 6 +- hbase-archetypes/dependencies.html | 6 +- hbase-archetypes/dependency-convergence.html | 6 +- hbase-archetypes/dependency-info.html | 6 +- hbase-archetypes/dependency-management.html | 6 +- .../hbase-archetype-builder/dependencies.html | 6 +- .../dependency-convergence.html | 6 +- .../dependency-info.html | 6 +- .../dependency-management.html | 6 +- .../hbase-archetype-builder/index.html | 6 +- .../hbase-archetype-builder/integration.html | 6 +- .../hbase-archetype-builder/issue-tracking.html | 6 +- .../hbase-archetype-builder/license.html | 6 +- .../hbase-archetype-builder/mail-lists.html | 6 +- .../plugin-management.html | 6 +- .../hbase-archetype-builder/plugins.html | 6 +- .../hbase-archetype-builder/project-info.html | 6 +- .../project-summary.html | 6 +- .../source-repository.html | 6 +- .../hbase-archetype-builder/team-list.html | 6 +- .../hbase-client-project/checkstyle.html | 6 +- .../hbase-client-project/dependencies.html | 6 +- .../dependency-convergence.html | 6 +- .../hbase-client-project/dependency-info.html | 6 +- .../dependency-management.html | 6 +- .../hbase-client-project/index.html | 6 +- .../hbase-client-project/integration.html | 6 +- .../hbase-client-project/issue-tracking.html | 6 +- .../hbase-client-project/license.html | 6 +- .../hbase-client-project/mail-lists.html | 6 +- .../hbase-client-project/plugin-management.html | 6 +- .../hbase-client-project/plugins.html | 6 +- .../hbase-client-project/project-info.html | 6 +- .../hbase-client-project/project-reports.html | 6 +- .../hbase-client-project/project-summary.html | 6 +- .../hbase-client-project/source-repository.html | 6 +- .../hbase-client-project/team-list.html | 6 +- .../hbase-shaded-client-project/checkstyle.html | 6 +- .../dependencies.html | 6 +- .../dependency-convergence.html | 6 +- .../dependency-info.html | 6 +- .../dependency-management.html | 6 +- .../hbase-shaded-client-project/index.html | 6 +- .../integration.html | 6 +- .../issue-tracking.html | 6 +- .../hbase-shaded-client-project/license.html | 6 +- .../hbase-shaded-client-project/mail-lists.html | 6 +- .../plugin-management.html | 6 +- .../hbase-shaded-client-project/plugins.html | 6 +- .../project-info.html | 6 +- .../project-reports.html | 6 +- .../project-summary.html | 6 +- .../source-repository.html | 6 +- .../hbase-shaded-client-project/team-list.html | 6 +- hbase-archetypes/index.html | 6 +- hbase-archetypes/integration.html | 6 +- hbase-archetypes/issue-tracking.html | 6 +- hbase-archetypes/license.html | 6 +- hbase-archetypes/mail-lists.html | 6 +- hbase-archetypes/plugin-management.html | 6 +- hbase-archetypes/plugins.html | 6 +- hbase-archetypes/project-info.html | 6 +- hbase-archetypes/project-summary.html | 6 +- hbase-archetypes/source-repository.html | 6 +- hbase-archetypes/team-list.html | 6 +- hbase-spark/checkstyle.html | 6 +- hbase-spark/dependencies.html | 6 +- hbase-spark/dependency-convergence.html | 6 +- hbase-spark/dependency-info.html | 6 +- hbase-spark/dependency-management.html | 6 +- hbase-spark/index.html | 6 +- hbase-spark/integration.html | 6 +- hbase-spark/issue-tracking.html | 6 +- hbase-spark/license.html | 6 +- hbase-spark/mail-lists.html | 6 +- hbase-spark/plugin-management.html | 6 +- hbase-spark/plugins.html | 6 +- hbase-spark/project-info.html | 6 +- hbase-spark/project-reports.html | 6 +- hbase-spark/project-summary.html | 6 +- hbase-spark/source-repository.html | 6 +- hbase-spark/team-list.html | 6 +- index.html | 4 +- integration.html | 4 +- issue-tracking.html | 4 +- license.html | 4 +- mail-lists.html | 4 +- metrics.html | 4 +- old_news.html | 4 +- plugin-management.html | 4 +- plugins.html | 4 +- poweredbyhbase.html | 4 +- project-info.html | 4 +- project-reports.html | 4 +- project-summary.html | 4 +- pseudo-distributed.html | 4 +- replication.html | 4 +- resources.html | 4 +- source-repository.html | 4 +- sponsors.html | 4 +- supportingprojects.html | 4 +- team-list.html | 4 +- testdevapidocs/index-all.html | 4 + .../org/apache/hadoop/hbase/package-tree.html | 8 +- .../hadoop/hbase/procedure2/package-tree.html | 2 +- .../hadoop/hbase/regionserver/package-tree.html | 2 +- .../replication/TestReplicationSmallTests.html | 83 +- .../apache/hadoop/hbase/test/package-tree.html | 4 +- .../apache/hadoop/hbase/wal/package-tree.html | 2 +- .../replication/TestReplicationSmallTests.html | 1759 +-- 193 files changed, 10065 insertions(+), 9389 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase-site/blob/00788d32/acid-semantics.html ---------------------------------------------------------------------- diff --git a/acid-semantics.html b/acid-semantics.html index 3a680a3..a401664 100644 --- a/acid-semantics.html +++ b/acid-semantics.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="20170503" /> + <meta name="Date-Revision-yyyymmdd" content="20170504" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase (TM) ACID Properties @@ -606,7 +606,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: 2017-05-03</li> + <li id="publishDate" class="pull-right">Last Published: 2017-05-04</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/00788d32/apache_hbase_reference_guide.pdf ---------------------------------------------------------------------- diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf index be23c9a..10738a2 100644 --- a/apache_hbase_reference_guide.pdf +++ b/apache_hbase_reference_guide.pdf @@ -5,8 +5,8 @@ /Author (Apache HBase Team) /Creator (Asciidoctor PDF 1.5.0.alpha.6, based on Prawn 1.2.1) /Producer (Apache HBase Team) -/CreationDate (D:20170503144726+00'00') -/ModDate (D:20170503144726+00'00') +/CreationDate (D:20170504144726+00'00') +/ModDate (D:20170504144726+00'00') >> endobj 2 0 obj http://git-wip-us.apache.org/repos/asf/hbase-site/blob/00788d32/apache_hbase_reference_guide.pdfmarks ---------------------------------------------------------------------- diff --git a/apache_hbase_reference_guide.pdfmarks b/apache_hbase_reference_guide.pdfmarks index 4261dba..778d29e 100644 --- a/apache_hbase_reference_guide.pdfmarks +++ b/apache_hbase_reference_guide.pdfmarks @@ -2,8 +2,8 @@ /Author (Apache HBase Team) /Subject () /Keywords () - /ModDate (D:20170503144849) - /CreationDate (D:20170503144849) + /ModDate (D:20170504144848) + /CreationDate (D:20170504144848) /Creator (Asciidoctor PDF 1.5.0.alpha.6, based on Prawn 1.2.1) /Producer () /DOCINFO pdfmark http://git-wip-us.apache.org/repos/asf/hbase-site/blob/00788d32/apidocs/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html ---------------------------------------------------------------------- diff --git a/apidocs/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html b/apidocs/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html index 656c6e2..00ca1c6 100644 --- a/apidocs/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html +++ b/apidocs/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html @@ -257,7 +257,7 @@ extends org.apache.hadoop.mapreduce.InputFormat<<a href="../../../../../org/a <ul class="blockList"> <li class="blockList"> <h4>createRecordReader</h4> -<pre>public org.apache.hadoop.mapreduce.RecordReader<<a href="../../../../../org/apache/hadoop/hbase/io/ImmutableBytesWritable.html" title="class in org.apache.hadoop.hbase.io">ImmutableBytesWritable</a>,<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html#line.177">createRecordReader</a>(org.apache.hadoop.mapreduce.InputSplit split, +<pre>public org.apache.hadoop.mapreduce.RecordReader<<a href="../../../../../org/apache/hadoop/hbase/io/ImmutableBytesWritable.html" title="class in org.apache.hadoop.hbase.io">ImmutableBytesWritable</a>,<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html#line.182">createRecordReader</a>(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws <a href="http://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> @@ -274,7 +274,7 @@ extends org.apache.hadoop.mapreduce.InputFormat<<a href="../../../../../org/a <ul class="blockList"> <li class="blockList"> <h4>getSplits</h4> -<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.apache.hadoop.mapreduce.InputSplit> <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html#line.183">getSplits</a>(org.apache.hadoop.mapreduce.JobContext job) +<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.apache.hadoop.mapreduce.InputSplit> <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html#line.188">getSplits</a>(org.apache.hadoop.mapreduce.JobContext job) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre> <dl> @@ -292,7 +292,7 @@ extends org.apache.hadoop.mapreduce.InputFormat<<a href="../../../../../org/a <ul class="blockListLast"> <li class="blockList"> <h4>setInput</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html#line.201">setInput</a>(org.apache.hadoop.mapreduce.Job job, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html#line.206">setInput</a>(org.apache.hadoop.mapreduce.Job job, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> snapshotName, org.apache.hadoop.fs.Path restoreDir) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/00788d32/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html ---------------------------------------------------------------------- diff --git a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html index 6a08cf2..67e20f5 100644 --- a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html +++ b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormat.html @@ -128,89 +128,94 @@ <span class="sourceLineNo">120</span> public void readFields(DataInput in) throws IOException {<a name="line.120"></a> <span class="sourceLineNo">121</span> delegate.readFields(in);<a name="line.121"></a> <span class="sourceLineNo">122</span> }<a name="line.122"></a> -<span class="sourceLineNo">123</span> }<a name="line.123"></a> -<span class="sourceLineNo">124</span><a name="line.124"></a> -<span class="sourceLineNo">125</span> @VisibleForTesting<a name="line.125"></a> -<span class="sourceLineNo">126</span> static class TableSnapshotRegionRecordReader extends<a name="line.126"></a> -<span class="sourceLineNo">127</span> RecordReader<ImmutableBytesWritable, Result> {<a name="line.127"></a> -<span class="sourceLineNo">128</span> private TableSnapshotInputFormatImpl.RecordReader delegate =<a name="line.128"></a> -<span class="sourceLineNo">129</span> new TableSnapshotInputFormatImpl.RecordReader();<a name="line.129"></a> -<span class="sourceLineNo">130</span> private TaskAttemptContext context;<a name="line.130"></a> -<span class="sourceLineNo">131</span> private Method getCounter;<a name="line.131"></a> -<span class="sourceLineNo">132</span><a name="line.132"></a> -<span class="sourceLineNo">133</span> @Override<a name="line.133"></a> -<span class="sourceLineNo">134</span> public void initialize(InputSplit split, TaskAttemptContext context) throws IOException,<a name="line.134"></a> -<span class="sourceLineNo">135</span> InterruptedException {<a name="line.135"></a> -<span class="sourceLineNo">136</span> this.context = context;<a name="line.136"></a> -<span class="sourceLineNo">137</span> getCounter = TableRecordReaderImpl.retrieveGetCounterWithStringsParams(context);<a name="line.137"></a> -<span class="sourceLineNo">138</span> delegate.initialize(<a name="line.138"></a> -<span class="sourceLineNo">139</span> ((TableSnapshotRegionSplit) split).delegate,<a name="line.139"></a> -<span class="sourceLineNo">140</span> context.getConfiguration());<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> @Override<a name="line.143"></a> -<span class="sourceLineNo">144</span> public boolean nextKeyValue() throws IOException, InterruptedException {<a name="line.144"></a> -<span class="sourceLineNo">145</span> boolean result = delegate.nextKeyValue();<a name="line.145"></a> -<span class="sourceLineNo">146</span> if (result) {<a name="line.146"></a> -<span class="sourceLineNo">147</span> ScanMetrics scanMetrics = delegate.getScanner().getScanMetrics();<a name="line.147"></a> -<span class="sourceLineNo">148</span> if (scanMetrics != null && context != null) {<a name="line.148"></a> -<span class="sourceLineNo">149</span> TableRecordReaderImpl.updateCounters(scanMetrics, 0, getCounter, context, 0);<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> return result;<a name="line.152"></a> -<span class="sourceLineNo">153</span> }<a name="line.153"></a> -<span class="sourceLineNo">154</span><a name="line.154"></a> -<span class="sourceLineNo">155</span> @Override<a name="line.155"></a> -<span class="sourceLineNo">156</span> public ImmutableBytesWritable getCurrentKey() throws IOException, InterruptedException {<a name="line.156"></a> -<span class="sourceLineNo">157</span> return delegate.getCurrentKey();<a name="line.157"></a> +<span class="sourceLineNo">123</span><a name="line.123"></a> +<span class="sourceLineNo">124</span> public HRegionInfo getRegionInfo() {<a name="line.124"></a> +<span class="sourceLineNo">125</span> return delegate.getRegionInfo();<a name="line.125"></a> +<span class="sourceLineNo">126</span> }<a name="line.126"></a> +<span class="sourceLineNo">127</span><a name="line.127"></a> +<span class="sourceLineNo">128</span> }<a name="line.128"></a> +<span class="sourceLineNo">129</span><a name="line.129"></a> +<span class="sourceLineNo">130</span> @VisibleForTesting<a name="line.130"></a> +<span class="sourceLineNo">131</span> static class TableSnapshotRegionRecordReader extends<a name="line.131"></a> +<span class="sourceLineNo">132</span> RecordReader<ImmutableBytesWritable, Result> {<a name="line.132"></a> +<span class="sourceLineNo">133</span> private TableSnapshotInputFormatImpl.RecordReader delegate =<a name="line.133"></a> +<span class="sourceLineNo">134</span> new TableSnapshotInputFormatImpl.RecordReader();<a name="line.134"></a> +<span class="sourceLineNo">135</span> private TaskAttemptContext context;<a name="line.135"></a> +<span class="sourceLineNo">136</span> private Method getCounter;<a name="line.136"></a> +<span class="sourceLineNo">137</span><a name="line.137"></a> +<span class="sourceLineNo">138</span> @Override<a name="line.138"></a> +<span class="sourceLineNo">139</span> public void initialize(InputSplit split, TaskAttemptContext context) throws IOException,<a name="line.139"></a> +<span class="sourceLineNo">140</span> InterruptedException {<a name="line.140"></a> +<span class="sourceLineNo">141</span> this.context = context;<a name="line.141"></a> +<span class="sourceLineNo">142</span> getCounter = TableRecordReaderImpl.retrieveGetCounterWithStringsParams(context);<a name="line.142"></a> +<span class="sourceLineNo">143</span> delegate.initialize(<a name="line.143"></a> +<span class="sourceLineNo">144</span> ((TableSnapshotRegionSplit) split).delegate,<a name="line.144"></a> +<span class="sourceLineNo">145</span> context.getConfiguration());<a name="line.145"></a> +<span class="sourceLineNo">146</span> }<a name="line.146"></a> +<span class="sourceLineNo">147</span><a name="line.147"></a> +<span class="sourceLineNo">148</span> @Override<a name="line.148"></a> +<span class="sourceLineNo">149</span> public boolean nextKeyValue() throws IOException, InterruptedException {<a name="line.149"></a> +<span class="sourceLineNo">150</span> boolean result = delegate.nextKeyValue();<a name="line.150"></a> +<span class="sourceLineNo">151</span> if (result) {<a name="line.151"></a> +<span class="sourceLineNo">152</span> ScanMetrics scanMetrics = delegate.getScanner().getScanMetrics();<a name="line.152"></a> +<span class="sourceLineNo">153</span> if (scanMetrics != null && context != null) {<a name="line.153"></a> +<span class="sourceLineNo">154</span> TableRecordReaderImpl.updateCounters(scanMetrics, 0, getCounter, context, 0);<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> return result;<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> @Override<a name="line.160"></a> -<span class="sourceLineNo">161</span> public Result getCurrentValue() throws IOException, InterruptedException {<a name="line.161"></a> -<span class="sourceLineNo">162</span> return delegate.getCurrentValue();<a name="line.162"></a> +<span class="sourceLineNo">161</span> public ImmutableBytesWritable getCurrentKey() throws IOException, InterruptedException {<a name="line.161"></a> +<span class="sourceLineNo">162</span> return delegate.getCurrentKey();<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> @Override<a name="line.165"></a> -<span class="sourceLineNo">166</span> public float getProgress() throws IOException, InterruptedException {<a name="line.166"></a> -<span class="sourceLineNo">167</span> return delegate.getProgress();<a name="line.167"></a> +<span class="sourceLineNo">166</span> public Result getCurrentValue() throws IOException, InterruptedException {<a name="line.166"></a> +<span class="sourceLineNo">167</span> return delegate.getCurrentValue();<a name="line.167"></a> <span class="sourceLineNo">168</span> }<a name="line.168"></a> <span class="sourceLineNo">169</span><a name="line.169"></a> <span class="sourceLineNo">170</span> @Override<a name="line.170"></a> -<span class="sourceLineNo">171</span> public void close() throws IOException {<a name="line.171"></a> -<span class="sourceLineNo">172</span> delegate.close();<a name="line.172"></a> +<span class="sourceLineNo">171</span> public float getProgress() throws IOException, InterruptedException {<a name="line.171"></a> +<span class="sourceLineNo">172</span> return delegate.getProgress();<a name="line.172"></a> <span class="sourceLineNo">173</span> }<a name="line.173"></a> -<span class="sourceLineNo">174</span> }<a name="line.174"></a> -<span class="sourceLineNo">175</span><a name="line.175"></a> -<span class="sourceLineNo">176</span> @Override<a name="line.176"></a> -<span class="sourceLineNo">177</span> public RecordReader<ImmutableBytesWritable, Result> createRecordReader(<a name="line.177"></a> -<span class="sourceLineNo">178</span> InputSplit split, TaskAttemptContext context) throws IOException {<a name="line.178"></a> -<span class="sourceLineNo">179</span> return new TableSnapshotRegionRecordReader();<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> @Override<a name="line.182"></a> -<span class="sourceLineNo">183</span> public List<InputSplit> getSplits(JobContext job) throws IOException, InterruptedException {<a name="line.183"></a> -<span class="sourceLineNo">184</span> List<InputSplit> results = new ArrayList<>();<a name="line.184"></a> -<span class="sourceLineNo">185</span> for (TableSnapshotInputFormatImpl.InputSplit split :<a name="line.185"></a> -<span class="sourceLineNo">186</span> TableSnapshotInputFormatImpl.getSplits(job.getConfiguration())) {<a name="line.186"></a> -<span class="sourceLineNo">187</span> results.add(new TableSnapshotRegionSplit(split));<a name="line.187"></a> -<span class="sourceLineNo">188</span> }<a name="line.188"></a> -<span class="sourceLineNo">189</span> return results;<a name="line.189"></a> -<span class="sourceLineNo">190</span> }<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> * Configures the job to use TableSnapshotInputFormat to read from a snapshot.<a name="line.193"></a> -<span class="sourceLineNo">194</span> * @param job the job to configure<a name="line.194"></a> -<span class="sourceLineNo">195</span> * @param snapshotName the name of the snapshot to read from<a name="line.195"></a> -<span class="sourceLineNo">196</span> * @param restoreDir a temporary directory to restore the snapshot into. Current user should<a name="line.196"></a> -<span class="sourceLineNo">197</span> * have write permissions to this directory, and this should not be a subdirectory of rootdir.<a name="line.197"></a> -<span class="sourceLineNo">198</span> * After the job is finished, restoreDir can be deleted.<a name="line.198"></a> -<span class="sourceLineNo">199</span> * @throws IOException if an error occurs<a name="line.199"></a> -<span class="sourceLineNo">200</span> */<a name="line.200"></a> -<span class="sourceLineNo">201</span> public static void setInput(Job job, String snapshotName, Path restoreDir)<a name="line.201"></a> -<span class="sourceLineNo">202</span> throws IOException {<a name="line.202"></a> -<span class="sourceLineNo">203</span> TableSnapshotInputFormatImpl.setInput(job.getConfiguration(), snapshotName, restoreDir);<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">174</span><a name="line.174"></a> +<span class="sourceLineNo">175</span> @Override<a name="line.175"></a> +<span class="sourceLineNo">176</span> public void close() throws IOException {<a name="line.176"></a> +<span class="sourceLineNo">177</span> delegate.close();<a name="line.177"></a> +<span class="sourceLineNo">178</span> }<a name="line.178"></a> +<span class="sourceLineNo">179</span> }<a name="line.179"></a> +<span class="sourceLineNo">180</span><a name="line.180"></a> +<span class="sourceLineNo">181</span> @Override<a name="line.181"></a> +<span class="sourceLineNo">182</span> public RecordReader<ImmutableBytesWritable, Result> createRecordReader(<a name="line.182"></a> +<span class="sourceLineNo">183</span> InputSplit split, TaskAttemptContext context) throws IOException {<a name="line.183"></a> +<span class="sourceLineNo">184</span> return new TableSnapshotRegionRecordReader();<a name="line.184"></a> +<span class="sourceLineNo">185</span> }<a name="line.185"></a> +<span class="sourceLineNo">186</span><a name="line.186"></a> +<span class="sourceLineNo">187</span> @Override<a name="line.187"></a> +<span class="sourceLineNo">188</span> public List<InputSplit> getSplits(JobContext job) throws IOException, InterruptedException {<a name="line.188"></a> +<span class="sourceLineNo">189</span> List<InputSplit> results = new ArrayList<>();<a name="line.189"></a> +<span class="sourceLineNo">190</span> for (TableSnapshotInputFormatImpl.InputSplit split :<a name="line.190"></a> +<span class="sourceLineNo">191</span> TableSnapshotInputFormatImpl.getSplits(job.getConfiguration())) {<a name="line.191"></a> +<span class="sourceLineNo">192</span> results.add(new TableSnapshotRegionSplit(split));<a name="line.192"></a> +<span class="sourceLineNo">193</span> }<a name="line.193"></a> +<span class="sourceLineNo">194</span> return results;<a name="line.194"></a> +<span class="sourceLineNo">195</span> }<a name="line.195"></a> +<span class="sourceLineNo">196</span><a name="line.196"></a> +<span class="sourceLineNo">197</span> /**<a name="line.197"></a> +<span class="sourceLineNo">198</span> * Configures the job to use TableSnapshotInputFormat to read from a snapshot.<a name="line.198"></a> +<span class="sourceLineNo">199</span> * @param job the job to configure<a name="line.199"></a> +<span class="sourceLineNo">200</span> * @param snapshotName the name of the snapshot to read from<a name="line.200"></a> +<span class="sourceLineNo">201</span> * @param restoreDir a temporary directory to restore the snapshot into. Current user should<a name="line.201"></a> +<span class="sourceLineNo">202</span> * have write permissions to this directory, and this should not be a subdirectory of rootdir.<a name="line.202"></a> +<span class="sourceLineNo">203</span> * After the job is finished, restoreDir can be deleted.<a name="line.203"></a> +<span class="sourceLineNo">204</span> * @throws IOException if an error occurs<a name="line.204"></a> +<span class="sourceLineNo">205</span> */<a name="line.205"></a> +<span class="sourceLineNo">206</span> public static void setInput(Job job, String snapshotName, Path restoreDir)<a name="line.206"></a> +<span class="sourceLineNo">207</span> throws IOException {<a name="line.207"></a> +<span class="sourceLineNo">208</span> TableSnapshotInputFormatImpl.setInput(job.getConfiguration(), snapshotName, restoreDir);<a name="line.208"></a> +<span class="sourceLineNo">209</span> }<a name="line.209"></a> +<span class="sourceLineNo">210</span>}<a name="line.210"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/00788d32/bulk-loads.html ---------------------------------------------------------------------- diff --git a/bulk-loads.html b/bulk-loads.html index 83f8765..69ddd3c 100644 --- a/bulk-loads.html +++ b/bulk-loads.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="20170503" /> + <meta name="Date-Revision-yyyymmdd" content="20170504" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Bulk Loads in Apache HBase (TM) @@ -311,7 +311,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: 2017-05-03</li> + <li id="publishDate" class="pull-right">Last Published: 2017-05-04</li> </p> </div>
