Search in sources :

Example 6 with IteratorTestOutput

use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.

the class MultipleHasTopCalls method test.

@Override
public IteratorTestOutput test(IteratorTestInput testInput) {
    final SortedKeyValueIterator<Key, Value> skvi = IteratorTestUtil.instantiateIterator(testInput);
    final SortedKeyValueIterator<Key, Value> source = IteratorTestUtil.createSource(testInput);
    try {
        skvi.init(source, testInput.getIteratorOptions(), new SimpleIteratorEnvironment());
        skvi.seek(testInput.getRange(), testInput.getFamilies(), testInput.isInclusive());
        return new IteratorTestOutput(consume(skvi));
    } catch (IOException e) {
        return new IteratorTestOutput(e);
    }
}
Also used : IteratorTestOutput(org.apache.accumulo.iteratortest.IteratorTestOutput) SimpleIteratorEnvironment(org.apache.accumulo.iteratortest.environments.SimpleIteratorEnvironment) Value(org.apache.accumulo.core.data.Value) IOException(java.io.IOException) Key(org.apache.accumulo.core.data.Key)

Example 7 with IteratorTestOutput

use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.

the class AgeOffFilterTest method parameters.

@Parameters
public static Object[][] parameters() {
    // Test ageoff after 30 seconds.
    NOW = System.currentTimeMillis();
    TTL = 30 * 1000;
    IteratorTestInput input = getIteratorInput();
    IteratorTestOutput output = getIteratorOutput();
    List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
    return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
Also used : IteratorTestOutput(org.apache.accumulo.iteratortest.IteratorTestOutput) IteratorTestCase(org.apache.accumulo.iteratortest.testcases.IteratorTestCase) IteratorTestInput(org.apache.accumulo.iteratortest.IteratorTestInput) Parameters(org.junit.runners.Parameterized.Parameters)

Example 8 with IteratorTestOutput

use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.

the class CfCqSliceFilterTest method parameters.

@Parameters
public static Object[][] parameters() {
    IteratorTestInput input = getIteratorInput();
    IteratorTestOutput output = getIteratorOutput();
    List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
    return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
Also used : IteratorTestOutput(org.apache.accumulo.iteratortest.IteratorTestOutput) IteratorTestCase(org.apache.accumulo.iteratortest.testcases.IteratorTestCase) IteratorTestInput(org.apache.accumulo.iteratortest.IteratorTestInput) Parameters(org.junit.runners.Parameterized.Parameters)

Example 9 with IteratorTestOutput

use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.

the class SummingCombinerTest method parameters.

@Parameters
public static Object[][] parameters() {
    IteratorTestInput input = getIteratorInput();
    IteratorTestOutput output = getIteratorOutput();
    List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
    return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
Also used : IteratorTestOutput(org.apache.accumulo.iteratortest.IteratorTestOutput) IteratorTestCase(org.apache.accumulo.iteratortest.testcases.IteratorTestCase) IteratorTestInput(org.apache.accumulo.iteratortest.IteratorTestInput) Parameters(org.junit.runners.Parameterized.Parameters)

Example 10 with IteratorTestOutput

use of org.apache.accumulo.iteratortest.IteratorTestOutput in project accumulo by apache.

the class WholeRowIteratorTest method parameters.

@Parameters
public static Object[][] parameters() {
    IteratorTestInput input = getIteratorInput();
    IteratorTestOutput output = getIteratorOutput();
    List<IteratorTestCase> tests = IteratorTestCaseFinder.findAllTestCases();
    return BaseJUnit4IteratorTest.createParameters(input, output, tests);
}
Also used : IteratorTestOutput(org.apache.accumulo.iteratortest.IteratorTestOutput) IteratorTestCase(org.apache.accumulo.iteratortest.testcases.IteratorTestCase) IteratorTestInput(org.apache.accumulo.iteratortest.IteratorTestInput) Parameters(org.junit.runners.Parameterized.Parameters)

Aggregations

IteratorTestOutput (org.apache.accumulo.iteratortest.IteratorTestOutput)10 IOException (java.io.IOException)5 Key (org.apache.accumulo.core.data.Key)5 Value (org.apache.accumulo.core.data.Value)5 IteratorTestInput (org.apache.accumulo.iteratortest.IteratorTestInput)5 SimpleIteratorEnvironment (org.apache.accumulo.iteratortest.environments.SimpleIteratorEnvironment)5 IteratorTestCase (org.apache.accumulo.iteratortest.testcases.IteratorTestCase)5 Parameters (org.junit.runners.Parameterized.Parameters)5 ByteSequence (org.apache.accumulo.core.data.ByteSequence)1 Range (org.apache.accumulo.core.data.Range)1 YieldCallback (org.apache.accumulo.core.iterators.YieldCallback)1