VolatileVectorStoreRecordCollectionOptions.Builder<Record> Class

  • java.lang.Object
    • com.microsoft.semantickernel.data.VolatileVectorStoreRecordCollectionOptions.Builder<Record>

Type Parameters

Record

the record type

public static class VolatileVectorStoreRecordCollectionOptions.Builder<Record>

Builder for Volatile vector store record collection options.

Constructor Summary

Constructor Description
Builder()

Method Summary

Modifier and Type Method and Description
VolatileVectorStoreRecordCollectionOptions<Record> build()

Builds the options.

Builder<Record> withObjectMapper(ObjectMapper objectMapper)

Sets the object mapper.

Builder<Record> withRecordClass(Class<Record> recordClass)

Sets the record class.

Builder<Record> withRecordDefinition(VectorStoreRecordDefinition recordDefinition)

Sets the record definition.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Builder

public Builder()

Method Details

build

public VolatileVectorStoreRecordCollectionOptions build()

Builds the options.

Returns:

the options

withObjectMapper

public VolatileVectorStoreRecordCollectionOptions.Builder withObjectMapper(ObjectMapper objectMapper)

Sets the object mapper.

Parameters:

objectMapper - the object mapper

Returns:

the builder

withRecordClass

public VolatileVectorStoreRecordCollectionOptions.Builder withRecordClass(Class recordClass)

Sets the record class.

Parameters:

recordClass - the record class

Returns:

the builder

withRecordDefinition

public VolatileVectorStoreRecordCollectionOptions.Builder withRecordDefinition(VectorStoreRecordDefinition recordDefinition)

Sets the record definition.

Parameters:

recordDefinition - the record definition

Returns:

the builder

Applies to