Class LangchainItemMarshaller
java.lang.Object
io.quarkiverse.langchain4j.infinispan.runtime.LangchainItemMarshaller
- All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<LangchainInfinispanItem>,org.infinispan.protostream.MessageMarshaller<LangchainInfinispanItem>
public class LangchainItemMarshaller
extends Object
implements org.infinispan.protostream.MessageMarshaller<LangchainInfinispanItem>
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends LangchainInfinispanItem>readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader) voidwriteTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, LangchainInfinispanItem item)
-
Constructor Details
-
LangchainItemMarshaller
-
-
Method Details
-
readFrom
public LangchainInfinispanItem readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader reader) throws IOException - Specified by:
readFromin interfaceorg.infinispan.protostream.MessageMarshaller<LangchainInfinispanItem>- Throws:
IOException
-
writeTo
public void writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter writer, LangchainInfinispanItem item) throws IOException - Specified by:
writeToin interfaceorg.infinispan.protostream.MessageMarshaller<LangchainInfinispanItem>- Throws:
IOException
-
getJavaClass
- Specified by:
getJavaClassin interfaceorg.infinispan.protostream.BaseMarshaller<LangchainInfinispanItem>
-
getTypeName
- Specified by:
getTypeNamein interfaceorg.infinispan.protostream.BaseMarshaller<LangchainInfinispanItem>
-