HBASE-27314 Addendum fix spotless errors
This commit is contained in:
parent
d21be92fd0
commit
3d39482339
|
@ -24,21 +24,17 @@ import java.io.DataInput;
|
||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
import java.io.DataOutput;
|
import java.io.DataOutput;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
import org.apache.hadoop.hbase.ByteBufferKeyOnlyKeyValue;
|
|
||||||
import org.apache.hadoop.hbase.Cell;
|
import org.apache.hadoop.hbase.Cell;
|
||||||
import org.apache.hadoop.hbase.CellComparator;
|
import org.apache.hadoop.hbase.CellComparator;
|
||||||
import org.apache.hadoop.hbase.CellUtil;
|
import org.apache.hadoop.hbase.CellUtil;
|
||||||
import org.apache.hadoop.hbase.KeyValue;
|
import org.apache.hadoop.hbase.KeyValue;
|
||||||
import org.apache.hadoop.hbase.PrivateCellUtil;
|
|
||||||
import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding;
|
import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding;
|
||||||
import org.apache.hadoop.hbase.io.encoding.IndexBlockEncoding;
|
import org.apache.hadoop.hbase.io.encoding.IndexBlockEncoding;
|
||||||
import org.apache.hadoop.hbase.nio.ByteBuff;
|
import org.apache.hadoop.hbase.nio.ByteBuff;
|
||||||
import org.apache.hadoop.hbase.regionserver.KeyValueScanner;
|
import org.apache.hadoop.hbase.regionserver.KeyValueScanner;
|
||||||
import org.apache.hadoop.hbase.util.Bytes;
|
import org.apache.hadoop.hbase.util.Bytes;
|
||||||
import org.apache.hadoop.hbase.util.ClassSize;
|
import org.apache.hadoop.hbase.util.ClassSize;
|
||||||
import org.apache.hadoop.hbase.util.ObjectIntPair;
|
|
||||||
import org.apache.yetus.audience.InterfaceAudience;
|
import org.apache.yetus.audience.InterfaceAudience;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -104,10 +100,10 @@ public class NoOpIndexBlockEncoder implements HFileIndexBlockEncoder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes this chunk into the given output stream in the root block index format. This format is
|
* Writes this chunk into the given output stream in the root block index format. This format is
|
||||||
* similar to the {@link HFile} version 1 block index format, except that we store on-disk size
|
* similar to the {@link HFile} version 1 block index format, except that we store on-disk size of
|
||||||
* of the block instead of its uncompressed size.
|
* the block instead of its uncompressed size.
|
||||||
* @param out the data output stream to write the block index to. Typically a stream writing
|
* @param out the data output stream to write the block index to. Typically a stream writing into
|
||||||
* into an {@link HFile} block. n
|
* an {@link HFile} block. n
|
||||||
*/
|
*/
|
||||||
private void writeRoot(BlockIndexChunk blockIndexChunk, DataOutput out) throws IOException {
|
private void writeRoot(BlockIndexChunk blockIndexChunk, DataOutput out) throws IOException {
|
||||||
for (int i = 0; i < blockIndexChunk.getNumEntries(); ++i) {
|
for (int i = 0; i < blockIndexChunk.getNumEntries(); ++i) {
|
||||||
|
|
|
@ -177,7 +177,8 @@ public class TestHFileWriterV3 {
|
||||||
// Comparator class name is stored in the trailer in version 3.
|
// Comparator class name is stored in the trailer in version 3.
|
||||||
CellComparator comparator = trailer.createComparator();
|
CellComparator comparator = trailer.createComparator();
|
||||||
HFileBlockIndex.BlockIndexReader dataBlockIndexReader =
|
HFileBlockIndex.BlockIndexReader dataBlockIndexReader =
|
||||||
new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator, trailer.getNumDataIndexLevels());
|
new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator,
|
||||||
|
trailer.getNumDataIndexLevels());
|
||||||
HFileBlockIndex.BlockIndexReader metaBlockIndexReader =
|
HFileBlockIndex.BlockIndexReader metaBlockIndexReader =
|
||||||
new HFileBlockIndex.ByteArrayKeyBlockIndexReader(1);
|
new HFileBlockIndex.ByteArrayKeyBlockIndexReader(1);
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,8 @@ public class TestHFileWriterV3WithDataEncoders {
|
||||||
// Comparator class name is stored in the trailer in version 3.
|
// Comparator class name is stored in the trailer in version 3.
|
||||||
CellComparator comparator = trailer.createComparator();
|
CellComparator comparator = trailer.createComparator();
|
||||||
HFileBlockIndex.BlockIndexReader dataBlockIndexReader =
|
HFileBlockIndex.BlockIndexReader dataBlockIndexReader =
|
||||||
new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator, trailer.getNumDataIndexLevels());
|
new HFileBlockIndex.CellBasedKeyBlockIndexReaderV2(comparator,
|
||||||
|
trailer.getNumDataIndexLevels());
|
||||||
HFileBlockIndex.BlockIndexReader metaBlockIndexReader =
|
HFileBlockIndex.BlockIndexReader metaBlockIndexReader =
|
||||||
new HFileBlockIndex.ByteArrayKeyBlockIndexReader(1);
|
new HFileBlockIndex.ByteArrayKeyBlockIndexReader(1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue