Search in sources :

Example 1 with KeyCriterion

use of org.apache.ignite.internal.metastorage.watch.KeyCriterion in project ignite-3 by apache.

the class WatchAggregatorTest method testOneCriterionInference.

@Test
public void testOneCriterionInference() {
    var watchAggregator = new WatchAggregator();
    watchAggregator.add(new ByteArray("key"), null);
    var keyCriterion = watchAggregator.watch(0, null).get().keyCriterion();
    assertEquals(new KeyCriterion.ExactCriterion(new ByteArray("key")), keyCriterion);
}
Also used : KeyCriterion(org.apache.ignite.internal.metastorage.watch.KeyCriterion) ByteArray(org.apache.ignite.lang.ByteArray) WatchAggregator(org.apache.ignite.internal.metastorage.watch.WatchAggregator) Test(org.junit.jupiter.api.Test)

Aggregations

KeyCriterion (org.apache.ignite.internal.metastorage.watch.KeyCriterion)1 WatchAggregator (org.apache.ignite.internal.metastorage.watch.WatchAggregator)1 ByteArray (org.apache.ignite.lang.ByteArray)1 Test (org.junit.jupiter.api.Test)1