@Generated(value="software.amazon.awssdk:codegen") public final class Hit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Hit.Builder,Hit>
Information about a document that matches the search request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Hit.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Hit.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<String,String> |
exprs()
The expressions returned from a document that matches the search request.
|
Map<String,List<String>> |
fields()
The fields returned from a document that matches the search request.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasExprs()
Returns true if the Exprs property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasFields()
Returns true if the Fields property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasHighlights()
Returns true if the Highlights property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Map<String,String> |
highlights()
The highlights returned from a document that matches the search request.
|
String |
id()
The document ID of a document that matches the search request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Hit.Builder> |
serializableBuilderClass() |
Hit.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The document ID of a document that matches the search request.
public final boolean hasFields()
public final Map<String,List<String>> fields()
The fields returned from a document that matches the search request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFields() to see if a value was sent in this field.
public final boolean hasExprs()
public final Map<String,String> exprs()
The expressions returned from a document that matches the search request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasExprs() to see if a value was sent in this field.
public final boolean hasHighlights()
public final Map<String,String> highlights()
The highlights returned from a document that matches the search request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasHighlights() to see if a value was sent in this field.
public Hit.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Hit.Builder,Hit>public static Hit.Builder builder()
public static Class<? extends Hit.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.