Пример #1
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");
     }
 }
Пример #2
0
 internal CqlRowSet(OutputSetKeyspace output, Session session)
 {
 }
Пример #3
0
 internal CqlRowSet(OutputSetKeyspace output, Session session)
 {
 }