コード例 #1
0
 public QueryRecordCommand(Node node, Policy policy, Statement statement, RecordSet recordSet)
     : base(node, true)
 {
     this.policy = policy;
     this.statement = statement;
     this.recordSet = recordSet;
 }
コード例 #2
0
 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;
 }
コード例 #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);
 }
コード例 #5
0
 public QueryRecordCommand(Node node, Policy policy, Statement statement, RecordSet recordSet)
     : base(node, policy, statement)
 {
     this.recordSet = recordSet;
 }