List of usage examples for org.apache.spark.sql.catalyst.expressions UnsafeRow getBoolean
@Override
public boolean getBoolean(int ordinal)
From source file:com.splicemachine.db.iapi.types.SQLBoolean.java
License:Apache License
/** * * Read from a Project Tungsten UnsafeRow Format. * * @see UnsafeRow#getBoolean(int)/* www.jav a2 s.c om*/ * * @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.getBoolean(ordinal); } }