Record Class LogicalType.VariantType
java.lang.Object
java.lang.Record
dev.hardwood.metadata.LogicalType.VariantType
- Record Components:
specVersion- spec version declared by the writer (currently always1)
- All Implemented Interfaces:
LogicalType
- Enclosing interface:
LogicalType
Variant (self-describing, semi-structured) logical type per the Parquet
Variant spec. Annotates a group whose children are
metadata (binary) and
value (binary), optionally with a typed_value sibling for shredded form.-
Nested Class Summary
Nested classes/interfaces inherited from interface LogicalType
LogicalType.BsonType, LogicalType.DateType, LogicalType.DecimalType, LogicalType.EnumType, LogicalType.IntervalType, LogicalType.IntType, LogicalType.JsonType, LogicalType.ListType, LogicalType.MapType, LogicalType.StringType, LogicalType.TimestampType, LogicalType.TimeType, LogicalType.TimeUnit, LogicalType.UuidType, LogicalType.VariantType -
Constructor Summary
ConstructorsConstructorDescriptionVariantType(int specVersion) Creates an instance of aVariantTyperecord 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.intReturns the value of thespecVersionrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
VariantType
public VariantType(int specVersion) Creates an instance of aVariantTyperecord class.- Parameters:
specVersion- the value for thespecVersionrecord component
-
-
Method Details
-
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 with thecomparemethod from their corresponding wrapper classes. -
specVersion
public int specVersion()Returns the value of thespecVersionrecord component.- Returns:
- the value of the
specVersionrecord component
-