HBASE-19615 CompositeImmutableSegment ArrayList Instead of LinkedList

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
BELUGA BEHR 2017-12-27 09:59:38 +08:00 committed by Chia-Ping Tsai
parent 0e7fff5829
commit 0e85a880fb
1 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@ package org.apache.hadoop.hbase.regionserver;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.SortedSet;
@ -56,7 +55,7 @@ public class CompositeImmutableSegment extends ImmutableSegment {
@VisibleForTesting
@Override
public List<Segment> getAllSegments() {
return new LinkedList<>(segments);
return new ArrayList<>(segments);
}
@Override