Record Class ExternalSourceResolution
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.ExternalSourceResolution
public record ExternalSourceResolution(Map<String,ExternalSourceResolution.ResolvedSource> resolved)
extends Record
Holds the result of external source resolution (Iceberg/Parquet metadata).
This is carried in AnalyzerContext alongside IndexResolution, following the same pattern.
Each resolved source pairs its metadata with a
FileList describing the files to read.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aExternalSourceResolutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()resolved()Returns the value of theresolvedrecord component.resolvedSource(String path) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ExternalSourceResolution
Creates an instance of aExternalSourceResolutionrecord class.- Parameters:
resolved- the value for theresolvedrecord component
-
-
Method Details
-
resolvedSource
-
isEmpty
public boolean isEmpty() -
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). -
resolved
Returns the value of theresolvedrecord component.- Returns:
- the value of the
resolvedrecord component
-