public void Write(object item, long rowID, PartitionTxData tx) { var readCache = tx.ReadCache; var bitSetAddress = readCache.AllocateBitsetArray(_bitsetColSize); var byteArray = new ByteArray(bitSetAddress); _writeMethod(item, byteArray, _fixedColumns, rowID, _refTypeColumns, tx); _issetColumn.SetValue(rowID, bitSetAddress, tx); }
public void Write(object item, long rowID, PartitionTxData pd) { ReadContext readCache = pd.ReadCache; if (_issetColumn != null) { byte[] bitSetAddress = readCache.AllocateBitsetArray(_bitsetColSize); var byteArray = new ByteArray(bitSetAddress); _writeMethod(item, byteArray, _fixedColumns, rowID, _stringColumns, pd); _issetColumn.SetValue(rowID, bitSetAddress, pd); } else { var byteArray = new ByteArray(); _writeMethod(item, byteArray, _fixedColumns, rowID, _stringColumns, pd); } }