@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Hit extends Object implements Serializable, Cloneable, StructuredPojo
Information about a document that matches the search request.
Constructor and Description |
---|
Hit() |
Modifier and Type | Method and Description |
---|---|
Hit |
addExprsEntry(String key,
String value) |
Hit |
addFieldsEntry(String key,
List<String> value) |
Hit |
addHighlightsEntry(String key,
String value) |
Hit |
clearExprsEntries()
Removes all the entries added into Exprs.
|
Hit |
clearFieldsEntries()
Removes all the entries added into Fields.
|
Hit |
clearHighlightsEntries()
Removes all the entries added into Highlights.
|
Hit |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getExprs()
The expressions returned from a document that matches the search request.
|
Map<String,List<String>> |
getFields()
The fields returned from a document that matches the search request.
|
Map<String,String> |
getHighlights()
The highlights returned from a document that matches the search request.
|
String |
getId()
The document ID of a document that matches the search request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExprs(Map<String,String> exprs)
The expressions returned from a document that matches the search request.
|
void |
setFields(Map<String,List<String>> fields)
The fields returned from a document that matches the search request.
|
void |
setHighlights(Map<String,String> highlights)
The highlights returned from a document that matches the search request.
|
void |
setId(String id)
The document ID of a document that matches the search request.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Hit |
withExprs(Map<String,String> exprs)
The expressions returned from a document that matches the search request.
|
Hit |
withFields(Map<String,List<String>> fields)
The fields returned from a document that matches the search request.
|
Hit |
withHighlights(Map<String,String> highlights)
The highlights returned from a document that matches the search request.
|
Hit |
withId(String id)
The document ID of a document that matches the search request.
|
public void setId(String id)
The document ID of a document that matches the search request.
id
- The document ID of a document that matches the search request.public String getId()
The document ID of a document that matches the search request.
public Hit withId(String id)
The document ID of a document that matches the search request.
id
- The document ID of a document that matches the search request.public Map<String,List<String>> getFields()
The fields returned from a document that matches the search request.
public void setFields(Map<String,List<String>> fields)
The fields returned from a document that matches the search request.
fields
- The fields returned from a document that matches the search request.public Hit withFields(Map<String,List<String>> fields)
The fields returned from a document that matches the search request.
fields
- The fields returned from a document that matches the search request.public Hit clearFieldsEntries()
public Map<String,String> getExprs()
The expressions returned from a document that matches the search request.
public void setExprs(Map<String,String> exprs)
The expressions returned from a document that matches the search request.
exprs
- The expressions returned from a document that matches the search request.public Hit withExprs(Map<String,String> exprs)
The expressions returned from a document that matches the search request.
exprs
- The expressions returned from a document that matches the search request.public Hit clearExprsEntries()
public Map<String,String> getHighlights()
The highlights returned from a document that matches the search request.
public void setHighlights(Map<String,String> highlights)
The highlights returned from a document that matches the search request.
highlights
- The highlights returned from a document that matches the search request.public Hit withHighlights(Map<String,String> highlights)
The highlights returned from a document that matches the search request.
highlights
- The highlights returned from a document that matches the search request.public Hit clearHighlightsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.