Bend.TimestampSnapshotStage.setValue C# (CSharp) Method

setValue() public method

public setValue ( RecordKey key, RecordUpdate update ) : void
key RecordKey
update RecordUpdate
return void
        public void setValue(RecordKey key, RecordUpdate update)
        {
            // RecordKey key = key.clone();
            if (this.is_frozen) {
                throw new Exception("snapshot not writable! " + this.frozen_at_timestamp);
            }

            // (1) get our timestamp
            long timestamp = id_gen.nextTimestamp();
            // (2) add our timestamp attribute to the end of the keyspace
            key.appendKeyPart(new RecordKeyType_AttributeTimestamp(timestamp));
            next_stage.setValue(key, update);
        }