public class

AggregateDataTypes

extends Object
java.lang.Object
   ↳ com.google.android.gms.fitness.data.AggregateDataTypes

Class Overview

Definition of data types in the com.google namespace which represent aggregates of other data types over a time period.

Aggregate data types are used mainly in the result of a DataReadRequest with a specified bucketing strategy. Though they can be stored directly, it's preferred to store the un-aggregated data type instead.

Summary

Fields
public static final DataType ACTIVITY_SUMMARY In the com.google.activity.summary data type, each data point represents a summary of all activity segments of a particular activity type over a time interval.
public static final DataType DISTANCE_DELTA Aggregate distance, in meters, during a time interval.
public static final DataType HEART_RATE_SUMMARY In the com.google.heart_rate.summary data type, each data point represents average, maximum and minimum beats per minute over the time interval of the data point.
public static final Set<DataType> INPUT_TYPES List of data types that are supported as input data types for aggregation.
public static final DataType LOCATION_BOUNDING_BOX In the com.google.location.bounding_box data type, a data point represents the bounding box computed over user's location data points over a time interval.
public static final DataType POWER_SUMMARY In the com.google.power.summary data type, each data point represents average, maximum and minimum watts over the time interval of the data point.
public static final DataType SPEED_SUMMARY In the com.google.speed.summary data type, each data point represents the average, maximum and minimum speed over ground, in meters/second, over the time interval of the data point.
public static final DataType STEP_COUNT_DELTA Aggregate number of steps during a time interval.
public static final DataType WEIGHT_SUMMARY In the com.google.weight.summary data type, each data point represents the average, maximum and minimum weight, in kilograms, over the time interval of the data point.
Public Methods
static List<DataType> getForInput(DataType inputDataType)
Returns a list of output aggregate data types for the specified inputDataType.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final DataType ACTIVITY_SUMMARY

In the com.google.activity.summary data type, each data point represents a summary of all activity segments of a particular activity type over a time interval. The data type has three fields:

  1. activity an integer constant defined in DetectedActivity
  2. duration an integer denoting the total time spent, in milliseconds, in this activity across all segments over the time interval of this data point
  3. num_segments number of distinct activity segments over the time interval of this data point

Because this is an aggregate data type, start and end times should be set.

public static final DataType DISTANCE_DELTA

Aggregate distance, in meters, during a time interval. This data type is also used for non-aggregated data. The full definition can be found at DISTANCE_DELTA.

public static final DataType HEART_RATE_SUMMARY

In the com.google.heart_rate.summary data type, each data point represents average, maximum and minimum beats per minute over the time interval of the data point.

Because this is an aggregate data type, start and end times should be set.

public static final Set<DataType> INPUT_TYPES

List of data types that are supported as input data types for aggregation.

public static final DataType LOCATION_BOUNDING_BOX

In the com.google.location.bounding_box data type, a data point represents the bounding box computed over user's location data points over a time interval. Each bounding box has four fields:

  1. low_latitude latitude of the lower left corner of the box, represented as a float, in degrees
  2. low_longitude longitude of the lower left corner of the box, represented as a float, in degrees
  3. high_latitude latitude of the upper right corner of the box, represented as a float, in degrees
  4. high_longitude longitude of the upper right corner of the box, represented as a float, in degrees
Because this is an aggregate data type, start and end times should be set.

public static final DataType POWER_SUMMARY

In the com.google.power.summary data type, each data point represents average, maximum and minimum watts over the time interval of the data point.

Because this is an aggregate data type, start and end times should be set.

public static final DataType SPEED_SUMMARY

In the com.google.speed.summary data type, each data point represents the average, maximum and minimum speed over ground, in meters/second, over the time interval of the data point.

Because this is an aggregate data type, the start and end times should be set.

public static final DataType STEP_COUNT_DELTA

Aggregate number of steps during a time interval. This data type is also used for non-aggregated data. The full definition can be found at STEP_COUNT_DELTA.

public static final DataType WEIGHT_SUMMARY

In the com.google.weight.summary data type, each data point represents the average, maximum and minimum weight, in kilograms, over the time interval of the data point.

Because this is an aggregate data type, the start and end times should be set.

Public Methods

public static List<DataType> getForInput (DataType inputDataType)

Returns a list of output aggregate data types for the specified inputDataType.