Class SearchResult
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SearchResult.Builder,SearchResult>
A single matching segment of time-series data returned by a search.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchResult.Builderbuilder()final StringThe identifier of the dataset that contains the matching data.final TimeInNanosThe end of the matching time-series segment, in nanoseconds since the Unix epoch.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Floatscore()The relevance score of this result.final StringsearchId()The identifier of the search that produced this result.static Class<? extends SearchResult.Builder> final TimeInNanosThe start of the matching time-series segment, in nanoseconds since the Unix epoch.final StringThe identifier of the time series that contains the matching data.Take this object and create a builder that contains all of the current property values of this object.final TimeInNanosThe timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.final StringtoString()Returns a string representation of this object.final StringThe name of the workspace the search ran against.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
searchId
The identifier of the search that produced this result.
- Returns:
- The identifier of the search that produced this result.
-
workspaceName
The name of the workspace the search ran against.
- Returns:
- The name of the workspace the search ran against.
-
datasetId
The identifier of the dataset that contains the matching data.
- Returns:
- The identifier of the dataset that contains the matching data.
-
timeSeriesId
The identifier of the time series that contains the matching data.
- Returns:
- The identifier of the time series that contains the matching data.
-
startTimestamp
The start of the matching time-series segment, in nanoseconds since the Unix epoch.
- Returns:
- The start of the matching time-series segment, in nanoseconds since the Unix epoch.
-
endTimestamp
The end of the matching time-series segment, in nanoseconds since the Unix epoch.
- Returns:
- The end of the matching time-series segment, in nanoseconds since the Unix epoch.
-
topTimestamp
The timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.
- Returns:
- The timestamp of the most relevant point within the matching segment, in nanoseconds since the Unix epoch.
-
score
The relevance score of this result. Higher scores indicate a stronger match.
- Returns:
- The relevance score of this result. Higher scores indicate a stronger match.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchResult.Builder,SearchResult> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-