Class GetDocumentsResult
java.lang.Object
io.fluxcapacitor.common.api.search.GetDocumentsResult
- All Implemented Interfaces:
JsonType
,RequestResult
Result returned in response to a
GetDocuments
request.
This result includes a collection of documents
identified by their ID and collection,
or null
if the document could not be found.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Lightweight structure for representingGetDocumentsResult
in Flux metrics logs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoMetric()
Converts this result to a compact representation for metrics logging.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.common.api.RequestResult
getRequestId, getTimestamp
-
Constructor Details
-
GetDocumentsResult
public GetDocumentsResult()
-
-
Method Details
-
toMetric
Converts this result to a compact representation for metrics logging.- Specified by:
toMetric
in interfaceJsonType
- Returns:
- a
GetDocumentsResult.Metric
containing only the response timestamp.
-