Package org.apache.orc.geospatial
Class GeospatialTypes
java.lang.Object
org.apache.orc.geospatial.GeospatialTypes
A list of geospatial types from all instances in the Geometry or Geography column,
or an empty list if they are not known.
The GeospatialTypes instance becomes invalid in the following cases:
- When an unknown or unsupported geometry type is encountered during update
- When merging with another invalid GeospatialTypes instance
- When explicitly aborted using abort()
When invalid, the types list is cleared and remains empty. All subsequent
updates and merges are ignored until reset() is called.
-
Constructor Summary
ConstructorsConstructorDescriptionGeospatialTypes(Set<Integer> types) GeospatialTypes(Set<Integer> types, boolean valid) -
Method Summary
-
Constructor Details
-
GeospatialTypes
-
GeospatialTypes
-
GeospatialTypes
public GeospatialTypes()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getTypes
-
update
public void update(org.locationtech.jts.geom.Geometry geometry) Updates the types list with the given geometry's type. If the geometry type is unknown, the instance becomes invalid.- Parameters:
geometry- the geometry to process
-
merge
-
reset
public void reset() -
isValid
public boolean isValid() -
copy
-
toString
-