@Before public void setUp() { resultCache = new CompleteScanResultCache(); }
public static ScanResultCache createScanResultCache(Scan scan) { if (scan.getAllowPartialResults()) { return new AllowPartialScanResultCache(); } else if (scan.getBatch() > 0) { return new BatchScanResultCache(scan.getBatch()); } else { return new CompleteScanResultCache(); } }
public static ScanResultCache createScanResultCache(Scan scan) { if (scan.getAllowPartialResults()) { return new AllowPartialScanResultCache(); } else if (scan.getBatch() > 0) { return new BatchScanResultCache(scan.getBatch()); } else { return new CompleteScanResultCache(); } }
@Before public void setUp() { resultCache = new CompleteScanResultCache(); }
public static ScanResultCache createScanResultCache(Scan scan) { if (scan.getAllowPartialResults()) { return new AllowPartialScanResultCache(); } else if (scan.getBatch() > 0) { return new BatchScanResultCache(scan.getBatch()); } else { return new CompleteScanResultCache(); } }