Class QueryResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
com.ibm.watson.discovery.v1.model.QueryResult
- All Implemented Interfaces:
 com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryResult extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
Query result object.
- 
Constructor Summary
Constructors Constructor Description QueryResult() - 
Method Summary
Modifier and Type Method Description StringgetCollectionId()Gets the collectionId.StringgetId()Gets the id.Map<String,Object>getMetadata()Gets the metadata.QueryResultMetadatagetResultMetadata()Gets the resultMetadata.Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel
equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString 
- 
Constructor Details
- 
QueryResult
public QueryResult() 
 - 
 - 
Method Details
- 
getId
Gets the id.The unique identifier of the document.
- Returns:
 - the id
 
 - 
getMetadata
Gets the metadata.Metadata of the document.
- Returns:
 - the metadata
 
 - 
getCollectionId
Gets the collectionId.The collection ID of the collection containing the document for this result.
- Returns:
 - the collectionId
 
 - 
getResultMetadata
Gets the resultMetadata.Metadata of a query result.
- Returns:
 - the resultMetadata
 
 
 -