Sets the value of the specified field, as a Constant.

@param val
the constant to be set. Will be casted to the correct type
specified in the schema of the table.

@see UpdateScan#setVal(java.lang.String, Constant)
438164
@Override
	public void setVal(String fldName, Constant val) {
		rf.setVal(fldName, val);
	}
410554
void set(final int intVal) {
        this.type = ClassWriter.INT;
        this.intVal = intVal;
        this.hashCode = 0x7FFFFFFF & (type + intVal);
    }
800716
private void setFieldValueViaCQL(Object entity, Object thriftColumnValue, Attribute attribute)
    {
        if (attribute != null)
        {
            try
            {
                if (attribute.isCollection())
                {
                    setCollectionValue(entity, thriftColumnValue, attribute);
                }
                else if (CassandraDataTranslator.isCassandraDataTypeClass(((AbstractAttribute) attribute)
                        .getBindableJavaType()))
                {
                    PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), CassandraDataTranslator
                            .decompose(((AbstractAttribute) attribute).getBindableJavaType(), thriftColumnValue, true));
                }
                else
                {
                    PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), (byte[]) thriftColumnValue);
                }
            }
            catch (PropertyAccessException pae)
            {
                log.warn("Error while setting field{} value via CQL, Caused by: .", attribute.getName(), pae);
            }
        }
    }
1014255
@Override
  public void put(double val) {
    if(this.n == 0) {
      n = 1.;
      min = max = sum = val;
      m2 = m3 = m4 = 0;
      return;
    }
    final double nn = this.n + 1.0;
    final double deltan = val * n - sum;
    final double delta_nn = deltan / (n * nn);
    final double delta_nn2 = delta_nn * delta_nn;
    final double inc = deltan * delta_nn;

    // Update values:
    m4 += inc * delta_nn2 * (nn * (nn - 3.) + 3.) + 6. * delta_nn2 * m2 - 4. * delta_nn * m3;
    m3 += inc * delta_nn * (nn - 2) - 3. * delta_nn * m2;
    m2 += inc;
    sum += val;
    n = nn;

    min = Math.min(min, val);
    max = Math.max(max, val);
  }
203640
public void setFill(double val, double min, double max) {
    this.val = val;
    this.min = min;
    this.max = max;
  }
112177
public void setFieldValue(final Object instance, final Object value) {
        try {
            field.set(instance, value);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }
788737
public synchronized void setVal(int offset, Constant val) {
		byte[] byteval = val.asBytes();

		// Append the size of value if it is not fixed size
		if (!val.getType().isFixedSize()) {
			// check the field capacity and value size
			if (offset + ByteHelper.INT_SIZE + byteval.length > BLOCK_SIZE)
				throw new BufferOverflowException();

			byte[] sizeBytes = ByteHelper.toBytes(byteval.length);
			contents.put(offset, sizeBytes);
			offset += sizeBytes.length;
		}

		// Put bytes
		contents.put(offset, byteval);
	}
169383
public void setValue(T value)
    {
        try
        {
            lock.writeLock().lock();
            this.value = value;
        }
        finally
        {
            lock.writeLock().unlock();
        }
    }
839580
function(val, sendUpdatedEvt) {
      // don't always rewrite the value to able selections with Ctrl+A
      var uppered = val.toUpperCase();
      if(uppered != this.getValue()) {
         inputEx.UpperCaseField.superclass.setValue.call(this, uppered, sendUpdatedEvt);
      }
   }
886680
public String setValue(String val) {
        String oldVal = this.val;
        if (parent != null) {
            oldVal = parent.get(this.key); // trust the container more
            int i = parent.indexOfKey(this.key);
            if (i != Attributes.NotFound)
                parent.vals[i] = val;
        }
        this.val = val;
        return Attributes.checkNotNull(oldVal);
    }
860748
function(val, sendUpdatedEvt) {
      this.value = val;
      
      inputEx.renderVisu(this.options.visu, val, this.fieldContainer);
      
	   inputEx.UneditableField.superclass.setValue.call(this, val, sendUpdatedEvt);
   }
1320923
public function setValue($key, $val)
    {
        file_put_contents(
            $this->file,
            sprintf("\$values[%s] = %s;\n", var_export($key, true), var_export($val, true)),
            FILE_APPEND
        );
    }
705952
public void setValue(String constantValue)
    {
        this.fieldSource = SOURCE_VALUE;
        this.fieldRefName = null;
        this.returnedByProcedure = false;
        this.constantValue = constantValue;
    }
1157713
public void setValue(String columnName, Object value) {

        D6ModelClassFieldInfo fieldInfo = mFieldMap.get(columnName);

        if (fieldInfo != null) {

            fieldInfo.value = value;

        }

        else {
            // case field info is null

            final String[] parts = columnName.split("__");

            if (parts.length > 0 && mFieldMap.containsKey(parts[0])) {
                // check is field composit type like MySQL's Geometry
                D6ModelClassFieldInfo compositTypeFieldInfo = mFieldMap.get(parts[0]);
                if (compositTypeFieldInfo.valuesForSpecialType == null) {
                    compositTypeFieldInfo.valuesForSpecialType = new ArrayList<Object>();
                }
                compositTypeFieldInfo.valuesForSpecialType.add(value);

            }

        }

    }
491812
function setValue(key, val) {
			//util.log(key + ": " + JSON.stringify(val));

			if (val === null) {
				me.values[key] = null;
			} else if (val === undefined) {
				me.values[key] = undefined;
			} else {
				type = model.columns[key]['DATA_TYPE'];

				switch (type) {
					case 'datetime':
					case 'timestamp':
						me.values[key] = new Date(val);
						break;
					case 'text':
					case 'varchar':
						me.values[key] = val.toString();
						break;
					case 'int':
					case 'tinyint':
						if (model.columns[key]['COLUMN_TYPE'] == 'tinyint(1)') {
							me.values[key] = !!val // Boolean
						} else {
							me.values[key] = parseInt(val);
						}
						break;
					default:
						me.values[key] = val;
				}
			}
		}
50471
public static void setFieldValue(final Object object, final String fieldName, final Object value) {

        final boolean success = new DerivedClassIterator(object.getClass()) {

            @Override
            protected boolean handleClass(final Class<?> clazz) {
                try {
                    setFieldValue(object, clazz, fieldName, value);
                    return true;
                } catch (final NoSuchFieldException e) {
                    LOG.debug("could not set field " + fieldName + " value " + value, e);

                }
                return false;
            }
        }.iterate();

        if (!success) {
            LOG.warn("could not set field " + fieldName + " value " + value);
        }
    }
629783
@Override
    public void setValue(org.openprovenance.prov.model.LangString value) {
        this.value = value;
    }