public override void Start(
            string sessionId,
            StoredProcedureWorkload workload)
        {
            this.sessionId = sessionId;
            HybridYCSBWorkload hybridWorkload = workload as HybridYCSBWorkload;

            this.workload.Set(hybridWorkload);

            this.Start();
        }
        public override void Set(StoredProcedureWorkload baseWorkload)
        {
            HybridYCSBWorkload workload = baseWorkload as HybridYCSBWorkload;
            int queryCount = workload.QueryCount;

            if (this.Keys == null)
            {
                this.Keys    = new object[queryCount];
                this.Values  = new object[queryCount];
                this.Queries = new string[queryCount];
            }

            this.TableId = workload.TableId;
            Array.Copy(workload.Keys, this.Keys, queryCount);
            Array.Copy(workload.Values, this.Values, queryCount);
            Array.Copy(workload.Queries, this.Queries, queryCount);
            this.QueryCount = workload.QueryCount;
        }
 public virtual void Set(StoredProcedureWorkload workload)
 {
 }
Ejemplo n.º 4
0
 public virtual void Start(
     string sessionId,
     StoredProcedureWorkload workload)
 {
 }