graviti.dataframe.sql.array
#
The implementation of the search related array.
Module Contents#
Classes#
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 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.ScalarArray(expr, schema, upper_expr)[source]#
Bases:
graviti.dataframe.sql.container.SearchContainer
,graviti.dataframe.sql.scalar.LogicalOperatorsMixin
One-dimensional array for portex builtin type array.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –
- query(self, func)[source]#
Query the data of an ArraySeries with a lambda function.
- Parameters
- Returns
The ArraySeries with the query expression.
- Return type
- class graviti.dataframe.sql.array.BooleanScalarArray(expr, schema, upper_expr)[source]#
Bases:
ScalarArray
,graviti.dataframe.sql.scalar.LogicalOperatorsMixin
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.StringScalarArray(expr, schema, upper_expr)[source]#
Bases:
ScalarArray
,graviti.dataframe.sql.scalar.LogicalOperatorsMixin
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.NumberScalarArray(expr, schema, upper_expr)[source]#
Bases:
ScalarArray
,graviti.dataframe.sql.scalar.ComparisonArithmeticOperatorsMixin
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.SearchContainer
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.SearchContainer
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.SearchContainer
The One-dimensional array for the search.
- Parameters
expr (_E) –
schema (graviti.portex.PortexType) –
upper_expr (_E) –