### Question:
LongConstant extends LongFunction implements ConstantFunction { @Override public long getLong(Record rec) { return value; } LongConstant(int position, long value); @Override long getLong(Record rec);  }### Answer:
@Test public void testConstant() { LongConstant constant = new LongConstant(0, 923123123123123123L); Assert.assertTrue(constant.isConstant()); Assert.assertEquals(923123123123123123L, constant.getLong(null)); }