public class QueryResult
extends com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
collectionId |
protected java.lang.String |
id |
protected java.util.Map<java.lang.String,java.lang.Object> |
metadata |
protected QueryResultMetadata |
resultMetadata |
Constructor and Description |
---|
QueryResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCollectionId()
Gets the collectionId.
|
java.lang.String |
getId()
Gets the id.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
Gets the metadata.
|
QueryResultMetadata |
getResultMetadata()
Gets the resultMetadata.
|
@SerializedName(value="id") protected java.lang.String id
@SerializedName(value="metadata") protected java.util.Map<java.lang.String,java.lang.Object> metadata
@SerializedName(value="collection_id") protected java.lang.String collectionId
@SerializedName(value="result_metadata") protected QueryResultMetadata resultMetadata
public java.lang.String getId()
The unique identifier of the document.
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
Metadata of the document.
public java.lang.String getCollectionId()
The collection ID of the collection containing the document for this result.
public QueryResultMetadata getResultMetadata()
Metadata of a query result.