HBASE-19614 Use ArrayDeque as Queue instead of LinkedList in CompoundBloomFilterWriter

Signed-off-by: Apekshit Sharma <appy@apache.org>
This commit is contained in:
BELUGA BEHR 2018-02-27 11:49:30 -08:00 committed by Apekshit Sharma
parent 0fa5d69fc7
commit f01c90bc0e
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ package org.apache.hadoop.hbase.io.hfile;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.LinkedList;
import java.util.ArrayDeque;
import java.util.Queue;
import org.apache.hadoop.hbase.Cell;
@ -71,7 +71,7 @@ public class CompoundBloomFilterWriter extends CompoundBloomFilterBase
BloomFilterChunk chunk;
}
private Queue<ReadyChunk> readyChunks = new LinkedList<>();
private Queue<ReadyChunk> readyChunks = new ArrayDeque<>();
/** The first key in the current Bloom filter chunk. */
private byte[] firstKeyInChunk = null;