Package org.apache.parquet.format
Class GeographyType
- java.lang.Object
-
- org.apache.parquet.format.GeographyType
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<GeographyType>,org.apache.thrift.TBase<GeographyType,GeographyType._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.22.0)", date="2025-12-22") public class GeographyType extends Object implements org.apache.thrift.TBase<GeographyType,GeographyType._Fields>, Serializable, Cloneable, Comparable<GeographyType>Embedded Geography logical type annotation Geospatial features in the WKB format with an explicit (non-linear/non-planar) edges interpolation algorithm. A custom geographic CRS can be set by the crs field, where longitudes are bound by [-180, 180] and latitudes are bound by [-90, 90]. If unset, the CRS defaults to "OGC:CRS84". An optional algorithm can be set to correctly interpret edges interpolation of the geometries. If unset, the algorithm defaults to SPHERICAL. Allowed for physical type: BYTE_ARRAY. See Geospatial.md for details.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeographyType._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description EdgeInterpolationAlgorithmalgorithmStringcrsstatic Map<GeographyType._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMap
-
Constructor Summary
Constructors Constructor Description GeographyType()GeographyType(GeographyType other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(GeographyType other)GeographyTypedeepCopy()booleanequals(Object that)booleanequals(GeographyType that)GeographyType._FieldsfieldForId(int fieldId)EdgeInterpolationAlgorithmgetAlgorithm()StringgetCrs()ObjectgetFieldValue(GeographyType._Fields field)inthashCode()booleanisSet(GeographyType._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAlgorithm()Returns true if field algorithm is set (has been assigned a value) and false otherwisebooleanisSetCrs()Returns true if field crs is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)GeographyTypesetAlgorithm(EdgeInterpolationAlgorithm algorithm)voidsetAlgorithmIsSet(boolean value)GeographyTypesetCrs(String crs)voidsetCrsIsSet(boolean value)voidsetFieldValue(GeographyType._Fields field, Object value)StringtoString()voidunsetAlgorithm()voidunsetCrs()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
crs
public String crs
-
algorithm
public EdgeInterpolationAlgorithm algorithm
- See Also:
EdgeInterpolationAlgorithm
-
metaDataMap
public static final Map<GeographyType._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
GeographyType
public GeographyType()
-
GeographyType
public GeographyType(GeographyType other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public GeographyType deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<GeographyType,GeographyType._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<GeographyType,GeographyType._Fields>
-
getCrs
public String getCrs()
-
setCrs
public GeographyType setCrs(String crs)
-
unsetCrs
public void unsetCrs()
-
isSetCrs
public boolean isSetCrs()
Returns true if field crs is set (has been assigned a value) and false otherwise
-
setCrsIsSet
public void setCrsIsSet(boolean value)
-
getAlgorithm
public EdgeInterpolationAlgorithm getAlgorithm()
- See Also:
EdgeInterpolationAlgorithm
-
setAlgorithm
public GeographyType setAlgorithm(EdgeInterpolationAlgorithm algorithm)
- See Also:
EdgeInterpolationAlgorithm
-
unsetAlgorithm
public void unsetAlgorithm()
-
isSetAlgorithm
public boolean isSetAlgorithm()
Returns true if field algorithm is set (has been assigned a value) and false otherwise
-
setAlgorithmIsSet
public void setAlgorithmIsSet(boolean value)
-
setFieldValue
public void setFieldValue(GeographyType._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<GeographyType,GeographyType._Fields>
-
getFieldValue
public Object getFieldValue(GeographyType._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<GeographyType,GeographyType._Fields>
-
isSet
public boolean isSet(GeographyType._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<GeographyType,GeographyType._Fields>
-
equals
public boolean equals(GeographyType that)
-
compareTo
public int compareTo(GeographyType other)
- Specified by:
compareToin interfaceComparable<GeographyType>
-
fieldForId
public GeographyType._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<GeographyType,GeographyType._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-