Class GeospatialStatistics
- java.lang.Object
-
- org.apache.parquet.column.statistics.geospatial.GeospatialStatistics
-
public class GeospatialStatistics extends Object
A structure for capturing metadata for estimating the unencoded, uncompressed size of geospatial data written.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeospatialStatistics.BuilderBuilder to create a GeospatialStatistics.
-
Constructor Summary
Constructors Constructor Description GeospatialStatistics()Constructs a GeospatialStatistics object with the specified CRS.GeospatialStatistics(String 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeospatialStatisticscopy()BoundingBoxgetBoundingBox()Returns the bounding box.GeospatialTypesgetGeospatialTypes()Returns the geometry types.booleanisValid()voidmerge(GeospatialStatistics other)static GeospatialStatistics.BuildernewBuilder(PrimitiveType type)Create a new GeospatialStatistics builder with the specified CRS.static GeospatialStatistics.BuildernoopBuilder()Creates a builder that doesn't collect any statistics.StringtoString()
-
-
-
Constructor Detail
-
GeospatialStatistics
public GeospatialStatistics(BoundingBox boundingBox, GeospatialTypes geospatialTypes)
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
public GeospatialStatistics(String crs)
Constructs a GeospatialStatistics object with the specified CRS.- Parameters:
crs- the coordinate reference system
-
-
Method Detail
-
newBuilder
public static GeospatialStatistics.Builder newBuilder(PrimitiveType type)
Create a new GeospatialStatistics builder with the specified CRS.- Parameters:
type- the primitive type- Returns:
- a new GeospatialStatistics builder
-
getBoundingBox
public BoundingBox getBoundingBox()
Returns the bounding box.
-
getGeospatialTypes
public GeospatialTypes getGeospatialTypes()
Returns the geometry types.
-
isValid
public boolean isValid()
- Returns:
- whether the statistics has valid value.
-
merge
public void merge(GeospatialStatistics other)
-
copy
public GeospatialStatistics copy()
-
noopBuilder
public static GeospatialStatistics.Builder noopBuilder()
Creates a builder that doesn't collect any statistics.
-
-