Package com.azure.search.documents.util
Class AutocompletePagedResponse
- java.lang.Object
-
- com.azure.core.http.rest.PagedResponseBase<Void,AutocompleteItem>
-
- com.azure.search.documents.util.AutocompletePagedResponse
-
- All Implemented Interfaces:
com.azure.core.http.rest.Page<AutocompleteItem>
,com.azure.core.http.rest.PagedResponse<AutocompleteItem>
,com.azure.core.http.rest.Response<List<AutocompleteItem>>
,com.azure.core.util.paging.ContinuablePage<String,AutocompleteItem>
,Closeable
,AutoCloseable
public final class AutocompletePagedResponse extends com.azure.core.http.rest.PagedResponseBase<Void,AutocompleteItem>
This class represents a response from the autocomplete API. It contains theAutocompleteItems
returned from the service.
-
-
Constructor Summary
Constructors Constructor Description AutocompletePagedResponse(com.azure.core.http.rest.SimpleResponse<AutocompleteResult> autocompleteResponse)
Creates anAutocompletePagedResponse
from the returnedResponse
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getCoverage()
The percentage of the index covered in the autocomplete request.-
Methods inherited from class com.azure.core.http.rest.PagedResponseBase
close, getContinuationToken, getDeserializedHeaders, getElements, getHeaders, getRequest, getStatusCode
-
-
-
-
Constructor Detail
-
AutocompletePagedResponse
public AutocompletePagedResponse(com.azure.core.http.rest.SimpleResponse<AutocompleteResult> autocompleteResponse)
Creates anAutocompletePagedResponse
from the returnedResponse
.- Parameters:
autocompleteResponse
- Autocomplete response returned from the service.
-
-
Method Detail
-
getCoverage
public Double getCoverage()
The percentage of the index covered in the autocomplete request.If
minimumCoverage
wasn't supplied in the request this will benull
.- Returns:
- The percentage of the index covered in the suggest request if
minimumCoverage
was set in the request, otherwisenull
.
-
-