You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by be...@apache.org on 2024/01/23 21:24:20 UTC
(cassandra-accord) 07/13: serializer support
This is an automated email from the ASF dual-hosted git repository.
benedict pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
commit 09b212a2588d6db5189729d4b7a518e31e9d2721
Author: Benedict Elliott Smith <be...@apache.org>
AuthorDate: Fri Jan 19 12:35:24 2024 +0000
serializer support
---
accord-core/src/main/java/accord/primitives/LatestDeps.java | 8 ++++++++
accord-core/src/main/java/accord/utils/ReducingRangeMap.java | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/accord-core/src/main/java/accord/primitives/LatestDeps.java b/accord-core/src/main/java/accord/primitives/LatestDeps.java
index c3b68af..98020ad 100644
--- a/accord-core/src/main/java/accord/primitives/LatestDeps.java
+++ b/accord-core/src/main/java/accord/primitives/LatestDeps.java
@@ -41,6 +41,14 @@ public class LatestDeps extends ReducingRangeMap<LatestDeps.LatestEntry>
{
public static final LatestDeps EMPTY = new LatestDeps();
+ public static class SerializerSupport
+ {
+ public static <V> LatestDeps create(boolean inclusiveEnds, RoutingKey[] starts, LatestEntry[] values)
+ {
+ return new LatestDeps(inclusiveEnds, starts, values);
+ }
+ }
+
public static class MergedCommitResult
{
public final Deps deps;
diff --git a/accord-core/src/main/java/accord/utils/ReducingRangeMap.java b/accord-core/src/main/java/accord/utils/ReducingRangeMap.java
index 15b5d4c..904586b 100644
--- a/accord-core/src/main/java/accord/utils/ReducingRangeMap.java
+++ b/accord-core/src/main/java/accord/utils/ReducingRangeMap.java
@@ -35,9 +35,9 @@ public class ReducingRangeMap<V> extends ReducingIntervalMap<RoutingKey, V>
public static class SerializerSupport
{
- public static <V> ReducingRangeMap<V> create(boolean inclusiveEnds, RoutingKey[] ends, V[] values)
+ public static <V> ReducingRangeMap<V> create(boolean inclusiveEnds, RoutingKey[] starts, V[] values)
{
- return new ReducingRangeMap<>(inclusiveEnds, ends, values);
+ return new ReducingRangeMap<>(inclusiveEnds, starts, values);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org