Record Class Result
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.session.Result
- Record Components:
schema- "Schema" of theAttributes that are produced by theLogicalPlanthat was run. EachPagecontains aBlockof values for each attribute in this list.pages- Actual values produced by running the ESQL.profiles-DriverProfiles from all drivers that ran to produce the output. These are quite cheap to build, so we build them for all ESQL runs, regardless of if users have asked for them. But we only include them in the results if users ask for them.executionInfo- Metadata about the execution of this query. Used for cross cluster queries.
public record Result(List<Attribute> schema, List<Page> pages, List<DriverProfile> profiles, EsqlExecutionInfo executionInfo)
extends Record
Results from running a chunk of ESQL.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(List<Attribute> schema, List<Page> pages, List<DriverProfile> profiles, EsqlExecutionInfo executionInfo) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionInforecord component.final inthashCode()Returns a hash code value for this object.pages()Returns the value of thepagesrecord component.profiles()Returns the value of theprofilesrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(List<Attribute> schema, List<Page> pages, List<DriverProfile> profiles, @Nullable EsqlExecutionInfo executionInfo) Creates an instance of aResultrecord class.- Parameters:
schema- the value for theschemarecord componentpages- the value for thepagesrecord componentprofiles- the value for theprofilesrecord componentexecutionInfo- the value for theexecutionInforecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
pages
Returns the value of thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-
profiles
Returns the value of theprofilesrecord component.- Returns:
- the value of the
profilesrecord component
-
executionInfo
Returns the value of theexecutionInforecord component.- Returns:
- the value of the
executionInforecord component
-