Class ContributionsExecutor

java.lang.Object
org.heigit.ohsome.ohsomeapi.executor.RequestExecutor
org.heigit.ohsome.ohsomeapi.executor.ContributionsExecutor

public class ContributionsExecutor extends RequestExecutor
Includes the execute method for requests mapped to /contributions/count, /contributions/count/density, /contributions/latest/count, /contributions/latest/count/density and /users/count.
  • Field Summary

    Fields inherited from class org.heigit.ohsome.ohsomeapi.executor.RequestExecutor

    ATTRIBUTION, df, servletRequest, servletResponse, TEXT, URL
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContributionsExecutor(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, boolean isDensity)
    Initializes a newly created ContributionsExecutor object.
  • Method Summary

    Modifier and Type
    Method
    Description
    count(boolean isUsersRequest, boolean isContributionsLatestCount)
    Handler method for count calculation of the endpoints /contributions/count, /contributions/density, /contributions/latest/count, /contributions/latest/count/density or /users/count.
    <P extends org.locationtech.jts.geom.Geometry & org.locationtech.jts.geom.Polygonal, V extends Comparable<V> & Serializable>
    Response
    countGroupByBoundary(boolean isUsersRequest)
    Handler method for count calculation of the endpoints /contributions/count/[density/]groupBy/boundary and /users/count/[density/]groupBy/boundary.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait