Пример #1
0
 internal CqlRowSet(OutputSchemaChange output, Session session)
 {
     if (output.TraceID != null)
     {
         _queryTrace = new QueryTrace(output.TraceID.Value, session);
     }
 }
Пример #2
0
 internal RowSet(OutputSchemaChange output, Session session)
 {
     if (output.TraceID != null)
     {
         _info.SetQueryTrace(new QueryTrace(output.TraceID.Value, session));
     }
 }
Пример #3
0
 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");
     }
 }
Пример #4
0
 internal CqlRowSet(OutputSchemaChange output, Session session)
 {
     if (output.TraceID != null)
         _queryTrace = new QueryTrace(output.TraceID.Value, session);
 }
Пример #5
0
 internal RowSet(OutputSchemaChange output, Session session)
 {
     if (output.TraceID != null)
         _info.SetQueryTrace(new QueryTrace(output.TraceID.Value, session));
 }