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
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionThe number of records in the batch.getOrCreateRef
(JavaScriptObject jsObj) int[]
If successful and theSummarizeRecordsRequest.aiFieldRequest
isnumerical
, If thevalueClass
is ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories
The computed numerical value ..String[]
If successful and theSummarizeRecordsRequest.aiFieldRequest
is notnumerical
, the generated record summaries (text) or unordered categories for the corresponding records in the batch.Starting index of the batch within therecords
of theSummarizeRecordsRequest
.The number of records in the batch.setRecordNumericalSummaries
(int... recordNumericalSummaries) If successful and theSummarizeRecordsRequest.aiFieldRequest
isnumerical
, 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 successful and theSummarizeRecordsRequest.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 therecords
of theSummarizeRecordsRequest
.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
-
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:
SummarizeRecordsPartialResult
instance, 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 theSummarizeRecordsRequest.aiFieldRequest
isnumerical
,- If the
valueClass
is ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories
- The computed numerical value
This array will have the same
length
as the batch.- Parameters:
recordNumericalSummaries
- New recordNumericalSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsPartialResult
instance, for chaining setter calls
- If the
-
getRecordNumericalSummaries
public int[] getRecordNumericalSummaries()If successful and theSummarizeRecordsRequest.aiFieldRequest
isnumerical
,- If the
valueClass
is ORDINAL, the 0-based index of the category in the ordered list ofAIFieldRequest.categories
- The computed numerical value
This array will have the same
length
as the batch.- Returns:
- Current recordNumericalSummaries value. Default value is *initialized by the implementation*
- If the
-
setRecordSummaries
If successful and theSummarizeRecordsRequest.aiFieldRequest
is notnumerical
, the generated record summaries (text) or unordered categories for the corresponding records in the batch.This array will have the same
length
as the batch.- Parameters:
recordSummaries
- New recordSummaries value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsPartialResult
instance, for chaining setter calls
-
getRecordSummaries
If successful and theSummarizeRecordsRequest.aiFieldRequest
is notnumerical
, the generated record summaries (text) or unordered categories for the corresponding records in the batch.This array will have the same
length
as the batch.- Returns:
- Current recordSummaries value. Default value is *initialized by the implementation*
-
setStartIndex
Starting index of the batch within therecords
of theSummarizeRecordsRequest
.- Parameters:
startIndex
- New startIndex value. Default value is *initialized by the implementation*- Returns:
SummarizeRecordsPartialResult
instance, for chaining setter calls
-
getStartIndex
Starting index of the batch within therecords
of theSummarizeRecordsRequest
.- Returns:
- Current startIndex value. Default value is *initialized by the implementation*
-