Record Class ExecuteResultOutput
java.lang.Object
java.lang.Record
smile.util.ipynb.ExecuteResultOutput
- Record Components:
executionCount- the cell execution counter at the time the output was produced.data- the MIME-bundle mapping MIME types to their content.metadata- optional MIME-type-specific metadata.transientData- transient data not saved with the notebook (e.g. display ids).
- All Implemented Interfaces:
Output
public record ExecuteResultOutput(Integer executionCount, Map<String, tools.jackson.databind.JsonNode> data, Map<String, tools.jackson.databind.JsonNode> metadata, Map<String, tools.jackson.databind.JsonNode> transientData)
extends Record
implements Output
An execute-result output (output type
"execute_result").
This is the result of evaluating an expression and is similar to
DisplayDataOutput but also carries the execution_count
(prompt number) that links the output back to its code cell.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionCountrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the output type identifier.final StringtoString()Returns a string representation of this record class.Returns the value of thetransientDatarecord component.
-
Constructor Details
-
ExecuteResultOutput
public ExecuteResultOutput(Integer executionCount, Map<String, tools.jackson.databind.JsonNode> data, Map<String, tools.jackson.databind.JsonNode> metadata, Map<String, tools.jackson.databind.JsonNode> transientData) Creates an instance of aExecuteResultOutputrecord class.- Parameters:
executionCount- the value for theexecutionCountrecord componentdata- the value for thedatarecord componentmetadata- the value for themetadatarecord componenttransientData- the value for thetransientDatarecord component
-
-
Method Details
-
outputType
Description copied from interface:OutputReturns the output type identifier.- Specified by:
outputTypein interfaceOutput- Returns:
- one of
"stream","display_data","execute_result", or"error".
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
executionCount
Returns the value of theexecutionCountrecord component.- Returns:
- the value of the
executionCountrecord component
-
data
-
metadata
-
transientData
Returns the value of thetransientDatarecord component.- Returns:
- the value of the
transientDatarecord component
-