A stream feature view defines a logical group of features that has both a stream data source and a batch data source. Attributes: name: The unique name of the stream feature view. mode: The transformation mode to use for the stream feature view. This can be one of Trans
| 44 | |
| 45 | @typechecked |
| 46 | class StreamFeatureView(FeatureView): |
| 47 | """ |
| 48 | A stream feature view defines a logical group of features that has both a stream data source and |
| 49 | a batch data source. |
| 50 | |
| 51 | Attributes: |
| 52 | name: The unique name of the stream feature view. |
| 53 | mode: The transformation mode to use for the stream feature view. This can be one of TransformationMode. |
| 54 | entities: List of entities or entity join keys. |
| 55 | ttl: The amount of time this group of features lives. A ttl of 0 indicates that |
| 56 | this group of features lives forever. Note that large ttl's or a ttl of 0 |
| 57 | can result in extremely computationally intensive queries. |
| 58 | schema: The schema of the feature view, including feature, timestamp, and entity |
| 59 | columns. If not specified, can be inferred from the underlying data source. |
| 60 | source: The stream source of data where this group of features is stored. |
| 61 | aggregations: List of aggregations registered with the stream feature view. |
| 62 | timestamp_field: Must be specified if aggregations are specified. Defines the timestamp column on which to aggregate windows. |
| 63 | enable_tiling: Enable tiling optimization for efficient windowed aggregations. |
| 64 | tiling_hop_size: Time interval between tiles (e.g., 5 minutes). Defaults to 5 minutes. |
| 65 | online: A boolean indicating whether online retrieval, and write to online store is enabled for this feature view. |
| 66 | offline: A boolean indicating whether offline retrieval, and write to offline store is enabled for this feature view. |
| 67 | description: A human-readable description. |
| 68 | tags: A dictionary of key-value pairs to store arbitrary metadata. |
| 69 | owner: The owner of the stream feature view, typically the email of the primary maintainer. |
| 70 | org: The organizational unit that owns this stream feature view (e.g. "ads", "search"). |
| 71 | Defaults to empty string. |
| 72 | udf: The user defined transformation function. This transformation function should have all of the corresponding imports imported within the function. |
| 73 | udf_string: The string representation of the user defined transformation function. |
| 74 | feature_transformation: The transformation to apply to the features. |
| 75 | Note, feature_transformation has precedence over udf and udf_string. |
| 76 | stream_engine: Optional dictionary containing stream engine specific configurations. |
| 77 | Note, it will override the repo-level default stream engine config defined in the yaml file. |
| 78 | """ |
| 79 | |
| 80 | name: str |
| 81 | entities: List[str] |
| 82 | ttl: Optional[timedelta] |
| 83 | source: DataSource |
| 84 | sink_source: Optional[DataSource] = None |
| 85 | schema: List[Field] |
| 86 | entity_columns: List[Field] |
| 87 | features: List[Field] |
| 88 | online: bool |
| 89 | offline: bool |
| 90 | description: str |
| 91 | tags: Dict[str, str] |
| 92 | owner: str |
| 93 | org: str |
| 94 | mode: Union[TransformationMode, str] |
| 95 | materialization_intervals: List[Tuple[datetime, datetime]] |
| 96 | udf: Optional[FunctionType] |
| 97 | udf_string: Optional[str] |
| 98 | feature_transformation: Optional[Transformation] |
| 99 | stream_engine: Optional[Dict[str, Any]] = None |
| 100 | aggregations: List[Aggregation] |
| 101 | timestamp_field: str |
| 102 | enable_tiling: bool |
| 103 | tiling_hop_size: Optional[timedelta] |
no outgoing calls