flywheel.models.column
Column
Bases: object
accumulator property writable
Gets the accumulator of this Column.
Returns:
| Type | Description |
|---|---|
Accumulator | The accumulator of this Column |
dst property writable
Gets the dst of this Column.
The optional destination property name
Returns:
| Type | Description |
|---|---|
str | The dst of this Column |
expr property writable
Gets the expr of this Column.
An optional expression, allowing simple calculations (add, subtract, multiply, divide). Use 'x' to substitute the column
Returns:
| Type | Description |
|---|---|
str | The expr of this Column |
src property writable
Gets the src of this Column.
The source property in the format of {container}.{field}
Returns:
| Type | Description |
|---|---|
str | The src of this Column |
type property writable
Gets the type of this Column.
Returns:
| Type | Description |
|---|---|
TypeStr | The type of this Column |
__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)
Column - 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 | (TypeStr, optional) | , 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 | (Accumulator, optional) | , 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