http://git-wip-us.apache.org/repos/asf/hbase-site/blob/ecb8d8ba/0.94/devapidocs/src-html/org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.html
----------------------------------------------------------------------
diff --git 
a/0.94/devapidocs/src-html/org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.html
 
b/0.94/devapidocs/src-html/org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.html
index 027e36d..6c45914 100644
--- 
a/0.94/devapidocs/src-html/org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.html
+++ 
b/0.94/devapidocs/src-html/org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.html
@@ -33,74 +33,77 @@
 <span class="sourceLineNo">025</span>import 
org.apache.hadoop.hbase.util.Bytes;<a name="line.25"></a>
 <span class="sourceLineNo">026</span>import 
org.apache.hadoop.io.RawComparator;<a name="line.26"></a>
 <span class="sourceLineNo">027</span><a name="line.27"></a>
-<span class="sourceLineNo">028</span>/**<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * Just copy data, do not do any kind of 
compression. Use for comparison and<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * benchmarking.<a name="line.30"></a>
-<span class="sourceLineNo">031</span> */<a name="line.31"></a>
-<span class="sourceLineNo">032</span>public class CopyKeyDataBlockEncoder 
extends BufferedDataBlockEncoder {<a name="line.32"></a>
-<span class="sourceLineNo">033</span>  @Override<a name="line.33"></a>
-<span class="sourceLineNo">034</span>  public void 
compressKeyValues(DataOutputStream out,<a name="line.34"></a>
-<span class="sourceLineNo">035</span>      ByteBuffer in, boolean 
includesMemstoreTS) throws IOException {<a name="line.35"></a>
-<span class="sourceLineNo">036</span>    in.rewind();<a name="line.36"></a>
-<span class="sourceLineNo">037</span>    ByteBufferUtils.putInt(out, 
in.limit());<a name="line.37"></a>
-<span class="sourceLineNo">038</span>    
ByteBufferUtils.moveBufferToStream(out, in, in.limit());<a name="line.38"></a>
-<span class="sourceLineNo">039</span>  }<a name="line.39"></a>
-<span class="sourceLineNo">040</span><a name="line.40"></a>
-<span class="sourceLineNo">041</span>  @Override<a name="line.41"></a>
-<span class="sourceLineNo">042</span>  public ByteBuffer 
uncompressKeyValues(DataInputStream source,<a name="line.42"></a>
-<span class="sourceLineNo">043</span>      int preserveHeaderLength, int 
skipLastBytes, boolean includesMemstoreTS)<a name="line.43"></a>
-<span class="sourceLineNo">044</span>      throws IOException {<a 
name="line.44"></a>
-<span class="sourceLineNo">045</span>    int decompressedSize = 
source.readInt();<a name="line.45"></a>
-<span class="sourceLineNo">046</span>    ByteBuffer buffer = 
ByteBuffer.allocate(decompressedSize +<a name="line.46"></a>
-<span class="sourceLineNo">047</span>        preserveHeaderLength);<a 
name="line.47"></a>
-<span class="sourceLineNo">048</span>    
buffer.position(preserveHeaderLength);<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    
ByteBufferUtils.copyFromStreamToBuffer(buffer, source, decompressedSize);<a 
name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span>    return buffer;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>  }<a name="line.52"></a>
+<span class="sourceLineNo">028</span>import 
org.apache.hadoop.classification.InterfaceAudience;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>/**<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * Just copy data, do not do any kind of 
compression. Use for comparison and<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * benchmarking.<a name="line.32"></a>
+<span class="sourceLineNo">033</span> */<a name="line.33"></a>
+<span class="sourceLineNo">034</span>@InterfaceAudience.Private<a 
name="line.34"></a>
+<span class="sourceLineNo">035</span>public class CopyKeyDataBlockEncoder 
extends BufferedDataBlockEncoder {<a name="line.35"></a>
+<span class="sourceLineNo">036</span>  @Override<a name="line.36"></a>
+<span class="sourceLineNo">037</span>  public void 
compressKeyValues(DataOutputStream out,<a name="line.37"></a>
+<span class="sourceLineNo">038</span>      ByteBuffer in, boolean 
includesMemstoreTS) throws IOException {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    in.rewind();<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    ByteBufferUtils.putInt(out, 
in.limit());<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    
ByteBufferUtils.moveBufferToStream(out, in, in.limit());<a name="line.41"></a>
+<span class="sourceLineNo">042</span>  }<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span>  @Override<a name="line.44"></a>
+<span class="sourceLineNo">045</span>  public ByteBuffer 
uncompressKeyValues(DataInputStream source,<a name="line.45"></a>
+<span class="sourceLineNo">046</span>      int preserveHeaderLength, int 
skipLastBytes, boolean includesMemstoreTS)<a name="line.46"></a>
+<span class="sourceLineNo">047</span>      throws IOException {<a 
name="line.47"></a>
+<span class="sourceLineNo">048</span>    int decompressedSize = 
source.readInt();<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    ByteBuffer buffer = 
ByteBuffer.allocate(decompressedSize +<a name="line.49"></a>
+<span class="sourceLineNo">050</span>        preserveHeaderLength);<a 
name="line.50"></a>
+<span class="sourceLineNo">051</span>    
buffer.position(preserveHeaderLength);<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    
ByteBufferUtils.copyFromStreamToBuffer(buffer, source, decompressedSize);<a 
name="line.52"></a>
 <span class="sourceLineNo">053</span><a name="line.53"></a>
-<span class="sourceLineNo">054</span>  @Override<a name="line.54"></a>
-<span class="sourceLineNo">055</span>  public ByteBuffer 
getFirstKeyInBlock(ByteBuffer block) {<a name="line.55"></a>
-<span class="sourceLineNo">056</span>    int keyLength = 
block.getInt(Bytes.SIZEOF_INT);<a name="line.56"></a>
-<span class="sourceLineNo">057</span>    return 
ByteBuffer.wrap(block.array(),<a name="line.57"></a>
-<span class="sourceLineNo">058</span>        block.arrayOffset() + 3 * 
Bytes.SIZEOF_INT, keyLength).slice();<a name="line.58"></a>
-<span class="sourceLineNo">059</span>  }<a name="line.59"></a>
-<span class="sourceLineNo">060</span><a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>  @Override<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  public String toString() {<a 
name="line.63"></a>
-<span class="sourceLineNo">064</span>    return 
CopyKeyDataBlockEncoder.class.getSimpleName();<a name="line.64"></a>
-<span class="sourceLineNo">065</span>  }<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>  @Override<a name="line.67"></a>
-<span class="sourceLineNo">068</span>  public EncodedSeeker 
createSeeker(RawComparator&lt;byte[]&gt; comparator,<a name="line.68"></a>
-<span class="sourceLineNo">069</span>      final boolean includesMemstoreTS) 
{<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    return new 
BufferedEncodedSeeker&lt;SeekerState&gt;(comparator) {<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      @Override<a name="line.71"></a>
-<span class="sourceLineNo">072</span>      protected void decodeNext() {<a 
name="line.72"></a>
-<span class="sourceLineNo">073</span>        current.keyLength = 
currentBuffer.getInt();<a name="line.73"></a>
-<span class="sourceLineNo">074</span>        current.valueLength = 
currentBuffer.getInt();<a name="line.74"></a>
-<span class="sourceLineNo">075</span>        current.ensureSpaceForKey();<a 
name="line.75"></a>
-<span class="sourceLineNo">076</span>        
currentBuffer.get(current.keyBuffer, 0, current.keyLength);<a 
name="line.76"></a>
-<span class="sourceLineNo">077</span>        current.valueOffset = 
currentBuffer.position();<a name="line.77"></a>
-<span class="sourceLineNo">078</span>        
ByteBufferUtils.skip(currentBuffer, current.valueLength);<a name="line.78"></a>
-<span class="sourceLineNo">079</span>        if (includesMemstoreTS) {<a 
name="line.79"></a>
-<span class="sourceLineNo">080</span>          current.memstoreTS = 
ByteBufferUtils.readVLong(currentBuffer);<a name="line.80"></a>
-<span class="sourceLineNo">081</span>        } else {<a name="line.81"></a>
-<span class="sourceLineNo">082</span>          current.memstoreTS = 0;<a 
name="line.82"></a>
-<span class="sourceLineNo">083</span>        }<a name="line.83"></a>
-<span class="sourceLineNo">084</span>        current.nextKvOffset = 
currentBuffer.position();<a name="line.84"></a>
-<span class="sourceLineNo">085</span>      }<a name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span>      @Override<a name="line.87"></a>
-<span class="sourceLineNo">088</span>      protected void decodeFirst() {<a 
name="line.88"></a>
-<span class="sourceLineNo">089</span>        
ByteBufferUtils.skip(currentBuffer, Bytes.SIZEOF_INT);<a name="line.89"></a>
-<span class="sourceLineNo">090</span>        current.lastCommonPrefix = 0;<a 
name="line.90"></a>
-<span class="sourceLineNo">091</span>        decodeNext();<a 
name="line.91"></a>
-<span class="sourceLineNo">092</span>      }<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    };<a name="line.93"></a>
-<span class="sourceLineNo">094</span>  }<a name="line.94"></a>
-<span class="sourceLineNo">095</span>}<a name="line.95"></a>
+<span class="sourceLineNo">054</span>    return buffer;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>  }<a name="line.55"></a>
+<span class="sourceLineNo">056</span><a name="line.56"></a>
+<span class="sourceLineNo">057</span>  @Override<a name="line.57"></a>
+<span class="sourceLineNo">058</span>  public ByteBuffer 
getFirstKeyInBlock(ByteBuffer block) {<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    int keyLength = 
block.getInt(Bytes.SIZEOF_INT);<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    return 
ByteBuffer.wrap(block.array(),<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        block.arrayOffset() + 3 * 
Bytes.SIZEOF_INT, keyLength).slice();<a name="line.61"></a>
+<span class="sourceLineNo">062</span>  }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span>  @Override<a name="line.65"></a>
+<span class="sourceLineNo">066</span>  public String toString() {<a 
name="line.66"></a>
+<span class="sourceLineNo">067</span>    return 
CopyKeyDataBlockEncoder.class.getSimpleName();<a name="line.67"></a>
+<span class="sourceLineNo">068</span>  }<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span>  @Override<a name="line.70"></a>
+<span class="sourceLineNo">071</span>  public EncodedSeeker 
createSeeker(RawComparator&lt;byte[]&gt; comparator,<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      final boolean includesMemstoreTS) 
{<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    return new 
BufferedEncodedSeeker&lt;SeekerState&gt;(comparator) {<a name="line.73"></a>
+<span class="sourceLineNo">074</span>      @Override<a name="line.74"></a>
+<span class="sourceLineNo">075</span>      protected void decodeNext() {<a 
name="line.75"></a>
+<span class="sourceLineNo">076</span>        current.keyLength = 
currentBuffer.getInt();<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        current.valueLength = 
currentBuffer.getInt();<a name="line.77"></a>
+<span class="sourceLineNo">078</span>        current.ensureSpaceForKey();<a 
name="line.78"></a>
+<span class="sourceLineNo">079</span>        
currentBuffer.get(current.keyBuffer, 0, current.keyLength);<a 
name="line.79"></a>
+<span class="sourceLineNo">080</span>        current.valueOffset = 
currentBuffer.position();<a name="line.80"></a>
+<span class="sourceLineNo">081</span>        
ByteBufferUtils.skip(currentBuffer, current.valueLength);<a name="line.81"></a>
+<span class="sourceLineNo">082</span>        if (includesMemstoreTS) {<a 
name="line.82"></a>
+<span class="sourceLineNo">083</span>          current.memstoreTS = 
ByteBufferUtils.readVLong(currentBuffer);<a name="line.83"></a>
+<span class="sourceLineNo">084</span>        } else {<a name="line.84"></a>
+<span class="sourceLineNo">085</span>          current.memstoreTS = 0;<a 
name="line.85"></a>
+<span class="sourceLineNo">086</span>        }<a name="line.86"></a>
+<span class="sourceLineNo">087</span>        current.nextKvOffset = 
currentBuffer.position();<a name="line.87"></a>
+<span class="sourceLineNo">088</span>      }<a name="line.88"></a>
+<span class="sourceLineNo">089</span><a name="line.89"></a>
+<span class="sourceLineNo">090</span>      @Override<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      protected void decodeFirst() {<a 
name="line.91"></a>
+<span class="sourceLineNo">092</span>        
ByteBufferUtils.skip(currentBuffer, Bytes.SIZEOF_INT);<a name="line.92"></a>
+<span class="sourceLineNo">093</span>        current.lastCommonPrefix = 0;<a 
name="line.93"></a>
+<span class="sourceLineNo">094</span>        decodeNext();<a 
name="line.94"></a>
+<span class="sourceLineNo">095</span>      }<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    };<a name="line.96"></a>
+<span class="sourceLineNo">097</span>  }<a name="line.97"></a>
+<span class="sourceLineNo">098</span>}<a name="line.98"></a>
 
 
 

Reply via email to