/[Apache-SVN]
ViewVC logotype

Revision 1302602


Jump to revision: Previous Next
Author: mbautin
Date: Mon Mar 19 19:12:19 2012 UTC (12 years, 8 months ago)
Changed paths: 23
Log Message:
HBASE-5521 [jira] Move compression/decompression to an encoder specific encoding
context

Author: Yongqiang He

Summary:
https://issues.apache.org/jira/browse/HBASE-5521

As part of working on HBASE-5313, we want to add a new columnar encoder/decoder.
It makes sense to move compression to be part of encoder/decoder:
1) a scanner for a columnar encoded block can do lazy decompression to a
specific part of a key value object
2) avoid an extra bytes copy from encoder to hblock-writer.

If there is no encoder specified for a writer, the HBlock.Writer will use a
default compression-context to do something very similar to today's code.

Test Plan: existing unit tests verified by mbautin and tedyu. And no new test
added here since this code is just a preparation for columnar encoder. Will add
testcase later in that diff.

Reviewers: dhruba, tedyu, sc, mbautin

Reviewed By: mbautin

Differential Revision: https://reviews.facebook.net/D2097

Changed paths

Path Details
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/DataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/DataBlockEncoding.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/DiffKeyDeltaEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/EncodedDataBlock.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/FastDiffDeltaEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/HFileBlockDecodingContext.java added
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/HFileBlockDefaultDecodingContext.java added
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/HFileBlockDefaultEncodingContext.java added
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/HFileBlockEncodingContext.java added
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/PrefixKeyDeltaEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/Compression.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileDataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileDataBlockEncoderImpl.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterV2.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/NoOpDataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/io/encoding/TestDataBlockEncoders.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileBlock.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileBlockCompatibility.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileDataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/DataBlockEncodingTool.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26