HBASE-19614 Use ArrayDeque as Queue instead of LinkedList in CompoundBloomFilterWriter
Signed-off-by: Apekshit Sharma <appy@apache.org>
This commit is contained in:
parent
0fa5d69fc7
commit
f01c90bc0e
|
@ -20,7 +20,7 @@ package org.apache.hadoop.hbase.io.hfile;
|
||||||
import java.io.DataInput;
|
import java.io.DataInput;
|
||||||
import java.io.DataOutput;
|
import java.io.DataOutput;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.LinkedList;
|
import java.util.ArrayDeque;
|
||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
|
|
||||||
import org.apache.hadoop.hbase.Cell;
|
import org.apache.hadoop.hbase.Cell;
|
||||||
|
@ -71,7 +71,7 @@ public class CompoundBloomFilterWriter extends CompoundBloomFilterBase
|
||||||
BloomFilterChunk chunk;
|
BloomFilterChunk chunk;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Queue<ReadyChunk> readyChunks = new LinkedList<>();
|
private Queue<ReadyChunk> readyChunks = new ArrayDeque<>();
|
||||||
|
|
||||||
/** The first key in the current Bloom filter chunk. */
|
/** The first key in the current Bloom filter chunk. */
|
||||||
private byte[] firstKeyInChunk = null;
|
private byte[] firstKeyInChunk = null;
|
||||||
|
|
Loading…
Reference in New Issue