List of usage examples for org.apache.spark.sql.catalyst.expressions UnsafeRow getFloat
@Override
public float getFloat(int ordinal)
From source file:com.splicemachine.db.iapi.types.SQLReal.java
License:Apache License
/** * * Read from a Project Tungsten Format (UnsafeRow) * * @see UnsafeRow#getFloat(int)// w ww .j a v a 2s.c o m * * @param unsafeRow * @param ordinal * @throws StandardException */ @Override public void read(UnsafeRow unsafeRow, int ordinal) throws StandardException { if (unsafeRow.isNullAt(ordinal)) setToNull(); else { isNull = false; value = unsafeRow.getFloat(ordinal); } }