graviti.dataframe.sql.array
#
The implementation of the search related array.
Module Contents#
Classes#
A mixin for dynamically implementing logical operators. |
|
A mixin for dynamically implementing euqal operators. |
|
A mixin for dynamically implementing comparison operators. |
|
A mixin for dynamically implementing arithmetic operators. |
|
One-dimensional array for portex builtin type array. |
|
One-dimensional array for portex builtin type array with the boolean items. |
|
One-dimensional array for portex builtin type array with the string and enum items. |
|
One-dimensional array for portex builtin type array with the string and enum items. |
|
One-dimensional array for portex builtin temporal types. |
|
One-dimensional array for portex builtin date type. |
|
One-dimensional array for portex builtin time type. |
|
One-dimensional array for portex builtin timestamp type. |
|
One-dimensional array for portex builtin timedelta type. |
|
One-dimensional array for portex builtin type array with the numerical items. |
|
The Two-dimensional array for the search. |
|
A distributor to instance DataFrame, ArrayScalar by different array items. |
|
The One-dimensional array for the search. |
- class graviti.dataframe.sql.array.LogicalOperatorsMixin(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
A mixin for dynamically implementing logical operators.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.EqualOperatorsMixin(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
A mixin for dynamically implementing euqal operators.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.ComparisonOperatorsMixin(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
A mixin for dynamically implementing comparison operators.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.ArithmeticOperatorsMixin(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
A mixin for dynamically implementing arithmetic operators.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.Array(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
One-dimensional array for portex builtin type array.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- any(self)[source]#
Whether any element is True.
- Returns
The BooleanSeries with the any expression.
- Return type
- class graviti.dataframe.sql.array.BooleanArray(expr, schema, upper_expr)[source]#
Bases:
Array
,LogicalOperatorsMixin
,EqualOperatorsMixin
One-dimensional array for portex builtin type array with the boolean items.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.StringArray(expr, schema, upper_expr)[source]#
Bases:
Array
,LogicalOperatorsMixin
,EqualOperatorsMixin
One-dimensional array for portex builtin type array with the string and enum items.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.EnumArray(expr, schema, upper_expr)[source]#
Bases:
Array
,EqualOperatorsMixin
One-dimensional array for portex builtin type array with the string and enum items.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.TemporalArrayBase(expr, schema, upper_expr)[source]#
Bases:
Array
,EqualOperatorsMixin
,ComparisonOperatorsMixin
One-dimensional array for portex builtin temporal types.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.DateArray(expr, schema, upper_expr)[source]#
Bases:
TemporalArrayBase
One-dimensional array for portex builtin date type.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.TimeArray(expr, schema, upper_expr)[source]#
Bases:
TemporalArrayBase
One-dimensional array for portex builtin time type.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.TimestampArray(expr, schema, upper_expr)[source]#
Bases:
TemporalArrayBase
One-dimensional array for portex builtin timestamp type.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.TimedeltaArray(expr, schema, upper_expr)[source]#
Bases:
TemporalArrayBase
One-dimensional array for portex builtin timedelta type.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.NumberArray(expr, schema, upper_expr)[source]#
Bases:
Array
,ComparisonOperatorsMixin
,ArithmeticOperatorsMixin
One-dimensional array for portex builtin type array with the numerical items.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- size(self)[source]#
Get the length of array series.
- Returns
The NumberScalar with the size expression.
- Return type
- max(self)[source]#
Get the max value of array series.
- Returns
The NumberScalar with the max expression.
- Return type
- min(self)[source]#
Get the min value of array series.
- Returns
The NumberScalar with the min expression.
- Return type
- class graviti.dataframe.sql.array.DataFrame(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
The Two-dimensional array for the search.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.ArrayDistributor(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
A distributor to instance DataFrame, ArrayScalar by different array items.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- class graviti.dataframe.sql.array.ArraySeries(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.ArrayContainer
The One-dimensional array for the search.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –