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

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

Introduction

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

Prototype

@Override
    public byte getByte(int ordinal) 

Source Link

Usage

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

License:Apache License

/**
 *
 * Read from Project Tungsten Format (UnsafeRow)
 *
 * @see UnsafeRow#getByte(int)//ww w  .  j a va 2s  .  co 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.getByte(ordinal);
    }
}