Package com.sap.ai.sdk.grounding.model
Class VectorPerFilterSearchResult
java.lang.Object
com.sap.ai.sdk.grounding.model.VectorPerFilterSearchResult
VectorPerFilterSearchResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for VectorPerFilterSearchResult. -
Method Summary
Modifier and TypeMethodDescriptionaddResultsItem(DocumentsChunk resultsItem) Add one results instance to thisVectorPerFilterSearchResult.create()Create a type-safe, fluent-api builder object to construct a newVectorPerFilterSearchResultinstance with all required arguments.booleanSet the filterId of thisVectorPerFilterSearchResultinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theVectorPerFilterSearchResult.Get filterIdGet resultsinthashCode()results(List<DocumentsChunk> results) Set the results of thisVectorPerFilterSearchResultinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisVectorPerFilterSearchResultinstance.voidsetFilterId(String filterId) Set the filterId of thisVectorPerFilterSearchResultinstance.voidsetResults(List<DocumentsChunk> results) Set the results of thisVectorPerFilterSearchResultinstance.toMap()Get the value of all properties of thisVectorPerFilterSearchResultinstance including unrecognized properties.toString()
-
Constructor Details
-
VectorPerFilterSearchResult
protected VectorPerFilterSearchResult()Default constructor for VectorPerFilterSearchResult.
-
-
Method Details
-
filterId
Set the filterId of thisVectorPerFilterSearchResultinstance and return the same instance.- Parameters:
filterId- The filterId of thisVectorPerFilterSearchResult- Returns:
- The same instance of this
VectorPerFilterSearchResultclass
-
getFilterId
Get filterId- Returns:
- filterId The filterId of this
VectorPerFilterSearchResultinstance.
-
setFilterId
Set the filterId of thisVectorPerFilterSearchResultinstance.- Parameters:
filterId- The filterId of thisVectorPerFilterSearchResult
-
results
Set the results of thisVectorPerFilterSearchResultinstance and return the same instance.- Parameters:
results- The results of thisVectorPerFilterSearchResult- Returns:
- The same instance of this
VectorPerFilterSearchResultclass
-
addResultsItem
Add one results instance to thisVectorPerFilterSearchResult.- Parameters:
resultsItem- The results that should be added- Returns:
- The same instance of type
VectorPerFilterSearchResult
-
getResults
Get results- Returns:
- results The results of this
VectorPerFilterSearchResultinstance.
-
setResults
Set the results of thisVectorPerFilterSearchResultinstance.- Parameters:
results- The results of thisVectorPerFilterSearchResult
-
getCustomFieldNames
Get the names of the unrecognizable properties of theVectorPerFilterSearchResult.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisVectorPerFilterSearchResultinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisVectorPerFilterSearchResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisVectorPerFilterSearchResultinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newVectorPerFilterSearchResultinstance with all required arguments.
-
toMap()instead.