@Test public void testConstant() { FloatConstant constant = new FloatConstant(0, 123.45f); Assert.assertTrue(constant.isConstant()); Assert.assertEquals(123.45f, constant.getFloat(null), 0.00001); }
@Override public float getFloat(Record rec) { return value; }
FloatConstant extends FloatFunction implements ConstantFunction { @Override public float getFloat(Record rec) { return value; } }
FloatConstant extends FloatFunction implements ConstantFunction { @Override public float getFloat(Record rec) { return value; } FloatConstant(int position, float value); }
FloatConstant extends FloatFunction implements ConstantFunction { @Override public float getFloat(Record rec) { return value; } FloatConstant(int position, float value); @Override float getFloat(Record rec); }
FloatConstant extends FloatFunction implements ConstantFunction { @Override public float getFloat(Record rec) { return value; } FloatConstant(int position, float value); @Override float getFloat(Record rec);  }