Package com.smartgwt.client.ai
Class SummarizeRecordsPartialResult
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.SummarizeRecordsPartialResult
- All Implemented Interfaces:
HasHandlers
The result for a batch of records in 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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionThe number of records in the batch.getOrCreateRef(JavaScriptObject jsObj) int[]If successful and the SummarizeRecordsRequest.aiFieldRequest isnumerical, If thevalueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categoriesThe computed numerical value ..String[]If successful and the SummarizeRecordsRequest.aiFieldRequest is notnumerical, the generated record summaries (text) or unordered categories for the corresponding records in the batch.Starting index of the batch within the records of the SummarizeRecordsRequest.The number of records in the batch.setRecordNumericalSummaries(int... recordNumericalSummaries) If successful and the SummarizeRecordsRequest.aiFieldRequest isnumerical, If thevalueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categoriesThe computed numerical value ..setRecordSummaries(String... recordSummaries) If successful and the SummarizeRecordsRequest.aiFieldRequest is notnumerical, the generated record summaries (text) or unordered categories for the corresponding records in the batch.setStartIndex(Integer startIndex) Starting index of the batch within the records of the SummarizeRecordsRequest.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
-
SummarizeRecordsPartialResult
public SummarizeRecordsPartialResult() -
SummarizeRecordsPartialResult
-
-
Method Details
-
getOrCreateRef
-
setLength
The number of records in the batch.- Parameters:
length- New length value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsPartialResultinstance, for chaining setter calls
-
getLength
The number of records in the batch.- Returns:
- Current length value. Default value is *initialized by the implementation*
-
setRecordNumericalSummaries
If successful and the SummarizeRecordsRequest.aiFieldRequest isnumerical,- If the
valueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories - The computed numerical value
This array will have the same
lengthas the batch.- Parameters:
recordNumericalSummaries- New recordNumericalSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsPartialResultinstance, for chaining setter calls
- If the
-
getRecordNumericalSummaries
public int[] getRecordNumericalSummaries()If successful and the SummarizeRecordsRequest.aiFieldRequest isnumerical,- If the
valueClassis ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories - The computed numerical value
This array will have the same
lengthas the batch.- Returns:
- Current recordNumericalSummaries value. Default value is *initialized by the implementation*
- If the
-
setRecordSummaries
If successful and the SummarizeRecordsRequest.aiFieldRequest is notnumerical, the generated record summaries (text) or unordered categories for the corresponding records in the batch.This array will have the same
lengthas the batch.- Parameters:
recordSummaries- New recordSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsPartialResultinstance, for chaining setter calls
-
getRecordSummaries
If successful and the SummarizeRecordsRequest.aiFieldRequest is notnumerical, the generated record summaries (text) or unordered categories for the corresponding records in the batch.This array will have the same
lengthas the batch.- Returns:
- Current recordSummaries value. Default value is *initialized by the implementation*
-
setStartIndex
Starting index of the batch within the records of the SummarizeRecordsRequest.- Parameters:
startIndex- New startIndex value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsPartialResultinstance, for chaining setter calls
-
getStartIndex
Starting index of the batch within the records of the SummarizeRecordsRequest.- Returns:
- Current startIndex value. Default value is *initialized by the implementation*
-