DirectoryDataAsset
class great_expectations.datasource.fluent.data_asset.path.directory_asset.DirectoryDataAsset(*, name: <pydantic.v1.fields.DeferredType object at 0x7f6abcf2b440>, type: <pydantic.v1.fields.DeferredType object at 0x7f6abcf2b500>, id: <pydantic.v1.fields.DeferredType object at 0x7f6abcf2b5c0> = None, order_by: <pydantic.v1.fields.DeferredType object at 0x7f6abcf2b680> = None, batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f6abcf2b7d0> = None, batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f6abcf2b980> = None, connect_options: <pydantic.v1.fields.DeferredType object at 0x7f6abcf2ba40> = None, data_directory: pathlib.Path, **extra_data: typing.Any)#
Base class for PathDataAssets which batch by combining the contents of a directory.
add_batch_definition_daily(name: str, column: str) BatchDefinition #
add_batch_definition_monthly(name: str, column: str) BatchDefinition #
- add_batch_definition_whole_directory(name: str)BatchDefinition #
Add a BatchDefinition which creates a single batch for the entire directory.
add_batch_definition_yearly(name: str, column: str) BatchDefinition #
- delete_batch_definition(name: str)None #
Delete a batch definition.
- Parameters
name (str) – Name of the BatchDefinition to delete.
- get_batch_definition(name: str)great_expectations.core.batch_definition.BatchDefinition #
Get a batch definition.
- Parameters
name (str) – Name of the BatchDefinition to get.
- Raises
KeyError – If the BatchDefinition does not exist.