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

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

Introduction

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

Prototype

@Override
    public double getDouble(int ordinal) 

Source Link

Usage

From source file:com.splicemachine.db.iapi.types.SQLDouble.java

License:Apache License

/**
 *
 * Read from a Project Tungsten Format./*w  w  w. ja v  a  2s  . co  m*/
 *
 * @see UnsafeRow#getDouble(int)
 *
 * @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.getDouble(ordinal);
    }
}