Esempio n. 1
0
 public void WriteToBatch(FrameWriter wb)
 {
     wb.WriteByte(1); //prepared query
     wb.WriteShortBytes(_id);
     wb.WriteUInt16((ushort)_queryOptions.Values.Length);
     foreach (var queryParameter in _queryOptions.Values)
     {
         wb.WriteAsBytes(queryParameter);
     }
 }
Esempio n. 2
0
 public void WriteToBatch(FrameWriter wb)
 {
     //not a prepared query
     wb.WriteByte(0);
     wb.WriteLongString(_cqlQuery);
     if (_queryOptions.Values == null || _queryOptions.Values.Length == 0)
     {
         // No values
         wb.WriteUInt16(0);
     }
     else
     {
         wb.WriteUInt16((ushort)_queryOptions.Values.Length);
         foreach (var queryParameter in _queryOptions.Values)
         {
             wb.WriteAsBytes(queryParameter);
         }
     }
 }
Esempio n. 3
0
 public void WriteToBatch(FrameWriter wb)
 {
     //not a prepared query
     wb.WriteByte(0);
     wb.WriteLongString(_cqlQuery);
     if (_queryOptions.Values == null || _queryOptions.Values.Length == 0)
     {
         //not values
         wb.WriteInt16(0);
     }
     else
     {
         wb.WriteUInt16((ushort) _queryOptions.Values.Length);
         foreach (var queryParameter in _queryOptions.Values)
         {
             wb.WriteAsBytes(queryParameter);
         }
     }
 }
Esempio n. 4
0
 public void WriteToBatch(FrameWriter wb)
 {
     wb.WriteByte(1); //prepared query
     wb.WriteShortBytes(_id);
     wb.WriteUInt16((ushort)_queryOptions.Values.Length);
     foreach (var queryParameter in _queryOptions.Values)
     {
         wb.WriteAsBytes(queryParameter);
     }
 }