Module secfsdstools.d_container.filter
Base class for Filter implementations.
Expand source code
"""
Base class for Filter implementations.
"""
from abc import abstractmethod
from typing import TypeVar, Generic
T = TypeVar('T')
class FilterBase(Generic[T]):
"""
Basic pathfilter definition.
"""
@abstractmethod
def filter(self, databag: T) -> T:
"""
implements a simple pathfilter on the RawDataBag and produces a new databag
Args:
databag (T): the bag to apply the pathfilter to
Returns:
T: the new bag with the filtered content
"""
Classes
class FilterBase (*args, **kwds)
-
Basic pathfilter definition.
Expand source code
class FilterBase(Generic[T]): """ Basic pathfilter definition. """ @abstractmethod def filter(self, databag: T) -> T: """ implements a simple pathfilter on the RawDataBag and produces a new databag Args: databag (T): the bag to apply the pathfilter to Returns: T: the new bag with the filtered content """
Ancestors
- typing.Generic
Subclasses
- AdshJoinedFilter
- CIKJoinedFilter
- MainCoregJoinedFilter
- NoSegmentInfoJoinedFilter
- OfficialTagsOnlyJoinedFilter
- ReportPeriodAndPreviousPeriodJoinedFilter
- ReportPeriodJoinedFilter
- StmtJoinedFilter
- TagJoinedFilter
- USDOnlyJoinedFilter
- AdshRawFilter
- CIKRawFilter
- MainCoregRawFilter
- NoSegmentInfoRawFilter
- OfficialTagsOnlyRawFilter
- ReportPeriodAndPreviousPeriodRawFilter
- ReportPeriodRawFilter
- StmtRawFilter
- TagRawFilter
- USDOnlyRawFilter
Methods
def filter(self, databag: ~T) ‑> ~T
-
implements a simple pathfilter on the RawDataBag and produces a new databag
Args
databag
:T
- the bag to apply the pathfilter to
Returns
T
- the new bag with the filtered content
Expand source code
@abstractmethod def filter(self, databag: T) -> T: """ implements a simple pathfilter on the RawDataBag and produces a new databag Args: databag (T): the bag to apply the pathfilter to Returns: T: the new bag with the filtered content """