You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2017/11/07 19:13:50 UTC

hbase git commit: HBASE-19182 Add deprecation in branch-1 for hbase-prefix-tree so some heads up it removed in hbase2

Repository: hbase
Updated Branches:
  refs/heads/branch-1 ca68d7786 -> 045c02d17


HBASE-19182 Add deprecation in branch-1 for hbase-prefix-tree so some heads up it removed in hbase2


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/045c02d1
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/045c02d1
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/045c02d1

Branch: refs/heads/branch-1
Commit: 045c02d178d86250a9f36ae4e705d6f75a065d3f
Parents: ca68d77
Author: Michael Stack <st...@apache.org>
Authored: Sat Nov 4 10:37:10 2017 -0700
Committer: Michael Stack <st...@apache.org>
Committed: Tue Nov 7 11:13:37 2017 -0800

----------------------------------------------------------------------
 hbase-prefix-tree/pom.xml                                     | 2 +-
 .../apache/hadoop/hbase/codec/prefixtree/PrefixTreeCodec.java | 3 +++
 src/main/asciidoc/_chapters/compression.adoc                  | 7 +++++--
 3 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/045c02d1/hbase-prefix-tree/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-prefix-tree/pom.xml b/hbase-prefix-tree/pom.xml
index 9a5649b..5839079 100644
--- a/hbase-prefix-tree/pom.xml
+++ b/hbase-prefix-tree/pom.xml
@@ -29,7 +29,7 @@
 
   <artifactId>hbase-prefix-tree</artifactId>
   <name>Apache HBase - Prefix Tree</name>
-  <description>Prefix Tree Data Block Encoder</description>
+  <description>Prefix Tree Data Block Encoder; DEPRECATED! Removed in hbase-2.0.0</description>
 
   <build>
     <plugins>

http://git-wip-us.apache.org/repos/asf/hbase/blob/045c02d1/hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/PrefixTreeCodec.java
----------------------------------------------------------------------
diff --git a/hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/PrefixTreeCodec.java b/hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/PrefixTreeCodec.java
index a73232f..857c237 100644
--- a/hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/PrefixTreeCodec.java
+++ b/hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/PrefixTreeCodec.java
@@ -57,7 +57,10 @@ import org.apache.hadoop.io.WritableUtils;
  * {@link PrefixTreeEncoder}, and decoding is delegated to instances of
  * {@link org.apache.hadoop.hbase.codec.prefixtree.scanner.CellSearcher}. Encoder and decoder instances are
  * created and recycled by static PtEncoderFactory and PtDecoderFactory.
+ * @deprecated Since 1.2.7. Will be removed in 2.0.0. Write the dev list if you would like to take on the
+ * maintainence of this facility.
  */
+@Deprecated
 @InterfaceAudience.Private
 public class PrefixTreeCodec implements DataBlockEncoder{
 

http://git-wip-us.apache.org/repos/asf/hbase/blob/045c02d1/src/main/asciidoc/_chapters/compression.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/_chapters/compression.adoc b/src/main/asciidoc/_chapters/compression.adoc
index 42d4de5..78fc6a2 100644
--- a/src/main/asciidoc/_chapters/compression.adoc
+++ b/src/main/asciidoc/_chapters/compression.adoc
@@ -115,13 +115,16 @@ The data format is nearly identical to Diff encoding, so there is not an image t
 Prefix Tree::
   Prefix tree encoding was introduced as an experimental feature in HBase 0.96.
   It provides similar memory savings to the Prefix, Diff, and Fast Diff encoder, but provides faster random access at a cost of slower encoding speed.
-+
+
 Prefix Tree may be appropriate for applications that have high block cache hit ratios. It introduces new 'tree' fields for the row and column.
 The row tree field contains a list of offsets/references corresponding to the cells in that row. This allows for a good deal of compression.
 For more details about Prefix Tree encoding, see link:https://issues.apache.org/jira/browse/HBASE-4676[HBASE-4676].
-+
+
 It is difficult to graphically illustrate a prefix tree, so no image is included. See the Wikipedia article for link:http://en.wikipedia.org/wiki/Trie[Trie] for more general information about this data structure.
 
+Prefix Tree will be removed in hbase-2.0.0. It is a sweet feature but has seen little uptake and is not actively maintained.
+Come and write the dev list if you are interesting in carrying-on this encoding.
+
 === Which Compressor or Data Block Encoder To Use
 
 The compression or codec type to use depends on the characteristics of your data. Choosing the wrong type could cause your data to take more space rather than less, and can have performance implications.