Search in sources :

Example 1 with AncestorEquality

use of datawave.query.function.AncestorEquality in project datawave by NationalSecurityAgency.

the class AncestorQueryIterator method validateOptions.

@Override
public boolean validateOptions(Map<String, String> options) {
    boolean success = super.validateOptions(options);
    super.equality = new AncestorEquality();
    // we need the hit list arithmetic in any case (see getJexlEvaluation below)
    super.arithmetic = new HitListArithmetic(false);
    return success;
}
Also used : AncestorEquality(datawave.query.function.AncestorEquality) HitListArithmetic(datawave.query.jexl.HitListArithmetic)

Example 2 with AncestorEquality

use of datawave.query.function.AncestorEquality in project datawave by NationalSecurityAgency.

the class AncestorChildExpansionIteratorTest method setup.

@Before
public void setup() {
    baseValues = new ArrayList<>();
    equality = new AncestorEquality();
    baseIterator = new IteratorToSortedKeyValueIterator(baseValues.iterator());
    iterator = new AncestorChildExpansionIterator(baseIterator, children, equality);
}
Also used : IteratorToSortedKeyValueIterator(datawave.query.util.IteratorToSortedKeyValueIterator) AncestorEquality(datawave.query.function.AncestorEquality) Before(org.junit.Before)

Aggregations

AncestorEquality (datawave.query.function.AncestorEquality)2 HitListArithmetic (datawave.query.jexl.HitListArithmetic)1 IteratorToSortedKeyValueIterator (datawave.query.util.IteratorToSortedKeyValueIterator)1 Before (org.junit.Before)1