@InterfaceStability.Experimental @InterfaceAudience.Public public class MultiLookupResult extends Object
Compilation of LookupResult each corresponding to a LookupSpec in a given JsonDocument.
| Constructor and Description |
|---|
MultiLookupResult(String documentId,
List<LookupSpec> specs,
List<LookupResult> results)
Construct a new
MultiLookupResult for a given document, specs and associated results. |
MultiLookupResult(String documentId,
LookupSpec[] specs,
List<LookupResult> results)
Construct a new
MultiLookupResult for a given document, specs and associated results. |
| Modifier and Type | Method and Description |
|---|---|
String |
documentId() |
boolean |
hasFailure() |
boolean |
hasSuccess() |
boolean |
isTotalFailure() |
boolean |
isTotalSuccess() |
List<LookupResult> |
results()
Returns the list of
LookupResult corresponding (in same order) to the specs(). |
List<LookupSpec> |
specs() |
public MultiLookupResult(String documentId, List<LookupSpec> specs, List<LookupResult> results)
Construct a new MultiLookupResult for a given document, specs and associated results.
documentId - the document that was looked up.specs - the subdocument LookupSpec that targeted the document.results - the LookupResult associated to each spec, denoting individual success or error.public MultiLookupResult(String documentId, LookupSpec[] specs, List<LookupResult> results)
Construct a new MultiLookupResult for a given document, specs and associated results.
documentId - the document that was looked up.specs - the subdocument LookupSpec that targeted the document (as an array, convenience for varargs).results - the LookupResult associated to each spec, denoting individual success or error.public String documentId()
JsonDocument targeted by the lookup.public List<LookupSpec> specs()
LookupSpec that was run on the document.public List<LookupResult> results()
Returns the list of LookupResult corresponding (in same order) to the specs(). Each individual LookupResult denotes success or error of its associated LookupSpec.
public boolean hasSuccess()
hasFailure(),
isTotalSuccess()public boolean hasFailure()
hasSuccess(),
isTotalFailure()public boolean isTotalSuccess()
public boolean isTotalFailure()
Copyright © 2015 Couchbase, Inc.