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
idFields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SummarizeRecordsResultgetOrCreateRef(JavaScriptObject jsObj) All partial results.int[]If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequestis notnumerical,null; otherwise: If thevalueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categoriesThe computed numerical value ..String[]If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequestisnumerical,null; otherwise, the generated summaries (text) or unordered categories for the correspondingrecordsof therequest.setPartialResults(SummarizeRecordsPartialResult... partialResults) All partial results.setRecordNumericalSummaries(int... recordNumericalSummaries) If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequestis notnumerical,null; otherwise: If thevalueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categoriesThe computed numerical value ..setRecordSummaries(String... recordSummaries) If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequestisnumerical,null; otherwise, the generated summaries (text) or unordered categories for the correspondingrecordsof therequest.Methods inherited from class com.smartgwt.client.util.AsyncOperationResult
getCancellationReason, getDisabledMessage, getErrorMessage, getType, setCancellationReason, setDisabledMessage, setErrorMessage, setTypeMethods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetIDMethods 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 oneSummarizeRecordsPartialResultcovering eachrecordof therequest. Note: there may be noSummarizeRecordsPartialResultfor a record if the record summarization operation is canceled or fails early.The order of
SummarizeRecordsPartialResultobjects in the array is unspecified.This property may be
nullif an error occurs early.- Parameters:
partialResults- New partialResults value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsResultinstance, for chaining setter calls
-
getPartialResults
All partial results. There will be at most oneSummarizeRecordsPartialResultcovering eachrecordof therequest. Note: there may be noSummarizeRecordsPartialResultfor a record if the record summarization operation is canceled or fails early.The order of
SummarizeRecordsPartialResultobjects in the array is unspecified.This property may be
nullif an error occurs early.- Returns:
- Current partialResults value. Default value is *initialized by the implementation*
-
setRecordNumericalSummaries
If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequestis notnumerical,null; otherwise:- If the
valueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories - The computed numerical value
recordsof therequest.- Parameters:
recordNumericalSummaries- New recordNumericalSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsResultinstance, for chaining setter calls- See Also:
- If the
-
getRecordNumericalSummaries
public int[] getRecordNumericalSummaries()If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequestis notnumerical,null; otherwise:- If the
valueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories - The computed numerical value
recordsof 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.aiFieldRequestisnumerical,null; otherwise, the generated summaries (text) or unordered categories for the correspondingrecordsof therequest.- Parameters:
recordSummaries- New recordSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsResultinstance, for chaining setter calls- See Also:
-
getRecordSummaries
If any batch is non-successful or theSummarizeRecordsRequest.aiFieldRequestisnumerical,null; otherwise, the generated summaries (text) or unordered categories for the correspondingrecordsof therequest.- Returns:
- Current recordSummaries value. Default value is *initialized by the implementation*
- See Also:
-