Closed muzarski closed 3 months ago
new serialization api (0.11.0)
SerializedValues
was renamed toLegacySerializedValues
in serialization API refactor.I changed the usage of
SerializedValues
simply toVec<i64>
in s-b'sReadOperation
. I usedVec<i64>
since bothpartition_key
andclustering_key
s arebigint
s.Maybe it's better use
LegacySerializedValues
, but I'm not quite sure as I'm not familiar with the changes introduced in 0.11.0.
You should not use legacy structs, they will be removed in the future.
Current approach (Vec<i64>
) is ok of all your values are i64.
Changes
Bumped driver's version to most recent
0.12.0
.Some code needed to be adjusted:
Consistency
enumConsistency
enum supports two new variants:Serial
andLocalSerial
. Updatedshow_consistency_level
accordingly.Murmur3Partitioner
Murmur3Partitioner
's API changed a bit, so its usage is adjusted inGeneratorConfig::new
new serialization api (0.11.0)
SerializedValues
was renamed toLegacySerializedValues
in serialization API refactor.I changed the usage of
SerializedValues
simply toVec<i64>
in s-b'sReadOperation
. I usedVec<i64>
since bothpartition_key
andclustering_key
s arebigint
s.Maybe it's better use
LegacySerializedValues
, but I'm not quite sure as I'm not familiar with the changes introduced in 0.11.0.