Class GetRecordOptions.Builder
- java.lang.Object
-
- com.microsoft.semantickernel.data.vectorstorage.options.GetRecordOptions.Builder
-
- All Implemented Interfaces:
SemanticKernelBuilder<GetRecordOptions>
- Enclosing class:
- GetRecordOptions
public static class GetRecordOptions.Builder extends Object implements SemanticKernelBuilder<GetRecordOptions>
A builder for GetRecordOptions.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetRecordOptionsbuild()Builds the options.GetRecordOptions.BuilderincludeVectors(boolean includeVectors)Sets whether to include vectors.GetRecordOptions.BuildersetWildcardKeyMatching(boolean wildcardKeyMatching)Sets whether to use wildcard key matching.
-
-
-
Method Detail
-
includeVectors
public GetRecordOptions.Builder includeVectors(boolean includeVectors)
Sets whether to include vectors.- Parameters:
includeVectors- whether to include vectors- Returns:
- GetRecordOptions.Builder
-
setWildcardKeyMatching
public GetRecordOptions.Builder setWildcardKeyMatching(boolean wildcardKeyMatching)
Sets whether to use wildcard key matching. Default is false. Wildcard key matching allows for matching multiple ids, for instance using "LIKE 'a%'" on a SQL query.NOTE: Currently this is only supported by the SQL connectors.
- Parameters:
wildcardKeyMatching- whether to use wildcard key matching- Returns:
- GetRecordOptions.Builder
-
build
public GetRecordOptions build()
Builds the options.- Specified by:
buildin interfaceSemanticKernelBuilder<GetRecordOptions>- Returns:
- GetRecordOptions
-
-