Class NamedQueryCompatibilityResult
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NamedQueryCompatibilityResult.Builder,NamedQueryCompatibilityResult>
The result of translating a named query to DuckDB.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final CompatibilityConfidenceThe confidence that the translated query is equivalent to the original query.final StringThe confidence that the translated query is equivalent to the original query.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 Stringid()The unique ID of the translation.final StringA JSON-formatted summary of the translation, including any validation checks that were run and their results.static Class<? extends NamedQueryCompatibilityResult.Builder> final CompatibilityStatusstatus()The status of the translation.final StringThe status of the translation.final StringThe translated query string for DuckDB.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The unique ID of the translation.
- Returns:
- The unique ID of the translation.
-
targetQuery
The translated query string for DuckDB.
- Returns:
- The translated query string for DuckDB.
-
status
The status of the translation. Valid values are
SUCCEEDEDandFAILED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnCompatibilityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the translation. Valid values are
SUCCEEDEDandFAILED. - See Also:
-
statusAsString
The status of the translation. Valid values are
SUCCEEDEDandFAILED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnCompatibilityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the translation. Valid values are
SUCCEEDEDandFAILED. - See Also:
-
confidence
The confidence that the translated query is equivalent to the original query. Valid values are
NO_TRANSLATION_NEEDED,TRANSLATED_TO_TARGET_DIALECT, andTRANSLATION_NEEDS_HUMAN_REVIEW.If the service returns an enum value that is not available in the current SDK version,
confidencewill returnCompatibilityConfidence.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfidenceAsString().- Returns:
- The confidence that the translated query is equivalent to the original query. Valid values are
NO_TRANSLATION_NEEDED,TRANSLATED_TO_TARGET_DIALECT, andTRANSLATION_NEEDS_HUMAN_REVIEW. - See Also:
-
confidenceAsString
The confidence that the translated query is equivalent to the original query. Valid values are
NO_TRANSLATION_NEEDED,TRANSLATED_TO_TARGET_DIALECT, andTRANSLATION_NEEDS_HUMAN_REVIEW.If the service returns an enum value that is not available in the current SDK version,
confidencewill returnCompatibilityConfidence.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfidenceAsString().- Returns:
- The confidence that the translated query is equivalent to the original query. Valid values are
NO_TRANSLATION_NEEDED,TRANSLATED_TO_TARGET_DIALECT, andTRANSLATION_NEEDS_HUMAN_REVIEW. - See Also:
-
resultSummary
A JSON-formatted summary of the translation, including any validation checks that were run and their results.
- Returns:
- A JSON-formatted summary of the translation, including any validation checks that were run and their results.
-
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<NamedQueryCompatibilityResult.Builder,NamedQueryCompatibilityResult> - 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.
-