Skip to content

flywheel.models.data_view_column_spec

DataViewColumnSpec

Bases: object

accumulator property writable

Gets the accumulator of this DataViewColumnSpec.

Accumulation operator for an a group by aggregation

Returns:

Type Description
str

The accumulator of this DataViewColumnSpec

dst property writable

Gets the dst of this DataViewColumnSpec.

The optional destination property name

Returns:

Type Description
str

The dst of this DataViewColumnSpec

expr property writable

Gets the expr of this DataViewColumnSpec.

An optional expression, allowing simple calculations (add, subtract, multiply, divide). Use 'x' to substitute the column

Returns:

Type Description
str

The expr of this DataViewColumnSpec

src property writable

Gets the src of this DataViewColumnSpec.

The source property in the format of {container}.{field}

Returns:

Type Description
str

The src of this DataViewColumnSpec

type property writable

Gets the type of this DataViewColumnSpec.

The type that this value should be translated to (for typed output)

Returns:

Type Description
str

The type of this DataViewColumnSpec

__contains__(key)

Checks if the given value is a key in this object

__eq__(other)

Returns true if both objects are equal

__getitem__(key)

Returns the value of key

__init__(src=None, dst=None, type=None, expr=None, accumulator=None)

DataViewColumnSpec - a model defined in Swagger

Parameters:

Name Type Description Default
src (str, optional)

The source property in the format of {container}.{field}, defaults to None

None
dst (str, optional)

The optional destination property name, defaults to None

None
type (str, optional)

The type that this value should be translated to (for typed output), defaults to None

None
expr (str, optional)

An optional expression, allowing simple calculations (add, subtract, multiply, divide). Use 'x' to substitute the column, defaults to None

None
accumulator (str, optional)

Accumulation operator for an a group by aggregation, defaults to None

None

__ne__(other)

Returns true if both objects are not equal

__repr__()

For print and pprint

__setitem__(key, value)

Sets the value of key

get(key, default=None)

Get the value of the provided json property, or default

items()

Returns the list of json property to value mapping

keys()

Returns the list of json properties in the object

positional_to_model(value) staticmethod

Converts a positional argument to a model value

return_value()

Unwraps return value from model

to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

values()

Returns the list of values in the object