Пример #1
0
 protected override SyncExecution ReadCopyImpl(
     TpccTableKey key, out TpccTablePayload record)
 {
     if (!Read(key, out record).IsAborted())
     {
         record = this.GetObjectPool(
             key.Table.Type()).GetCopy(record) as TpccTablePayload;
     }
     return(this);
 }
Пример #2
0
            void BuildAuxIndex(TpccTableKey k, TpccTablePayload v)
            {
                var cpk = k as CustomerPkey;
                var cpl = v as CustomerPayload;

                Debug.Assert(k != null && v != null);
                var lastNameKey =
                    CustomerLastNameIndexKey.FromPKeyAndPayload(cpk, cpl);
                uint cid = cpk.C_ID;

                AddToStore(lastNameKey, cid);
            }
Пример #3
0
 void BuildAuxIndex(TpccTableKey k, TpccTablePayload v)
 {
 }
Пример #4
0
 protected virtual SyncExecution ReadCopyImpl(
     TpccTableKey key, out TpccTablePayload record)
 {
     return(this.Read(key, out record));
 }
Пример #5
0
 public SyncExecution Insert(TpccTableKey key, TpccTablePayload record)
 {
     this.txExec.InitAndInsert(key.Table.Name(), key, record);
     return(this);
 }
Пример #6
0
 public SyncExecution Update(TpccTableKey key, TpccTablePayload record)
 {
     this.txExec.Update(key.Table.Name(), key, record);
     return(this);
 }