great_expectations.datasource.data_connector.sorter

Package Contents

Classes

Sorter(name: str, orderby: str = ‘asc’)

CustomListSorter(name: str, orderby: str = ‘asc’, reference_list: List[str] = None)

CustomListSorter

DateTimeSorter(name: str, orderby: str = ‘asc’, datetime_format=’%Y%m%d’)

LexicographicSorter(name: str, orderby: str = ‘asc’)

NumericSorter(name: str, orderby: str = ‘asc’)

class great_expectations.datasource.data_connector.sorter.Sorter(name: str, orderby: str = 'asc')
get_sorted_batch_definitions(self, batch_definitions: List[BatchDefinition])
_verify_sorting_directives_and_get_partition_key(self, batch_definition: BatchDefinition)
abstract get_batch_key(self, batch_definition: BatchDefinition)
property name(self)
property reverse(self)
__repr__(self)

Return repr(self).

class great_expectations.datasource.data_connector.sorter.CustomListSorter(name: str, orderby: str = 'asc', reference_list: List[str] = None)

Bases: great_expectations.datasource.data_connector.sorter.Sorter

CustomListSorter - The CustomListSorter is able to sort partitions values according to a user-provided custom list.

static _validate_reference_list(reference_list: List[str] = None)
get_batch_key(self, batch_definition: BatchDefinition)
__repr__(self)

Return repr(self).

class great_expectations.datasource.data_connector.sorter.DateTimeSorter(name: str, orderby: str = 'asc', datetime_format='%Y%m%d')

Bases: great_expectations.datasource.data_connector.sorter.Sorter

get_batch_key(self, batch_definition: BatchDefinition)
__repr__(self)

Return repr(self).

class great_expectations.datasource.data_connector.sorter.LexicographicSorter(name: str, orderby: str = 'asc')

Bases: great_expectations.datasource.data_connector.sorter.Sorter

get_batch_key(self, batch_definition: BatchDefinition)
__repr__(self)

Return repr(self).

class great_expectations.datasource.data_connector.sorter.NumericSorter(name: str, orderby: str = 'asc')

Bases: great_expectations.datasource.data_connector.sorter.Sorter

get_batch_key(self, batch_definition: BatchDefinition)
__repr__(self)

Return repr(self).