Search in sources :

Example 1 with FieldEvaluator

use of com.yahoo.bullet.querying.evaluators.FieldEvaluator in project bullet-core by yahoo.

the class ExplodeFunctorTest method testConstructor.

@Test
public void testConstructor() {
    Explode explode = new Explode(new FieldExpression("abc"), "foo", "bar", true);
    ExplodeFunctor functor = new ExplodeFunctor(explode);
    Assert.assertTrue(functor.field instanceof FieldEvaluator);
    Assert.assertEquals(functor.keyAlias, "foo");
    Assert.assertEquals(functor.valueAlias, "bar");
    Assert.assertTrue(functor.outer);
}
Also used : Explode(com.yahoo.bullet.query.tablefunctions.Explode) FieldEvaluator(com.yahoo.bullet.querying.evaluators.FieldEvaluator) FieldExpression(com.yahoo.bullet.query.expressions.FieldExpression) Test(org.testng.annotations.Test)

Aggregations

FieldExpression (com.yahoo.bullet.query.expressions.FieldExpression)1 Explode (com.yahoo.bullet.query.tablefunctions.Explode)1 FieldEvaluator (com.yahoo.bullet.querying.evaluators.FieldEvaluator)1 Test (org.testng.annotations.Test)1