SparseValuesWithUnsignedIndices and VectorWithUnsignedIndices classes reflect proto generated classes SparseValues and Vector respectively. The proto generated classes contains the getSerializedSize() while the user generated classes currently lacks this method which is needed in Pinecone-Spark SDK. The method outputs the serialized size in bytes of the object.
Solution
Add getSerializedSize() for SparseValuesWithUnsignedIndices and VectorWithUnsignedIndices classes.
Type of Change
[X] New feature (non-breaking change which adds functionality)
Problem
SparseValuesWithUnsignedIndices
andVectorWithUnsignedIndices
classes reflect proto generated classesSparseValues
andVector
respectively. The proto generated classes contains thegetSerializedSize()
while the user generated classes currently lacks this method which is needed in Pinecone-Spark SDK. The method outputs the serialized size in bytes of the object.Solution
Add getSerializedSize() for
SparseValuesWithUnsignedIndices
andVectorWithUnsignedIndices
classes.Type of Change
Test Plan
Add unit tests