Class LangChainMetadataMarshaller
java.lang.Object
dev.langchain4j.store.embedding.infinispan.LangChainMetadataMarshaller
- All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<LangChainMetadata>
,org.infinispan.protostream.MessageMarshaller<LangChainMetadata>
public class LangChainMetadataMarshaller
extends Object
implements org.infinispan.protostream.MessageMarshaller<LangChainMetadata>
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
-
Constructor Summary
ConstructorDescriptionLangChainMetadataMarshaller
(String typeName) Constructor for the LangChainMetadata Marshaller -
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends LangChainMetadata> readFrom
(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader) void
writeTo
(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, LangChainMetadata item)
-
Constructor Details
-
LangChainMetadataMarshaller
Constructor for the LangChainMetadata Marshaller- Parameters:
typeName
- , the full type of the protobuf entity
-
-
Method Details
-
readFrom
public LangChainMetadata readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader) throws IOException - Specified by:
readFrom
in interfaceorg.infinispan.protostream.MessageMarshaller<LangChainMetadata>
- Throws:
IOException
-
writeTo
public void writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, LangChainMetadata item) throws IOException - Specified by:
writeTo
in interfaceorg.infinispan.protostream.MessageMarshaller<LangChainMetadata>
- Throws:
IOException
-
getJavaClass
- Specified by:
getJavaClass
in interfaceorg.infinispan.protostream.BaseMarshaller<LangChainMetadata>
-
getTypeName
- Specified by:
getTypeName
in interfaceorg.infinispan.protostream.BaseMarshaller<LangChainMetadata>
-