Record Class SchemaElement
java.lang.Object
java.lang.Record
dev.hardwood.metadata.SchemaElement
public record SchemaElement(String name, PhysicalType type, Integer typeLength, RepetitionType repetitionType, Integer numChildren, ConvertedType convertedType, Integer scale, Integer precision, Integer fieldId, LogicalType logicalType)
extends Record
Schema element in Parquet file metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaElement(String name, PhysicalType type, Integer typeLength, RepetitionType repetitionType, Integer numChildren, ConvertedType convertedType, Integer scale, Integer precision, Integer fieldId, LogicalType logicalType) Creates an instance of aSchemaElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconvertedTyperecord component.final booleanIndicates whether some other object is "equal to" this one.fieldId()Returns the value of thefieldIdrecord component.final inthashCode()Returns a hash code value for this object.booleanisGroup()booleanReturns the value of thelogicalTyperecord component.name()Returns the value of thenamerecord component.Returns the value of thenumChildrenrecord component.Returns the value of theprecisionrecord component.Returns the value of therepetitionTyperecord component.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of thetypeLengthrecord component.
-
Constructor Details
-
SchemaElement
public SchemaElement(String name, PhysicalType type, Integer typeLength, RepetitionType repetitionType, Integer numChildren, ConvertedType convertedType, Integer scale, Integer precision, Integer fieldId, LogicalType logicalType) Creates an instance of aSchemaElementrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componenttypeLength- the value for thetypeLengthrecord componentrepetitionType- the value for therepetitionTyperecord componentnumChildren- the value for thenumChildrenrecord componentconvertedType- the value for theconvertedTyperecord componentscale- the value for thescalerecord componentprecision- the value for theprecisionrecord componentfieldId- the value for thefieldIdrecord componentlogicalType- the value for thelogicalTyperecord component
-
-
Method Details
-
isGroup
public boolean isGroup() -
isPrimitive
public boolean isPrimitive() -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
typeLength
Returns the value of thetypeLengthrecord component.- Returns:
- the value of the
typeLengthrecord component
-
repetitionType
Returns the value of therepetitionTyperecord component.- Returns:
- the value of the
repetitionTyperecord component
-
numChildren
Returns the value of thenumChildrenrecord component.- Returns:
- the value of the
numChildrenrecord component
-
convertedType
Returns the value of theconvertedTyperecord component.- Returns:
- the value of the
convertedTyperecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
precision
Returns the value of theprecisionrecord component.- Returns:
- the value of the
precisionrecord component
-
fieldId
Returns the value of thefieldIdrecord component.- Returns:
- the value of the
fieldIdrecord component
-
logicalType
Returns the value of thelogicalTyperecord component.- Returns:
- the value of the
logicalTyperecord component
-