blerer commented on code in PR #2655:
URL: https://github.com/apache/cassandra/pull/2655#discussion_r1447344471


##########
src/java/org/apache/cassandra/db/marshal/VectorType.java:
##########
@@ -189,14 +190,33 @@ public <V> V decomposeAsFloat(ValueAccessor<V> accessor, 
float[] value)
         return buffer;
     }
 
-    public ByteBuffer decomposeRaw(List<ByteBuffer> elements)
+    public ByteBuffer pack(List<ByteBuffer> elements)
     {
-        return decomposeRaw(elements, ByteBufferAccessor.instance);
+        return pack(elements, ByteBufferAccessor.instance);
     }
 
-    public <V> V decomposeRaw(List<V> elements, ValueAccessor<V> accessor)
+    public <V> V pack(List<V> elements, ValueAccessor<V> accessor)
     {
-        return getSerializer().serializeRaw(elements, accessor);
+        return getSerializer().pack(elements, accessor);
+    }
+
+    @Override
+    public List<ByteBuffer> filterSortAndValidateElements(List<ByteBuffer> 
buffers)
+    {
+        if (buffers == null)
+            return null;

Review Comment:
   Better be safe than sorry. :-) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to