From 5d4f77c17cc6f684517dcbea697bf2279b86c313 Mon Sep 17 00:00:00 2001 From: Tej Vepa Date: Wed, 13 Nov 2024 15:59:59 -0800 Subject: [PATCH] add size method to flatrecord --- .../core/write/objectmapper/flatrecords/FlatRecord.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecord.java b/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecord.java index 32142fb20..f261e5fb4 100644 --- a/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecord.java +++ b/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecord.java @@ -88,6 +88,10 @@ public byte[] toArray() { return arr; } + public long size() { + return data.length(); + } + private Object readPrimaryKeyField(int location, FieldType fieldType) { /// assumption: primary key fields are never null switch (fieldType) {