Class GeospatialStatistics
java.lang.Object
org.apache.parquet.column.statistics.geospatial.GeospatialStatistics
A structure for capturing metadata for estimating the unencoded,
uncompressed size of geospatial data written.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder to create a GeospatialStatistics. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a GeospatialStatistics object with the specified CRS.Constructs a GeospatialStatistics object with the specified CRS.GeospatialStatistics(BoundingBox boundingBox, GeospatialTypes geospatialTypes) Constructs a GeospatialStatistics object with the specified CRS, bounding box, and geospatial types. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns the bounding box.Returns the geometry types.booleanisValid()voidmerge(GeospatialStatistics other) static GeospatialStatistics.BuildernewBuilder(PrimitiveType type) Create a new GeospatialStatistics builder with the specified CRS.static GeospatialStatistics.BuilderCreates a builder that doesn't collect any statistics.toString()
-
Constructor Details
-
GeospatialStatistics
Constructs a GeospatialStatistics object with the specified CRS, bounding box, and geospatial types.- Parameters:
boundingBox- the bounding box for the geospatial data, or null if not applicable, note that - The bounding box (bbox) is omitted only if there are no X or Y values. - The Z and/or M statistics are omitted only if there are no Z and/or M values, respectively.geospatialTypes- the geospatial types
-
GeospatialStatistics
public GeospatialStatistics()Constructs a GeospatialStatistics object with the specified CRS. -
GeospatialStatistics
Constructs a GeospatialStatistics object with the specified CRS.- Parameters:
crs- the coordinate reference system
-
-
Method Details
-
newBuilder
Create a new GeospatialStatistics builder with the specified CRS.- Parameters:
type- the primitive type- Returns:
- a new GeospatialStatistics builder
-
getBoundingBox
Returns the bounding box. -
getGeospatialTypes
Returns the geometry types. -
isValid
public boolean isValid()- Returns:
- whether the statistics has valid value.
-
merge
-
copy
-
toString
-
noopBuilder
Creates a builder that doesn't collect any statistics.
-