diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileContextBuilder.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileContextBuilder.java index 0394f12144e..f2131951000 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileContextBuilder.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileContextBuilder.java @@ -84,7 +84,6 @@ public class HFileContextBuilder { this.columnFamily = hfc.getColumnFamily(); this.tableName = hfc.getTableName(); this.cellComparator = hfc.getCellComparator(); - this.indexBlockEncoding = hfc.getIndexBlockEncoding(); } public HFileContextBuilder withHBaseCheckSum(boolean useHBaseCheckSum) { diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java index 0d5190d16b3..bf152b47e2a 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java @@ -70,7 +70,6 @@ import org.apache.hadoop.hbase.io.ByteBuffAllocator; import org.apache.hadoop.hbase.io.compress.Compression; import org.apache.hadoop.hbase.io.encoding.DataBlockEncoder; import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding; -import org.apache.hadoop.hbase.io.encoding.IndexBlockEncoding; import org.apache.hadoop.hbase.io.hfile.HFile.Reader; import org.apache.hadoop.hbase.io.hfile.HFile.Writer; import org.apache.hadoop.hbase.io.hfile.ReaderContext.ReaderType; @@ -1071,11 +1070,4 @@ public class TestHFile { alloc.clean(); } - @Test - public void testHFileContextBuilderWithIndexEncoding() throws IOException { - HFileContext context = - new HFileContextBuilder().withIndexBlockEncoding(IndexBlockEncoding.PREFIX_TREE).build(); - HFileContext newContext = new HFileContextBuilder(context).build(); - assertTrue(newContext.getIndexBlockEncoding() == IndexBlockEncoding.PREFIX_TREE); - } }