HBASE-16303 FilterList with MUST_PASS_ONE optimization (Ram)
This commit is contained in:
parent
9c8cbd44ed
commit
6278ece8b6
|
@ -315,6 +315,7 @@ public class TestFilter {
|
||||||
verifyScan(s, expectedRows, expectedKeys);
|
verifyScan(s, expectedRows, expectedKeys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testPrefixFilterWithReverseScan() throws Exception {
|
public void testPrefixFilterWithReverseScan() throws Exception {
|
||||||
// Grab rows from group one (half of total)
|
// Grab rows from group one (half of total)
|
||||||
long expectedRows = this.numRows / 2;
|
long expectedRows = this.numRows / 2;
|
||||||
|
@ -412,6 +413,7 @@ public class TestFilter {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testPageFilterWithReverseScan() throws Exception {
|
public void testPageFilterWithReverseScan() throws Exception {
|
||||||
// KVs in first 6 rows
|
// KVs in first 6 rows
|
||||||
KeyValue[] expectedKVs = {
|
KeyValue[] expectedKVs = {
|
||||||
|
@ -491,6 +493,7 @@ public class TestFilter {
|
||||||
verifyScan(s, expectedRows, expectedKeys);
|
verifyScan(s, expectedRows, expectedKeys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testWhileMatchFilterWithFilterRowWithReverseScan()
|
public void testWhileMatchFilterWithFilterRowWithReverseScan()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
final int pageSize = 4;
|
final int pageSize = 4;
|
||||||
|
@ -520,6 +523,7 @@ public class TestFilter {
|
||||||
pageSize, scannerCounter);
|
pageSize, scannerCounter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testWhileMatchFilterWithFilterRowKeyWithReverseScan()
|
public void testWhileMatchFilterWithFilterRowKeyWithReverseScan()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
Scan s = new Scan();
|
Scan s = new Scan();
|
||||||
|
@ -1767,6 +1771,7 @@ public class TestFilter {
|
||||||
kvs.length, idx);
|
kvs.length, idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testColumnPaginationFilterColumnOffset() throws Exception {
|
public void testColumnPaginationFilterColumnOffset() throws Exception {
|
||||||
KeyValue [] expectedKVs = {
|
KeyValue [] expectedKVs = {
|
||||||
// testRowOne-0
|
// testRowOne-0
|
||||||
|
|
|
@ -261,6 +261,7 @@ public class TestFilterList {
|
||||||
* we expect to get the same result as the 'prefix' only result.
|
* we expect to get the same result as the 'prefix' only result.
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testFilterListTwoFiltersMustPassOne() throws Exception {
|
public void testFilterListTwoFiltersMustPassOne() throws Exception {
|
||||||
byte[] r1 = Bytes.toBytes("Row1");
|
byte[] r1 = Bytes.toBytes("Row1");
|
||||||
byte[] r11 = Bytes.toBytes("Row11");
|
byte[] r11 = Bytes.toBytes("Row11");
|
||||||
|
@ -293,6 +294,7 @@ public class TestFilterList {
|
||||||
* we expect to get the same result as the inclusive stop result.
|
* we expect to get the same result as the inclusive stop result.
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testFilterListWithInclusiveStopFilteMustPassOne() throws Exception {
|
public void testFilterListWithInclusiveStopFilteMustPassOne() throws Exception {
|
||||||
byte[] r1 = Bytes.toBytes("Row1");
|
byte[] r1 = Bytes.toBytes("Row1");
|
||||||
byte[] r11 = Bytes.toBytes("Row11");
|
byte[] r11 = Bytes.toBytes("Row11");
|
||||||
|
@ -352,6 +354,7 @@ public class TestFilterList {
|
||||||
* Test filterKeyValue logic.
|
* Test filterKeyValue logic.
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testFilterKeyValue() throws Exception {
|
public void testFilterKeyValue() throws Exception {
|
||||||
Filter includeFilter = new FilterBase() {
|
Filter includeFilter = new FilterBase() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue