public void serialize(AbstractBounds<T> range, DataOutputPlus out, int version) throws IOException { /* * The first int tells us if it's a range or bounds (depending on the value) _and_ if it's tokens or keys (depending on the * sign). We use negative kind for keys so as to preserve the serialization of token from older version. */ if (version < MessagingService.VERSION_30) out.writeInt(kindInt(range)); else out.writeByte(kindFlags(range)); serializer.serialize(range.left, out, version); serializer.serialize(range.right, out, version); }
public void serialize(AbstractBounds<T> range, DataOutputPlus out, int version) throws IOException { /* * The first int tells us if it's a range or bounds (depending on the value) _and_ if it's tokens or keys (depending on the * sign). We use negative kind for keys so as to preserve the serialization of token from older version. */ if (version < MessagingService.VERSION_30) out.writeInt(kindInt(range)); else out.writeByte(kindFlags(range)); serializer.serialize(range.left, out, version); serializer.serialize(range.right, out, version); }
public void serialize(AbstractBounds<T> range, DataOutputPlus out, int version) throws IOException { /* * The first int tells us if it's a range or bounds (depending on the value) _and_ if it's tokens or keys (depending on the * sign). We use negative kind for keys so as to preserve the serialization of token from older version. */ if (version < MessagingService.VERSION_30) out.writeInt(kindInt(range)); else out.writeByte(kindFlags(range)); serializer.serialize(range.left, out, version); serializer.serialize(range.right, out, version); }
public void serialize(AbstractBounds<T> range, DataOutputPlus out, int version) throws IOException { /* * The first int tells us if it's a range or bounds (depending on the value) _and_ if it's tokens or keys (depending on the * sign). We use negative kind for keys so as to preserve the serialization of token from older version. */ if (version < MessagingService.VERSION_30) out.writeInt(kindInt(range)); else out.writeByte(kindFlags(range)); serializer.serialize(range.left, out, version); serializer.serialize(range.right, out, version); }