Class SummarizeRecordsResult

All Implemented Interfaces:
HasHandlers

public class SummarizeRecordsResult extends AsyncOperationResult
The result of a record summarization operation.
  • Constructor Details

    • SummarizeRecordsResult

      public SummarizeRecordsResult()
    • SummarizeRecordsResult

      public SummarizeRecordsResult(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static SummarizeRecordsResult getOrCreateRef(JavaScriptObject jsObj)
    • setPartialResults

      public SummarizeRecordsResult setPartialResults(SummarizeRecordsPartialResult... partialResults)
      All partial results. There will be at most one SummarizeRecordsPartialResult covering each record of the request. Note: there may be no SummarizeRecordsPartialResult 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

      public SummarizeRecordsPartialResult[] getPartialResults()
      All partial results. There will be at most one SummarizeRecordsPartialResult covering each record of the request. Note: there may be no SummarizeRecordsPartialResult 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

      public SummarizeRecordsResult setRecordNumericalSummaries(int... recordNumericalSummaries)
      If any batch is non-successful or the SummarizeRecordsRequest.aiFieldRequest is not numerical, null; otherwise:
      • If the valueClass is ORDINAL, the 0-based index of the category in the ordered list of AIFieldRequest.categories
      • The computed numerical value
      .. for the corresponding records of the request.
      Parameters:
      recordNumericalSummaries - New recordNumericalSummaries value. Default value is *initialized by the implementation*
      Returns:
      SummarizeRecordsResult instance, for chaining setter calls
      See Also:
    • getRecordNumericalSummaries

      public int[] getRecordNumericalSummaries()
      If any batch is non-successful or the SummarizeRecordsRequest.aiFieldRequest is not numerical, null; otherwise:
      • If the valueClass is ORDINAL, the 0-based index of the category in the ordered list of AIFieldRequest.categories
      • The computed numerical value
      .. for the corresponding records of the request.
      Returns:
      Current recordNumericalSummaries value. Default value is *initialized by the implementation*
      See Also:
    • setRecordSummaries

      public SummarizeRecordsResult setRecordSummaries(String... recordSummaries)
      If any batch is non-successful or the SummarizeRecordsRequest.aiFieldRequest is numerical, null; otherwise, the generated summaries (text) or unordered categories for the corresponding records of the request.
      Parameters:
      recordSummaries - New recordSummaries value. Default value is *initialized by the implementation*
      Returns:
      SummarizeRecordsResult instance, for chaining setter calls
      See Also:
    • getRecordSummaries

      public String[] getRecordSummaries()
      If any batch is non-successful or the SummarizeRecordsRequest.aiFieldRequest is numerical, null; otherwise, the generated summaries (text) or unordered categories for the corresponding records of the request.
      Returns:
      Current recordSummaries value. Default value is *initialized by the implementation*
      See Also: