graviti.dataframe.sql.container#

The search container and register.

Module Contents#

Classes#

SearchScalarContainer

The base class for the search container.

SearchContainer

The base class for the search array container.

SearchContainerRegister

The class decorator to connect portex type and the search array container.

class graviti.dataframe.sql.container.SearchScalarContainer(expr, schema)[source]#

The base class for the search container.

Parameters
  • expr (_E) – The expression of the search.

  • schema (graviti.portex.PortexType) – The schema of the series.

classmethod from_upper(cls, expr, schema)[source]#

Instantiate a Search object from the upper level.

Parameters
  • expr (_E) – The expression of the search.

  • schema (graviti.portex.PortexType) – The schema of the series.

  • cls (Type[_S]) –

Returns

The loaded object.

Return type

_S

class graviti.dataframe.sql.container.SearchContainer(expr, schema, upper_expr)[source]#

The base class for the search array container.

Parameters
  • expr (_E) – The expression of the search.

  • schema (graviti.portex.PortexType) – The schema of the series.

  • upper_expr (_E) – The expression of the search.

classmethod from_upper(cls, expr, schema)[source]#

Instantiate a Search object from the upper level.

Parameters
  • expr (_E) – The upper expression of the search.

  • schema (graviti.portex.PortexType) – The schema of the series.

Returns

The loaded object.

Return type

SearchContainer

class graviti.dataframe.sql.container.SearchContainerRegister(*portex_types)[source]#

The class decorator to connect portex type and the search array container.

Parameters

portex_types (Type[graviti.portex.base.PortexType]) – The portex types needs to be connected.