Class SpringAiMetadataMarshaller

java.lang.Object
org.springframework.ai.vectorstore.infinispan.SpringAiMetadataMarshaller
All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<SpringAiMetadata>, org.infinispan.protostream.MessageMarshaller<SpringAiMetadata>

public class SpringAiMetadataMarshaller extends Object implements org.infinispan.protostream.MessageMarshaller<SpringAiMetadata>
Marshaller to read and write metadata 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

    Constructors
    Constructor
    Description
    Constructor for the LangChainMetadata Marshaller
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader)
     
    void
    writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, SpringAiMetadata item)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.infinispan.protostream.BaseMarshaller

    getSubClassNames
  • Constructor Details

    • SpringAiMetadataMarshaller

      public SpringAiMetadataMarshaller(String typeName)
      Constructor for the LangChainMetadata Marshaller
      Parameters:
      typeName - , the full type of the protobuf entity
  • Method Details

    • readFrom

      public SpringAiMetadata readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader) throws IOException
      Specified by:
      readFrom in interface org.infinispan.protostream.MessageMarshaller<SpringAiMetadata>
      Throws:
      IOException
    • writeTo

      public void writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, SpringAiMetadata item) throws IOException
      Specified by:
      writeTo in interface org.infinispan.protostream.MessageMarshaller<SpringAiMetadata>
      Throws:
      IOException
    • getJavaClass

      public Class<? extends SpringAiMetadata> getJavaClass()
      Specified by:
      getJavaClass in interface org.infinispan.protostream.BaseMarshaller<SpringAiMetadata>
    • getTypeName

      public String getTypeName()
      Specified by:
      getTypeName in interface org.infinispan.protostream.BaseMarshaller<SpringAiMetadata>