Class SpringAiItemMarshaller
java.lang.Object
org.springframework.ai.vectorstore.infinispan.SpringAiItemMarshaller
- All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<SpringAiInfinispanItem>,org.infinispan.protostream.MessageMarshaller<SpringAiInfinispanItem>
public class SpringAiItemMarshaller
extends Object
implements org.infinispan.protostream.MessageMarshaller<SpringAiInfinispanItem>
Marshaller to read and write embeddings to Infinispan
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.protostream.MessageMarshaller
org.infinispan.protostream.MessageMarshaller.ProtoStreamReader, org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter -
Field Summary
Fields inherited from interface org.infinispan.protostream.BaseMarshaller
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionSpringAiItemMarshaller(String typeName) Constructor for the SpringAiItemMarshaller Marshaller -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends SpringAiInfinispanItem> readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader) voidwriteTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, SpringAiInfinispanItem item) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.protostream.BaseMarshaller
getSubClassNames
-
Constructor Details
-
SpringAiItemMarshaller
Constructor for the SpringAiItemMarshaller Marshaller- Parameters:
typeName- , the full type of the protobuf entity
-
-
Method Details
-
readFrom
public SpringAiInfinispanItem readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader) throws IOException - Specified by:
readFromin interfaceorg.infinispan.protostream.MessageMarshaller<SpringAiInfinispanItem>- Throws:
IOException
-
writeTo
public void writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, SpringAiInfinispanItem item) throws IOException - Specified by:
writeToin interfaceorg.infinispan.protostream.MessageMarshaller<SpringAiInfinispanItem>- Throws:
IOException
-
getJavaClass
- Specified by:
getJavaClassin interfaceorg.infinispan.protostream.BaseMarshaller<SpringAiInfinispanItem>
-
getTypeName
- Specified by:
getTypeNamein interfaceorg.infinispan.protostream.BaseMarshaller<SpringAiInfinispanItem>
-