Example #1
0
 protected internal void InitializeThreads()
 {
     // Initialize threads.
     for (int i = 0; i < nodes.Length; i++)
     {
         MultiCommand command = CreateCommand();
         threads[i] = new QueryThread(this, nodes[i], command);
     }
 }
Example #2
0
        protected internal void InitializeThreads()
        {
            // Detect cluster migrations when performing scan.
            ulong clusterKey = policy.failOnClusterChange ? QueryValidate.ValidateBegin(nodes[0], statement.ns) : 0;
            bool  first      = true;

            // Initialize threads.
            for (int i = 0; i < nodes.Length; i++)
            {
                MultiCommand command = CreateCommand(clusterKey, first);
                threads[i] = new QueryThread(this, nodes[i], command);
                first      = false;
            }
        }
Example #3
0
 public QueryThread(QueryExecutor parent, Node node, MultiCommand command)
 {
     this.parent  = parent;
     this.node    = node;
     this.command = command;
 }
		public void AddCommand(MultiCommand command)
		{
			threads.Add(new ExecutorThread(this, command));
		}
		public ExecutorThread(Executor parent, MultiCommand command)
		{
			this.parent = parent;
			this.command = command;
		}
 public void AddCommand(MultiCommand command)
 {
     threads.Add(new ExecutorThread(this, command));
 }
 public ExecutorThread(Executor parent, MultiCommand command)
 {
     this.parent = parent;
     this.command = command;
 }
 public QueryThread(QueryExecutor parent, MultiCommand command)
 {
     this.parent = parent;
     this.command = command;
 }
 public QueryThread(QueryPartitionExecutor parent, MultiCommand command)
 {
     this.parent  = parent;
     this.command = command;
 }