Search in sources :

Example 1 with TestFloatColumnSelector

use of io.druid.segment.TestFloatColumnSelector in project druid by druid-io.

the class ExpressionObjectSelectorTest method testSupplierFromFloatSelector.

@Test
public void testSupplierFromFloatSelector() {
    final Supplier<Number> supplier = ExpressionObjectSelector.supplierFromFloatSelector(new TestFloatColumnSelector() {

        @Override
        public float get() {
            return 0.1f;
        }
    });
    Assert.assertEquals(0.1f, supplier.get());
}
Also used : TestFloatColumnSelector(io.druid.segment.TestFloatColumnSelector) Test(org.junit.Test)

Aggregations

TestFloatColumnSelector (io.druid.segment.TestFloatColumnSelector)1 Test (org.junit.Test)1