Beispiel #1
0
 internal CqlRowSet(OutputVoid output, Session session)
 {
     if (output.TraceID != null)
     {
         _queryTrace = new QueryTrace(output.TraceID.Value, session);
     }
 }
Beispiel #2
0
 internal RowSet(OutputVoid output, Session session)
 {
     if (output.TraceID != null)
     {
         _info.SetQueryTrace(new QueryTrace(output.TraceID.Value, session));
     }
 }
 internal ResultResponse(ResponseFrame frame)
     : base(frame)
 {
     Kind = (ResultResponseKind) BeBinaryReader.ReadInt32();
     switch (Kind)
     {
         case ResultResponseKind.Void:
             Output = new OutputVoid(TraceId);
             break;
         case ResultResponseKind.Rows:
             Output = new OutputRows(frame.Header.Version, BeBinaryReader, true, TraceId);
             break;
         case ResultResponseKind.SetKeyspace:
             Output = new OutputSetKeyspace(BeBinaryReader.ReadString());
             break;
         case ResultResponseKind.Prepared:
             Output = new OutputPrepared(BeBinaryReader, frame.Header.Version > 1);
             break;
         case ResultResponseKind.SchemaChange:
             Output = new OutputSchemaChange(BeBinaryReader, TraceId);
             break;
         default:
             throw new DriverInternalError("Unknown ResultResponseKind Type");
     }
 }
 internal CqlRowSet(OutputVoid output, Session session)
 {
     if (output.TraceID != null)
         _queryTrace = new QueryTrace(output.TraceID.Value, session);
 }
Beispiel #5
0
 internal RowSet(OutputVoid output, Session session)
 {
     if (output.TraceID != null)
         _info.SetQueryTrace(new QueryTrace(output.TraceID.Value, session));
 }