List of usage examples for org.apache.spark.sql.catalyst.expressions UnsafeRow getBinary
@Override
public byte[] getBinary(int ordinal)
From source file:com.splicemachine.db.iapi.types.HBaseRowLocation.java
License:Open Source License
@Override public void read(UnsafeRow unsafeRow, int ordinal) throws StandardException { if (unsafeRow.isNullAt(ordinal)) setToNull();/*from w w w. ja va 2 s . c o m*/ else slice = ByteSlice.wrap(unsafeRow.getBinary(ordinal)); }
From source file:com.splicemachine.db.iapi.types.SQLBinary.java
License:Apache License
/** * * Read from a Project Tungsten UnsafeRow format. * * @see UnsafeRow#getBinary(int)//from w w w. j a v a 2s . c om * * @throws StandardException */ @Override public void read(UnsafeRow unsafeRow, int ordinal) throws StandardException { if (unsafeRow.isNullAt(ordinal)) setToNull(); else { isNull = false; dataValue = unsafeRow.getBinary(ordinal); } }
From source file:com.splicemachine.db.iapi.types.SQLRowId.java
License:Apache License
/** * * Read from a project tungsten format (UnsafeRow) * * @see UnsafeRow#getBinary(int)/* w ww . j a va 2s. c o 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; bytes = unsafeRow.getBinary(ordinal); } }
From source file:com.splicemachine.db.iapi.types.UserType.java
License:Apache License
/** * * Read from a Project Tungsten Format. Reads the object as a byte[] * * @see UnsafeRow#getBinary(int)/* w w w. j a v a2s . com*/ * * @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 = SerializationUtils.deserialize(unsafeRow.getBinary(ordinal)); } }