Record Class SchemaReconciliation.FileSchemaInfo
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.SchemaReconciliation.FileSchemaInfo
- Record Components:
fileSchema- the original schema from this filemapping- column mapping from unified schema to file schema, null for identity mappingstatistics- optional statistics from file metadata
- Enclosing class:
SchemaReconciliation
public static record SchemaReconciliation.FileSchemaInfo(List<Attribute> fileSchema, SchemaReconciliation.ColumnMapping mapping, SourceStatistics statistics)
extends Record
Per-file schema information collected during reconciliation.
-
Constructor Summary
ConstructorsConstructorDescriptionFileSchemaInfo(List<Attribute> fileSchema, SchemaReconciliation.ColumnMapping mapping, SourceStatistics statistics) Creates an instance of aFileSchemaInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileSchemarecord component.final inthashCode()Returns a hash code value for this object.mapping()Returns the value of themappingrecord component.Returns the value of thestatisticsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileSchemaInfo
public FileSchemaInfo(List<Attribute> fileSchema, @Nullable SchemaReconciliation.ColumnMapping mapping, @Nullable SourceStatistics statistics) Creates an instance of aFileSchemaInforecord class.- Parameters:
fileSchema- the value for thefileSchemarecord componentmapping- the value for themappingrecord componentstatistics- the value for thestatisticsrecord 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). -
fileSchema
Returns the value of thefileSchemarecord component.- Returns:
- the value of the
fileSchemarecord component
-
mapping
Returns the value of themappingrecord component.- Returns:
- the value of the
mappingrecord component
-
statistics
Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-