Package com.smartgwt.client.ai
Class SummarizeRecordsResult
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.util.AsyncOperationResult
com.smartgwt.client.ai.SummarizeRecordsResult
- All Implemented Interfaces:
HasHandlers
The result of a record summarization operation.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SummarizeRecordsResult
getOrCreateRef
(JavaScriptObject jsObj) All partial results.int[]
If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
is notnumerical
,null
; otherwise: If thevalueClass
is ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories
The computed numerical value ..String[]
If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
isnumerical
,null
; otherwise, the generated summaries (text) or unordered categories for the correspondingrecords
of therequest
.setPartialResults
(SummarizeRecordsPartialResult... partialResults) All partial results.setRecordNumericalSummaries
(int... recordNumericalSummaries) If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
is notnumerical
,null
; otherwise: If thevalueClass
is ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories
The computed numerical value ..setRecordSummaries
(String... recordSummaries) If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
isnumerical
,null
; otherwise, the generated summaries (text) or unordered categories for the correspondingrecords
of therequest
.Methods inherited from class com.smartgwt.client.util.AsyncOperationResult
getCancellationReason, getDisabledMessage, getErrorMessage, getType, setCancellationReason, setDisabledMessage, setErrorMessage, setType
Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
SummarizeRecordsResult
public SummarizeRecordsResult() -
SummarizeRecordsResult
-
-
Method Details
-
getOrCreateRef
-
setPartialResults
All partial results. There will be at most oneSummarizeRecordsPartialResult
covering eachrecord
of therequest
. Note: there may be noSummarizeRecordsPartialResult
for a record if the record summarization operation is canceled or fails early.The order of
SummarizeRecordsPartialResult
objects in the array is unspecified.This property may be
null
if an error occurs early.- Parameters:
partialResults
- New partialResults value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsResult
instance, for chaining setter calls
-
getPartialResults
All partial results. There will be at most oneSummarizeRecordsPartialResult
covering eachrecord
of therequest
. Note: there may be noSummarizeRecordsPartialResult
for a record if the record summarization operation is canceled or fails early.The order of
SummarizeRecordsPartialResult
objects in the array is unspecified.This property may be
null
if an error occurs early.- Returns:
- Current partialResults value. Default value is *initialized by the implementation*
-
setRecordNumericalSummaries
If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
is notnumerical
,null
; otherwise:- If the
valueClass
is ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories
- The computed numerical value
records
of therequest
.- Parameters:
recordNumericalSummaries
- New recordNumericalSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsResult
instance, for chaining setter calls- See Also:
- If the
-
getRecordNumericalSummaries
public int[] getRecordNumericalSummaries()If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
is notnumerical
,null
; otherwise:- If the
valueClass
is ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories
- The computed numerical value
records
of therequest
.- Returns:
- Current recordNumericalSummaries value. Default value is *initialized by the implementation*
- See Also:
- If the
-
setRecordSummaries
If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
isnumerical
,null
; otherwise, the generated summaries (text) or unordered categories for the correspondingrecords
of therequest
.- Parameters:
recordSummaries
- New recordSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsResult
instance, for chaining setter calls- See Also:
-
getRecordSummaries
If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequest
isnumerical
,null
; otherwise, the generated summaries (text) or unordered categories for the correspondingrecords
of therequest
.- Returns:
- Current recordSummaries value. Default value is *initialized by the implementation*
- See Also:
-