Example usage for org.apache.spark.sql.catalyst.expressions UnsafeRow getBoolean

List of usage examples for org.apache.spark.sql.catalyst.expressions UnsafeRow getBoolean

Introduction

In this page you can find the example usage for org.apache.spark.sql.catalyst.expressions UnsafeRow getBoolean.

Prototype

@Override
    public boolean getBoolean(int ordinal) 

Source Link

Usage

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);
    }
}