HBASE-9695 Some never used local variables cleanup
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1535112 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
be060b4077
commit
f7ed0f18f5
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.hadoop.hbase.filter;
|
package org.apache.hadoop.hbase.filter;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertNull;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
@ -70,8 +71,11 @@ public class TestComparatorSerialization {
|
||||||
ProtobufUtil.toComparator(ProtobufUtil.toComparator(regexStringComparator))));
|
ProtobufUtil.toComparator(ProtobufUtil.toComparator(regexStringComparator))));
|
||||||
|
|
||||||
// test with specifying flags
|
// test with specifying flags
|
||||||
regexStringComparator =
|
try {
|
||||||
new RegexStringComparator("regex", Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
|
new RegexStringComparator("regex", Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
|
||||||
|
} catch (Throwable t) {
|
||||||
|
assertNull("Exception occured while created the RegexStringComparator object", t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -291,10 +291,6 @@ public class TestQueryMatcher extends HBaseTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testMatch_PartialRangeDropDeletes() throws Exception {
|
public void testMatch_PartialRangeDropDeletes() throws Exception {
|
||||||
long now = EnvironmentEdgeManager.currentTimeMillis();
|
|
||||||
ScanInfo scanInfo = new ScanInfo(fam2, 0, 1, ttl, false, 0, rowComparator);
|
|
||||||
NavigableSet<byte[]> cols = get.getFamilyMap().get(fam2);
|
|
||||||
|
|
||||||
// Some ranges.
|
// Some ranges.
|
||||||
testDropDeletes(
|
testDropDeletes(
|
||||||
row2, row3, new byte[][] { row1, row2, row2, row3 }, INCLUDE, SKIP, SKIP, INCLUDE);
|
row2, row3, new byte[][] { row1, row2, row2, row3 }, INCLUDE, SKIP, SKIP, INCLUDE);
|
||||||
|
|
|
@ -453,10 +453,6 @@ public class TestTags {
|
||||||
((List<Cell>) updatedCells).add(newKV);
|
((List<Cell>) updatedCells).add(newKV);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add new set of familymap to the put. Can we update the existing kvs
|
|
||||||
// itself
|
|
||||||
NavigableMap<byte[], List<? extends Cell>> familyMap = new TreeMap<byte[], List<? extends Cell>>(
|
|
||||||
Bytes.BYTES_COMPARATOR);
|
|
||||||
put.getFamilyCellMap().remove(cf);
|
put.getFamilyCellMap().remove(cf);
|
||||||
// Update the family map
|
// Update the family map
|
||||||
put.getFamilyCellMap().put(cf, updatedCells);
|
put.getFamilyCellMap().put(cf, updatedCells);
|
||||||
|
|
Loading…
Reference in New Issue