Class SeriesAggregator.Result

java.lang.Object
org.apache.juneau.console.data.SeriesAggregator.Result
Enclosing class:
SeriesAggregator

public static final class SeriesAggregator.Result extends Object
An aggregate result in columnar form: the dims, their types, and one value list per dim.
  • Method Details

    • dims

      public List<String> dims()
      Returns:
      The dim names: bucket, the groupBy fields, then the measures.
    • columns

      Returns:
      Each dim's values, in row order; bucket is epoch milliseconds UTC and a group value may be null.
    • truncated

      public boolean truncated()
      Returns:
      True when the cell cap dropped rows.
    • toMap

      public JsonMap toMap()
      The response body: {schemaVersion, dims:[{name,type}], columns, truncated}.
      Returns:
      A new map.
    • writeTo

      public void writeTo(RestResponse res) throws IOException
      Writes the body as application/json with nosniff.
      Parameters:
      res - The response.
      Throws:
      IOException - If the writer fails.