コード例 #1
0
 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);
 }