src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/sums")
  @Produces({MediaType.APPLICATION_JSON})
  public Response sums() {
    try {
      before();
      return Response.ok(Helper.toJsonList(Sum.values()), MediaType.APPLICATION_JSON).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * SUMS endpoint is meant to showcase the different types of summations available in JSON form.
   * These are only applicable under the /divide, /filter and /histogram endpoints. Under /divide
   * and /filter, the "&sum=" type dictates what to sum of the filtered set. Under /histogram, the
   * "&sum=" type dictates what the Y axis of the histogram represents.
   */
SUMS endpoint is meant to showcase the different types of summations available in JSON form.
These are only applicable under the /divide, /filter and /histogram endpoints. Under /divide
and /filter, the "∑=" type dictates what to sum of the filtered set. Under /histogram, the
"∑=" type dictates what the Y axis of the histogram represents.
SUMS endpoint is meant to showcase the different types of summations available in JSON form . These are only applicable under the / divide / filter and / histogram endpoints . Under / divide and / filter the " ∑ = " type dictates what to sum of the filtered set . Under / histogram the " ∑ = " type dictates what the Y axis of the histogram represents .
@GET
  @Path("/sums")
  @Produces({MediaType.APPLICATION_JSON})
  public Response sums() {
    try {
      before();
      return Response.ok(Helper.toJsonList(Sum.values()), MediaType.APPLICATION_JSON).build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/sums" ) @ Produces ( { MediaType . APPLICATION_JSON } ) public Response sums ( ) { try { before ( ) ; return Response . ok ( Helper . toJsonList ( Sum . values ( ) ) , MediaType . APPLICATION_JSON ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
SUMS endpoint is meant to showcase the different types of summations available in JSON form.
SUMS endpoint is meant to showcase the different types of summations available in JSON form .