Record Class LogicalType.GeographyType
java.lang.Object
java.lang.Record
dev.hardwood.metadata.LogicalType.GeographyType
- Record Components:
crs- geospatial coordinate reference system, OGC:CRS84 if absentedgeInterpolation- geodesic formulation
- All Implemented Interfaces:
LogicalType
- Enclosing interface:
LogicalType
public static record LogicalType.GeographyType(String crs, LogicalType.EdgeInterpolationAlgorithm edgeInterpolation)
extends Record
implements LogicalType
Geography type with configurable CRS
-
Nested Class Summary
Nested classes/interfaces inherited from interface LogicalType
LogicalType.BsonType, LogicalType.DateType, LogicalType.DecimalType, LogicalType.EdgeInterpolationAlgorithm, LogicalType.EnumType, LogicalType.Float16Type, LogicalType.GeographyType, LogicalType.GeometryType, LogicalType.IntervalType, LogicalType.IntType, LogicalType.JsonType, LogicalType.ListType, LogicalType.MapType, LogicalType.NullType, LogicalType.StringType, LogicalType.TimestampType, LogicalType.TimeType, LogicalType.TimeUnit, LogicalType.UuidType, LogicalType.VariantType -
Constructor Summary
ConstructorsConstructorDescriptionGeographyType(String crs, LogicalType.EdgeInterpolationAlgorithm edgeInterpolation) Creates an instance of aGeographyTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptioncrs()Returns the value of thecrsrecord component.Returns the value of theedgeInterpolationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeographyType
Creates an instance of aGeographyTyperecord class.- Parameters:
crs- the value for thecrsrecord componentedgeInterpolation- the value for theedgeInterpolationrecord 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 withObjects::equals(Object,Object). -
crs
-
edgeInterpolation
Returns the value of theedgeInterpolationrecord component.- Returns:
- the value of the
edgeInterpolationrecord component
-