public class TestUserScanQueryMatcher extends AbstractTestScanQueryMatcher
Modifier and Type | Class and Description |
---|---|
private static class |
TestUserScanQueryMatcher.AlwaysIncludeAndSeekNextRowFilter |
private static class |
TestUserScanQueryMatcher.AlwaysIncludeFilter |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TestUserScanQueryMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
testMatch_ExpiredExplicit()
Verify that
ScanQueryMatcher only skips expired KeyValue instances and does not exit
early from the row (skipping later non-expired KeyValues). |
void |
testMatch_ExpiredWildcard()
Verify that
ScanQueryMatcher only skips expired KeyValue instances and does not exit
early from the row (skipping later non-expired KeyValues). |
void |
testMatch_Wildcard() |
void |
testMatchExplicitColumns() |
void |
testMatchWhenFilterReturnsIncludeAndSeekNextRow() |
void |
testMergeFilterResponseCase1()
Here is the unit test for UserScanQueryMatcher#mergeFilterResponse, when the number of cells
exceed the versions requested in scan, we should return SEEK_NEXT_COL, but if current match
code is INCLUDE_AND_SEEK_NEXT_ROW, we can optimize to choose the max step between SEEK_NEXT_COL
and INCLUDE_AND_SEEK_NEXT_ROW, which is SEEK_NEXT_ROW.
|
void |
testMergeFilterResponseCase2()
Here is the unit test for UserScanQueryMatcher#mergeFilterResponse: the match code may be
changed to SEEK_NEXT_COL or INCLUDE_AND_SEEK_NEXT_COL after merging with filterResponse, even
if the passed match code is neither SEEK_NEXT_COL nor INCLUDE_AND_SEEK_NEXT_COL.
|
void |
testNeverIncludeFakeCell()
This is a cryptic test.
|
setUp
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestUserScanQueryMatcher()
public void testNeverIncludeFakeCell() throws IOException
HConstants.OLDEST_TIMESTAMP
. See HBASE-16074 for background.IOException
public void testMatchExplicitColumns() throws IOException
IOException
public void testMatch_Wildcard() throws IOException
IOException
public void testMatch_ExpiredExplicit() throws IOException
ScanQueryMatcher
only skips expired KeyValue instances and does not exit
early from the row (skipping later non-expired KeyValues). This version mimics a Get with
explicitly specified column qualifiers.IOException
public void testMatch_ExpiredWildcard() throws IOException
ScanQueryMatcher
only skips expired KeyValue instances and does not exit
early from the row (skipping later non-expired KeyValues). This version mimics a Get with
wildcard-inferred column qualifiers.IOException
public void testMatchWhenFilterReturnsIncludeAndSeekNextRow() throws IOException
IOException
public void testMergeFilterResponseCase1() throws IOException
IOException
public void testMergeFilterResponseCase2() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.