pinecone-io / pinecone-java-client

The official Java client for the Pinecone vector database
https://www.pinecone.io
Apache License 2.0
35 stars 12 forks source link

add getSerializedSize() #119

Closed rohanshah18 closed 4 months ago

rohanshah18 commented 4 months ago

Problem

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

Test Plan

Add unit tests