Package com.jerolba.carpet.impl.read
Record Class ColumnToFieldMapper.NameMap
java.lang.Object
java.lang.Record
com.jerolba.carpet.impl.read.ColumnToFieldMapper.NameMap
- Enclosing class:
- ColumnToFieldMapper
public static record ColumnToFieldMapper.NameMap(RecordComponent recordComponent, org.apache.parquet.schema.Type parquetType)
extends Record
-
Constructor Summary
ConstructorDescriptionNameMap
(RecordComponent recordComponent, org.apache.parquet.schema.Type parquetType) Creates an instance of aNameMap
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.apache.parquet.schema.Type
Returns the value of theparquetType
record component.Returns the value of therecordComponent
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
NameMap
Creates an instance of aNameMap
record class.- Parameters:
recordComponent
- the value for therecordComponent
record componentparquetType
- the value for theparquetType
record 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)
. -
recordComponent
Returns the value of therecordComponent
record component.- Returns:
- the value of the
recordComponent
record component
-
parquetType
public org.apache.parquet.schema.Type parquetType()Returns the value of theparquetType
record component.- Returns:
- the value of the
parquetType
record component
-