Search in sources :

Example 1 with StandardScanner

use of org.janusgraph.diskstorage.keycolumnvalue.scan.StandardScanner in project janusgraph by JanusGraph.

the class KeyColumnValueStoreTest method scanTestWithSimpleJob.

@Test
public void scanTestWithSimpleJob() throws Exception {
    int keys = 1000, columns = 40;
    String[][] values = KeyValueStoreUtil.generateData(keys, columns);
    // Make it only half the number of columns for every 2nd key
    for (int i = 0; i < values.length; i++) {
        if (i % 2 == 0)
            values[i] = Arrays.copyOf(values[i], columns / 2);
    }
    log.debug("Loading values: " + keys + "x" + columns);
    loadValues(values);
    clopen();
    StandardScanner scanner = new StandardScanner(manager);
    SimpleScanJobRunner runner = (ScanJob job, Configuration jobConf, String rootNSName) -> runSimpleJob(scanner, job, jobConf);
    SimpleScanJob.runBasicTests(keys, columns, runner);
}
Also used : StandardScanner(org.janusgraph.diskstorage.keycolumnvalue.scan.StandardScanner) Configuration(org.janusgraph.diskstorage.configuration.Configuration) ScanJob(org.janusgraph.diskstorage.keycolumnvalue.scan.ScanJob)

Aggregations

Configuration (org.janusgraph.diskstorage.configuration.Configuration)1 ScanJob (org.janusgraph.diskstorage.keycolumnvalue.scan.ScanJob)1 StandardScanner (org.janusgraph.diskstorage.keycolumnvalue.scan.StandardScanner)1