VectorSearchResults<Record> Class
- java.
lang. Object - com.
microsoft. semantickernel. data. vectorsearch. VectorSearchResults<Record>
- com.
Type Parameters
- Record
The type of the search results.
public class VectorSearchResults<Record>
The search results.
Constructor Summary
| Constructor | Description |
|---|---|
| VectorSearchResults(List<VectorSearchResult<Record>> results) |
Creates a new instance of the Vector |
| VectorSearchResults(List<VectorSearchResult<Record>> results, long totalCount, Map<String,Object> metadata) |
Creates a new instance of the Vector |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
Gets the metadata associated with the search results. |
|
java.util.List<Vector |
getResults()
Gets the search results. |
| long |
getTotalCount()
Gets the total count of search results. |
Methods inherited from java.lang.Object
Constructor Details
VectorSearchResults
public VectorSearchResults(List
Creates a new instance of the VectorSearchResults class.
Parameters:
VectorSearchResults
public VectorSearchResults(List
Creates a new instance of the VectorSearchResults class.
Parameters:
Method Details
getMetadata
public Map
Gets the metadata associated with the search results.
Returns:
getResults
public List
Gets the search results.
Returns:
getTotalCount
public long getTotalCount()
Gets the total count of search results. This value represents the total number of results that are available for the current query and not the number of results being returned.
Returns: