DimensionResponse class
Preview: A chart dimension for an SQL query. This is applied over the x-axis. This is a preview feature and may be subject to change before final release.
Constructors
-
DimensionResponse({required Input<
String> column, required Input<String> columnType, required Input<double> floatBinSize, required Input<int> maxBinCount, required Input<int> numericBinSize, required Input<String> sortColumn, required Input<String> sortOrder, required Input<String> timeBinSize}) -
Creates a new DimensionResponse.
columnThe name of the column in the source SQL query that is used to chart the dimension.columnTypeOptional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.floatBinSizeOptional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.maxBinCountA limit to the number of bins generated. When 0 is specified, the maximum count is not enforced.numericBinSizenumeric_bin_size is used when the column type used for a dimension is numeric or string.sortColumnThe column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.sortOrderThe sort order applied to the sort column.timeBinSizetime_bin_size is used when the data type specified by column is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.const -
DimensionResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
column
→ Input<
String> -
The name of the column in the source SQL query that is used to chart the dimension.
final
-
columnType
→ Input<
String> -
Optional. The type of the dimension column. This is relevant only if one of the bin_size fields is set. If it is empty, the type TIMESTAMP or INT64 will be assumed based on which bin_size field is set. If populated, this should be set to one of the following types: DATE, TIME, DATETIME, TIMESTAMP, BIGNUMERIC, INT64, NUMERIC, FLOAT64.
final
-
floatBinSize
→ Input<
double> -
Optional. float_bin_size is used when the column type used for a dimension is a floating point numeric column.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maxBinCount
→ Input<
int> -
A limit to the number of bins generated. When 0 is specified, the maximum count is not enforced.
final
-
numericBinSize
→ Input<
int> -
numeric_bin_size is used when the column type used for a dimension is numeric or string.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sortColumn
→ Input<
String> -
The column name to sort on for binning. This column can be the same column as this dimension or any other column used as a measure in the results. If sort_order is set to NONE, then this value is not used.
final
-
sortOrder
→ Input<
String> -
The sort order applied to the sort column.
final
-
timeBinSize
→ Input<
String> -
time_bin_size is used when the data type specified by column is a time type and the bin size is determined by a time duration. If column_type is DATE, this must be a whole value multiple of 1 day. If column_type is TIME, this must be less than or equal to 24 hours.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited