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.
  • Constructor Details

    • 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 Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • noopBuilder

      public static GeospatialStatistics.Builder noopBuilder()
      Creates a builder that doesn't collect any statistics.