Interface Hits.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Hits.Builder,,- Hits> - SdkBuilder<Hits.Builder,,- Hits> - SdkPojo
- Enclosing class:
- Hits
@Mutable
@NotThreadSafe
public static interface Hits.Builder
extends SdkPojo, CopyableBuilder<Hits.Builder,Hits> 
- 
Method SummaryModifier and TypeMethodDescriptionA cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.The total number of documents that match the search request.hit(Collection<Hit> hit) A document that matches the search request.hit(Consumer<Hit.Builder>... hit) A document that matches the search request.A document that matches the search request.The index of the first matching document.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
foundThe total number of documents that match the search request. - Parameters:
- found- The total number of documents that match the search request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
startThe index of the first matching document. - Parameters:
- start- The index of the first matching document.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
cursorA cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set. - Parameters:
- cursor- A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hitA document that matches the search request. - Parameters:
- hit- A document that matches the search request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hitA document that matches the search request. - Parameters:
- hit- A document that matches the search request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hitA document that matches the search request. This is a convenience method that creates an instance of theHit.Builderavoiding the need to create one manually viaHit.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohit(List<Hit>).- Parameters:
- hit- a consumer that will call methods on- Hit.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-