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());
}
Aggregations