HBASE-18303 Clean up @Parameter boilerplate
This commit is contained in:
parent
ea8fa59a4c
commit
0b26ccdaa1
@ -26,6 +26,7 @@ import java.util.List;
|
|||||||
import org.apache.hadoop.hbase.ByteBufferKeyValue;
|
import org.apache.hadoop.hbase.ByteBufferKeyValue;
|
||||||
|
|
||||||
import org.apache.hadoop.hbase.CellUtil;
|
import org.apache.hadoop.hbase.CellUtil;
|
||||||
|
import org.apache.hadoop.hbase.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.KeyValue;
|
import org.apache.hadoop.hbase.KeyValue;
|
||||||
import org.apache.hadoop.hbase.KeyValue.Type;
|
import org.apache.hadoop.hbase.KeyValue.Type;
|
||||||
import org.apache.hadoop.hbase.KeyValueUtil;
|
import org.apache.hadoop.hbase.KeyValueUtil;
|
||||||
@ -44,20 +45,12 @@ import org.junit.runners.Parameterized.Parameters;
|
|||||||
@RunWith(Parameterized.class)
|
@RunWith(Parameterized.class)
|
||||||
public class TestKeyOnlyFilter {
|
public class TestKeyOnlyFilter {
|
||||||
|
|
||||||
private final boolean lenAsVal;
|
@Parameterized.Parameter
|
||||||
|
public boolean lenAsVal;
|
||||||
|
|
||||||
@Parameters
|
@Parameters
|
||||||
public static Collection<Object[]> parameters() {
|
public static Collection<Object[]> parameters() {
|
||||||
List<Object[]> paramList = new ArrayList<>(2);
|
return HBaseCommonTestingUtility.BOOLEAN_PARAMETERIZED;
|
||||||
{
|
|
||||||
paramList.add(new Object[] { false });
|
|
||||||
paramList.add(new Object[] { true });
|
|
||||||
}
|
|
||||||
return paramList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TestKeyOnlyFilter(boolean lenAsVal) {
|
|
||||||
this.lenAsVal = lenAsVal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -20,6 +20,8 @@ package org.apache.hadoop.hbase;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
@ -28,6 +30,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
|
import org.apache.hadoop.hbase.io.compress.Compression;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Common helpers for testing HBase that do not depend on specific server/etc. things.
|
* Common helpers for testing HBase that do not depend on specific server/etc. things.
|
||||||
@ -37,6 +40,25 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
|||||||
public class HBaseCommonTestingUtility {
|
public class HBaseCommonTestingUtility {
|
||||||
protected static final Log LOG = LogFactory.getLog(HBaseCommonTestingUtility.class);
|
protected static final Log LOG = LogFactory.getLog(HBaseCommonTestingUtility.class);
|
||||||
|
|
||||||
|
/** Compression algorithms to use in parameterized JUnit 4 tests */
|
||||||
|
public static final List<Object[]> COMPRESSION_ALGORITHMS_PARAMETERIZED =
|
||||||
|
Arrays.asList(new Object[][] {
|
||||||
|
{ Compression.Algorithm.NONE },
|
||||||
|
{ Compression.Algorithm.GZ }
|
||||||
|
});
|
||||||
|
|
||||||
|
/** This is for unit tests parameterized with a two booleans. */
|
||||||
|
public static final List<Object[]> BOOLEAN_PARAMETERIZED =
|
||||||
|
Arrays.asList(new Object[][] {
|
||||||
|
{false},
|
||||||
|
{true}
|
||||||
|
});
|
||||||
|
|
||||||
|
/** Compression algorithms to use in testing */
|
||||||
|
public static final Compression.Algorithm[] COMPRESSION_ALGORITHMS = {
|
||||||
|
Compression.Algorithm.NONE, Compression.Algorithm.GZ
|
||||||
|
};
|
||||||
|
|
||||||
protected Configuration conf;
|
protected Configuration conf;
|
||||||
|
|
||||||
public HBaseCommonTestingUtility() {
|
public HBaseCommonTestingUtility() {
|
||||||
|
@ -47,17 +47,15 @@ import org.junit.runners.Parameterized.Parameters;
|
|||||||
@Category({MiscTests.class, SmallTests.class})
|
@Category({MiscTests.class, SmallTests.class})
|
||||||
public class TestStruct {
|
public class TestStruct {
|
||||||
|
|
||||||
private Struct generic;
|
@Parameterized.Parameter(value = 0)
|
||||||
@SuppressWarnings("rawtypes")
|
public Struct generic;
|
||||||
private DataType specialized;
|
|
||||||
private Object[][] constructorArgs;
|
|
||||||
|
|
||||||
public TestStruct(Struct generic, @SuppressWarnings("rawtypes") DataType specialized,
|
@SuppressWarnings("rawtypes")
|
||||||
Object[][] constructorArgs) {
|
@Parameterized.Parameter(value = 1)
|
||||||
this.generic = generic;
|
public DataType specialized;
|
||||||
this.specialized = specialized;
|
|
||||||
this.constructorArgs = constructorArgs;
|
@Parameterized.Parameter(value = 2)
|
||||||
}
|
public Object[][] constructorArgs;
|
||||||
|
|
||||||
@Parameters
|
@Parameters
|
||||||
public static Collection<Object[]> params() {
|
public static Collection<Object[]> params() {
|
||||||
|
@ -44,6 +44,7 @@ import java.util.concurrent.Executors;
|
|||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import org.apache.hadoop.hbase.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HConstants;
|
import org.apache.hadoop.hbase.HConstants;
|
||||||
import org.apache.hadoop.hbase.testclassification.MiscTests;
|
import org.apache.hadoop.hbase.testclassification.MiscTests;
|
||||||
import org.apache.hadoop.hbase.testclassification.SmallTests;
|
import org.apache.hadoop.hbase.testclassification.SmallTests;
|
||||||
@ -69,12 +70,7 @@ public class TestByteBufferUtils {
|
|||||||
|
|
||||||
@Parameterized.Parameters
|
@Parameterized.Parameters
|
||||||
public static Collection<Object[]> parameters() {
|
public static Collection<Object[]> parameters() {
|
||||||
List<Object[]> paramList = new ArrayList<>(2);
|
return HBaseCommonTestingUtility.BOOLEAN_PARAMETERIZED;
|
||||||
{
|
|
||||||
paramList.add(new Object[] { false });
|
|
||||||
paramList.add(new Object[] { true });
|
|
||||||
}
|
|
||||||
return paramList;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setUnsafe(String fieldName, boolean value) throws Exception {
|
private static void setUnsafe(String fieldName, boolean value) throws Exception {
|
||||||
|
@ -31,12 +31,15 @@ import org.apache.hadoop.hbase.codec.prefixtree.row.TestRowData;
|
|||||||
import org.apache.hadoop.hbase.codec.prefixtree.row.data.TestRowDataRandomKeyValuesWithTags;
|
import org.apache.hadoop.hbase.codec.prefixtree.row.data.TestRowDataRandomKeyValuesWithTags;
|
||||||
import org.apache.hadoop.hbase.codec.prefixtree.row.data.TestRowDataTrivialWithTags;
|
import org.apache.hadoop.hbase.codec.prefixtree.row.data.TestRowDataTrivialWithTags;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
import org.junit.Assume;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.experimental.categories.Category;
|
import org.junit.experimental.categories.Category;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Parameterized;
|
import org.junit.runners.Parameterized;
|
||||||
import org.junit.runners.Parameterized.Parameters;
|
import org.junit.runners.Parameterized.Parameters;
|
||||||
|
|
||||||
|
import static org.junit.Assume.assumeFalse;
|
||||||
|
|
||||||
@Category({MiscTests.class, SmallTests.class})
|
@Category({MiscTests.class, SmallTests.class})
|
||||||
@RunWith(Parameterized.class)
|
@RunWith(Parameterized.class)
|
||||||
public class TestKeyValueTool {
|
public class TestKeyValueTool {
|
||||||
@ -46,17 +49,14 @@ public class TestKeyValueTool {
|
|||||||
return TestRowData.InMemory.getAllAsObjectArray();
|
return TestRowData.InMemory.getAllAsObjectArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private TestRowData rows;
|
@Parameterized.Parameter
|
||||||
|
public TestRowData rows;
|
||||||
public TestKeyValueTool(TestRowData testRows) {
|
|
||||||
this.rows = testRows;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRoundTripToBytes() {
|
public void testRoundTripToBytes() {
|
||||||
if(rows instanceof TestRowDataTrivialWithTags || rows instanceof TestRowDataRandomKeyValuesWithTags) {
|
assumeFalse(rows instanceof TestRowDataTrivialWithTags);
|
||||||
return;
|
assumeFalse(rows instanceof TestRowDataRandomKeyValuesWithTags);
|
||||||
}
|
|
||||||
List<KeyValue> kvs = rows.getInputs();
|
List<KeyValue> kvs = rows.getInputs();
|
||||||
ByteBuffer bb = KeyValueTestUtil.toByteBufferAndRewind(kvs, false);
|
ByteBuffer bb = KeyValueTestUtil.toByteBufferAndRewind(kvs, false);
|
||||||
List<KeyValue> roundTrippedKvs = KeyValueTestUtil.rewindThenToList(bb, false, false);
|
List<KeyValue> roundTrippedKvs = KeyValueTestUtil.rewindThenToList(bb, false, false);
|
||||||
|
@ -55,11 +55,7 @@ public class TestRowEncoder {
|
|||||||
|
|
||||||
@Parameters
|
@Parameters
|
||||||
public static Collection<Object[]> parameters() {
|
public static Collection<Object[]> parameters() {
|
||||||
List<Object[]> parameters = Lists.newArrayList();
|
return TestRowData.InMemory.getAllAsObjectArray();
|
||||||
for (TestRowData testRows : TestRowData.InMemory.getAll()) {
|
|
||||||
parameters.add(new Object[] { testRows });
|
|
||||||
}
|
|
||||||
return parameters;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected TestRowData rows;
|
protected TestRowData rows;
|
||||||
|
@ -82,10 +82,7 @@ public class TestMultiRowResource {
|
|||||||
|
|
||||||
@Parameterized.Parameters
|
@Parameterized.Parameters
|
||||||
public static Collection<Object[]> data() {
|
public static Collection<Object[]> data() {
|
||||||
List<Object[]> params = new ArrayList<>(2);
|
return HBaseCommonTestingUtility.BOOLEAN_PARAMETERIZED;
|
||||||
params.add(new Object[] {Boolean.TRUE});
|
|
||||||
params.add(new Object[] {Boolean.FALSE});
|
|
||||||
return params;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public TestMultiRowResource(Boolean csrf) {
|
public TestMultiRowResource(Boolean csrf) {
|
||||||
|
@ -216,26 +216,8 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
|||||||
/** Filesystem URI used for map-reduce mini-cluster setup */
|
/** Filesystem URI used for map-reduce mini-cluster setup */
|
||||||
private static String FS_URI;
|
private static String FS_URI;
|
||||||
|
|
||||||
/** Compression algorithms to use in parameterized JUnit 4 tests */
|
|
||||||
public static final List<Object[]> COMPRESSION_ALGORITHMS_PARAMETERIZED =
|
|
||||||
Arrays.asList(new Object[][] {
|
|
||||||
{ Compression.Algorithm.NONE },
|
|
||||||
{ Compression.Algorithm.GZ }
|
|
||||||
});
|
|
||||||
|
|
||||||
/** This is for unit tests parameterized with a two booleans. */
|
|
||||||
public static final List<Object[]> BOOLEAN_PARAMETERIZED =
|
|
||||||
Arrays.asList(new Object[][] {
|
|
||||||
{false},
|
|
||||||
{true}
|
|
||||||
});
|
|
||||||
|
|
||||||
/** This is for unit tests parameterized with a single boolean. */
|
/** This is for unit tests parameterized with a single boolean. */
|
||||||
public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();
|
public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();
|
||||||
/** Compression algorithms to use in testing */
|
|
||||||
public static final Compression.Algorithm[] COMPRESSION_ALGORITHMS ={
|
|
||||||
Compression.Algorithm.NONE, Compression.Algorithm.GZ
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks to see if a specific port is available.
|
* Checks to see if a specific port is available.
|
||||||
@ -278,7 +260,7 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
|
|||||||
private static List<Object[]> bloomAndCompressionCombinations() {
|
private static List<Object[]> bloomAndCompressionCombinations() {
|
||||||
List<Object[]> configurations = new ArrayList<>();
|
List<Object[]> configurations = new ArrayList<>();
|
||||||
for (Compression.Algorithm comprAlgo :
|
for (Compression.Algorithm comprAlgo :
|
||||||
HBaseTestingUtility.COMPRESSION_ALGORITHMS) {
|
HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {
|
||||||
for (BloomType bloomType : BloomType.values()) {
|
for (BloomType bloomType : BloomType.values()) {
|
||||||
configurations.add(new Object[] { comprAlgo, bloomType });
|
configurations.add(new Object[] { comprAlgo, bloomType });
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ import java.util.List;
|
|||||||
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.HBaseTestingUtility;
|
import org.apache.hadoop.hbase.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HConstants;
|
import org.apache.hadoop.hbase.HConstants;
|
||||||
import org.apache.hadoop.hbase.KeyValue;
|
import org.apache.hadoop.hbase.KeyValue;
|
||||||
import org.apache.hadoop.hbase.io.compress.Compression;
|
import org.apache.hadoop.hbase.io.compress.Compression;
|
||||||
@ -51,7 +51,7 @@ public class TestSeekToBlockWithEncoders {
|
|||||||
|
|
||||||
@Parameters
|
@Parameters
|
||||||
public static Collection<Object[]> parameters() {
|
public static Collection<Object[]> parameters() {
|
||||||
return HBaseTestingUtility.BOOLEAN_PARAMETERIZED;
|
return HBaseCommonTestingUtility.BOOLEAN_PARAMETERIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TestSeekToBlockWithEncoders(boolean useOffheapData) {
|
public TestSeekToBlockWithEncoders(boolean useOffheapData) {
|
||||||
|
@ -41,6 +41,7 @@ import org.apache.hadoop.fs.FileSystem;
|
|||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
import org.apache.hadoop.hbase.ArrayBackedTag;
|
import org.apache.hadoop.hbase.ArrayBackedTag;
|
||||||
import org.apache.hadoop.hbase.CellComparator;
|
import org.apache.hadoop.hbase.CellComparator;
|
||||||
|
import org.apache.hadoop.hbase.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HColumnDescriptor;
|
import org.apache.hadoop.hbase.HColumnDescriptor;
|
||||||
import org.apache.hadoop.hbase.HConstants;
|
import org.apache.hadoop.hbase.HConstants;
|
||||||
@ -179,7 +180,7 @@ public class TestCacheOnWrite {
|
|||||||
List<Object[]> params = new ArrayList<>();
|
List<Object[]> params = new ArrayList<>();
|
||||||
for (BlockCache blockCache : getBlockCaches()) {
|
for (BlockCache blockCache : getBlockCaches()) {
|
||||||
for (CacheOnWriteType cowType : CacheOnWriteType.values()) {
|
for (CacheOnWriteType cowType : CacheOnWriteType.values()) {
|
||||||
for (Compression.Algorithm compress : HBaseTestingUtility.COMPRESSION_ALGORITHMS) {
|
for (Compression.Algorithm compress : HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {
|
||||||
for (boolean cacheCompressedData : new boolean[] { false, true }) {
|
for (boolean cacheCompressedData : new boolean[] { false, true }) {
|
||||||
params.add(new Object[] { cowType, compress, cacheCompressedData, blockCache });
|
params.add(new Object[] { cowType, compress, cacheCompressedData, blockCache });
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,7 @@ import org.apache.hadoop.hbase.ArrayBackedTag;
|
|||||||
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.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HConstants;
|
import org.apache.hadoop.hbase.HConstants;
|
||||||
import org.apache.hadoop.hbase.KeyValue;
|
import org.apache.hadoop.hbase.KeyValue;
|
||||||
@ -440,7 +441,7 @@ public class TestHFile {
|
|||||||
public void testNullMetaBlocks() throws Exception {
|
public void testNullMetaBlocks() throws Exception {
|
||||||
if (cacheConf == null) cacheConf = new CacheConfig(conf);
|
if (cacheConf == null) cacheConf = new CacheConfig(conf);
|
||||||
for (Compression.Algorithm compressAlgo :
|
for (Compression.Algorithm compressAlgo :
|
||||||
HBaseTestingUtility.COMPRESSION_ALGORITHMS) {
|
HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {
|
||||||
Path mFile = new Path(ROOT_DIR, "nometa_" + compressAlgo + ".hfile");
|
Path mFile = new Path(ROOT_DIR, "nometa_" + compressAlgo + ".hfile");
|
||||||
FSDataOutputStream fout = createFSOutput(mFile);
|
FSDataOutputStream fout = createFSOutput(mFile);
|
||||||
HFileContext meta = new HFileContextBuilder().withCompression(compressAlgo)
|
HFileContext meta = new HFileContextBuilder().withCompression(compressAlgo)
|
||||||
|
@ -44,6 +44,7 @@ import org.apache.hadoop.fs.FileSystem;
|
|||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
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.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
||||||
import org.apache.hadoop.hbase.KeyValue;
|
import org.apache.hadoop.hbase.KeyValue;
|
||||||
import org.apache.hadoop.hbase.KeyValueUtil;
|
import org.apache.hadoop.hbase.KeyValueUtil;
|
||||||
@ -73,7 +74,7 @@ public class TestHFileBlockIndex {
|
|||||||
|
|
||||||
@Parameters
|
@Parameters
|
||||||
public static Collection<Object[]> compressionAlgorithms() {
|
public static Collection<Object[]> compressionAlgorithms() {
|
||||||
return HBaseTestingUtility.COMPRESSION_ALGORITHMS_PARAMETERIZED;
|
return HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS_PARAMETERIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TestHFileBlockIndex(Compression.Algorithm compr) {
|
public TestHFileBlockIndex(Compression.Algorithm compr) {
|
||||||
|
@ -39,6 +39,7 @@ import org.apache.hadoop.fs.FileSystem;
|
|||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
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.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HConstants;
|
import org.apache.hadoop.hbase.HConstants;
|
||||||
import org.apache.hadoop.hbase.KeyValue;
|
import org.apache.hadoop.hbase.KeyValue;
|
||||||
@ -81,7 +82,7 @@ public class TestHFileWriterV3 {
|
|||||||
}
|
}
|
||||||
@Parameters
|
@Parameters
|
||||||
public static Collection<Object[]> parameters() {
|
public static Collection<Object[]> parameters() {
|
||||||
return HBaseTestingUtility.BOOLEAN_PARAMETERIZED;
|
return HBaseCommonTestingUtility.BOOLEAN_PARAMETERIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
@ -31,6 +31,7 @@ import java.util.NavigableSet;
|
|||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
import org.apache.hadoop.hbase.Cell;
|
import org.apache.hadoop.hbase.Cell;
|
||||||
import org.apache.hadoop.hbase.CellUtil;
|
import org.apache.hadoop.hbase.CellUtil;
|
||||||
|
import org.apache.hadoop.hbase.HBaseCommonTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
||||||
import org.apache.hadoop.hbase.HColumnDescriptor;
|
import org.apache.hadoop.hbase.HColumnDescriptor;
|
||||||
import org.apache.hadoop.hbase.HConstants;
|
import org.apache.hadoop.hbase.HConstants;
|
||||||
@ -89,7 +90,7 @@ public class TestCoprocessorScanPolicy {
|
|||||||
|
|
||||||
@Parameters
|
@Parameters
|
||||||
public static Collection<Object[]> parameters() {
|
public static Collection<Object[]> parameters() {
|
||||||
return HBaseTestingUtility.BOOLEAN_PARAMETERIZED;
|
return HBaseCommonTestingUtility.BOOLEAN_PARAMETERIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TestCoprocessorScanPolicy(boolean parallelSeekEnable) {
|
public TestCoprocessorScanPolicy(boolean parallelSeekEnable) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user