public QueryRecordCommand(Node node, Policy policy, Statement statement, RecordSet recordSet)
     : base(node, true)
 {
     this.policy = policy;
     this.statement = statement;
     this.recordSet = recordSet;
 }
 public QueryRecordCommand
 (
     Cluster cluster,
     Node node,
     QueryPolicy policy,
     Statement statement,
     RecordSet recordSet,
     ulong clusterKey,
     bool first
 ) : base(cluster, policy, node, statement.ns, clusterKey, first)
 {
     this.statement = statement;
     this.recordSet = recordSet;
 }
Beispiel #3
0
 public QueryPartitionCommand
 (
     Cluster cluster,
     Node node,
     Policy policy,
     Statement statement,
     RecordSet recordSet,
     PartitionTracker tracker,
     NodePartitions nodePartitions
 ) : base(cluster, policy, nodePartitions.node, statement.ns, tracker.socketTimeout, tracker.totalTimeout)
 {
     this.statement      = statement;
     this.recordSet      = recordSet;
     this.tracker        = tracker;
     this.nodePartitions = nodePartitions;
 }
 public QueryPartitionExecutor
 (
     Cluster cluster,
     QueryPolicy policy,
     Statement statement,
     int nodeCapacity,
     PartitionTracker tracker
 )
 {
     this.cluster         = cluster;
     this.policy          = policy;
     statement.returnData = true;
     this.statement       = statement;
     this.threads         = new List <QueryThread>(nodeCapacity);
     this.cancel          = new CancellationTokenSource();
     this.tracker         = tracker;
     this.recordSet       = new RecordSet(this, policy.recordQueueSize, cancel.Token);
     ThreadPool.QueueUserWorkItem(this.Run);
 }
 public QueryRecordCommand(Node node, Policy policy, Statement statement, RecordSet recordSet)
     : base(node, policy, statement)
 {
     this.recordSet = recordSet;
 }