Пример #1
0
 public void serialize(DeletionInfo info, DataOutput out, int version) throws IOException {
   DeletionTime.serializer.serialize(info.topLevel, out);
   // Pre-1.2 version don't know about range tombstones and thus users should upgrade all
   // nodes before using them. If they didn't, better fail early that propagating bad info
   if (version < MessagingService.VERSION_12) {
     if (!info.ranges.isEmpty())
       throw new RuntimeException(
           "Cannot send range tombstone to pre-1.2 node. You should upgrade all node to Cassandra 1.2+ before using range tombstone.");
     // Otherwise we're done
   } else {
     itSerializer.serialize(info.ranges, out, version);
   }
 }