Search in sources :

Example 1 with QueryScanner

use of uk.gov.gchq.gaffer.hbasestore.coprocessor.scanner.QueryScanner in project Gaffer by gchq.

the class GafferCoprocessorTest method shouldDelegatePostScannerOpenToQueryScanner.

@Test
public void shouldDelegatePostScannerOpenToQueryScanner() throws IOException {
    // Given
    final ObserverContext<RegionCoprocessorEnvironment> e = mock(ObserverContext.class);
    final Scan scan = mock(Scan.class);
    final RegionScanner scanner = mock(RegionScanner.class);
    // When
    final QueryScanner queryScanner = (QueryScanner) coprocessor.postScannerOpen(e, scan, scanner);
    // Then
    assertNotNull(queryScanner);
}
Also used : RegionCoprocessorEnvironment(org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment) RegionScanner(org.apache.hadoop.hbase.regionserver.RegionScanner) Scan(org.apache.hadoop.hbase.client.Scan) QueryScanner(uk.gov.gchq.gaffer.hbasestore.coprocessor.scanner.QueryScanner) Test(org.junit.jupiter.api.Test)

Aggregations

Scan (org.apache.hadoop.hbase.client.Scan)1 RegionCoprocessorEnvironment (org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment)1 RegionScanner (org.apache.hadoop.hbase.regionserver.RegionScanner)1 Test (org.junit.jupiter.api.Test)1 QueryScanner (uk.gov.gchq.gaffer.hbasestore.coprocessor.scanner.QueryScanner)1