@Test public void testGetNullTimestamp() { final DateFunction function = new DateFunction(25) { @Override public long getDate(Record rec) { return Numbers.LONG_NaN; } }; Assert.assertEquals(Numbers.LONG_NaN, function.getTimestamp(null)); }
@Override public final long getTimestamp(Record rec) { final long value = getDate(rec); return value == Numbers.LONG_NaN ? value : value * 1000L; }
DateFunction implements Function { @Override public final long getTimestamp(Record rec) { final long value = getDate(rec); return value == Numbers.LONG_NaN ? value : value * 1000L; } }
DateFunction implements Function { @Override public final long getTimestamp(Record rec) { final long value = getDate(rec); return value == Numbers.LONG_NaN ? value : value * 1000L; } DateFunction(int position); }
DateFunction implements Function { @Override public final long getTimestamp(Record rec) { final long value = getDate(rec); return value == Numbers.LONG_NaN ? value : value * 1000L; } DateFunction(int position); @Override Long256 getLong256A(Record rec); @Override Long256 getLong256B(Record rec); @Override char getChar(Record rec); @Override final BinarySequence getBin(Record rec); @Override long getBinLen(Record rec); @Override final boolean getBool(Record rec); @Override final byte getByte(Record rec); @Override final double getDouble(Record rec); @Override final float getFloat(Record rec); @Override final int getInt(Record rec); @Override final long getLong(Record rec); @Override RecordMetadata getMetadata(); @Override int getPosition(); @Override RecordCursorFactory getRecordCursorFactory(); @Override final short getShort(Record rec); @Override final CharSequence getStr(Record rec); @Override final void getStr(Record rec, CharSink sink); @Override final CharSequence getStrB(Record rec); @Override final int getStrLen(Record rec); @Override final CharSequence getSymbol(Record rec); @Override final long getTimestamp(Record rec); @Override void getLong256(Record rec, CharSink sink); @Override final int getType(); }
DateFunction implements Function { @Override public final long getTimestamp(Record rec) { final long value = getDate(rec); return value == Numbers.LONG_NaN ? value : value * 1000L; } DateFunction(int position); @Override Long256 getLong256A(Record rec); @Override Long256 getLong256B(Record rec); @Override char getChar(Record rec); @Override final BinarySequence getBin(Record rec); @Override long getBinLen(Record rec); @Override final boolean getBool(Record rec); @Override final byte getByte(Record rec); @Override final double getDouble(Record rec); @Override final float getFloat(Record rec); @Override final int getInt(Record rec); @Override final long getLong(Record rec); @Override RecordMetadata getMetadata(); @Override int getPosition(); @Override RecordCursorFactory getRecordCursorFactory(); @Override final short getShort(Record rec); @Override final CharSequence getStr(Record rec); @Override final void getStr(Record rec, CharSink sink); @Override final CharSequence getStrB(Record rec); @Override final int getStrLen(Record rec); @Override final CharSequence getSymbol(Record rec); @Override final long getTimestamp(Record rec); @Override void getLong256(Record rec, CharSink sink); @Override final int getType();  }