public void serialize(NamesQueryFilter f, DataOutputPlus out, int version) throws IOException {
   out.writeInt(f.columns.size());
   ISerializer<CellName> serializer = type.cellSerializer();
   for (CellName cName : f.columns) {
     serializer.serialize(cName, out);
   }
   out.writeBoolean(f.countCQL3Rows);
 }
Esempio n. 2
0
    public void serialize(SliceQueryFilter f, DataOutputPlus out, int version) throws IOException {
      out.writeInt(f.slices.length);
      for (ColumnSlice slice : f.slices) type.sliceSerializer().serialize(slice, out, version);
      out.writeBoolean(f.reversed);
      int count = f.count;
      out.writeInt(count);

      out.writeInt(f.compositesToGroup);
    }
    public void serialize(PrepareResponse response, DataOutputPlus out, int version)
        throws IOException {
      out.writeBoolean(response.promised);
      Commit.serializer.serialize(response.inProgressCommit, out, version);

      if (version < MessagingService.VERSION_30) {
        UUIDSerializer.serializer.serialize(response.mostRecentCommit.ballot, out, version);
        PartitionUpdate.serializer.serialize(response.mostRecentCommit.update, out, version);
      } else {
        Commit.serializer.serialize(response.mostRecentCommit, out, version);
      }
    }
 public void serialize(PrepareMessage message, DataOutputPlus out, int version)
     throws IOException {
   out.writeInt(message.cfIds.size());
   for (UUID cfId : message.cfIds) UUIDSerializer.serializer.serialize(cfId, out, version);
   UUIDSerializer.serializer.serialize(message.parentRepairSession, out, version);
   out.writeInt(message.ranges.size());
   for (Range<Token> r : message.ranges) {
     MessagingService.validatePartitioner(r);
     Range.tokenSerializer.serialize(r, out, version);
   }
   out.writeBoolean(message.isIncremental);
 }
Esempio n. 5
0
 public void serialize(TruncateResponse tr, DataOutputPlus out, int version) throws IOException {
   out.writeUTF(tr.keyspace);
   out.writeUTF(tr.columnFamily);
   out.writeBoolean(tr.success);
 }