List of usage examples for org.apache.spark.sql.catalyst.expressions UnsafeRow getUTF8String
@Override
public UTF8String getUTF8String(int ordinal)
From source file:com.splicemachine.db.iapi.types.SQLChar.java
License:Apache License
/** * * Read into the Project Tungsten Format (UnsafeRow). * * @see UnsafeRow#getUTF8String(int)/*from w w w .j av a2s . 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.getUTF8String(ordinal).toString(); } }
From source file:com.splicemachine.db.iapi.types.XML.java
License:Apache License
/** * * Read XML from Project Tungsten Format (UnsafeRow) * * @param unsafeRow//from www . j a v a 2s . c om * @param ordinal * @throws StandardException */ @Override public void read(UnsafeRow unsafeRow, int ordinal) throws StandardException { xmlStringValue = new SQLChar(unsafeRow.getUTF8String(ordinal).toString()); }