A FeatureView defines a logical group of features. Attributes: name: The unique name of the feature view. entities: The list of names of entities that this feature view is associated with. ttl: The amount of time this group of features lives. A ttl of 0 indicates th
| 109 | |
| 110 | @typechecked |
| 111 | class FeatureView(BaseFeatureView): |
| 112 | """ |
| 113 | A FeatureView defines a logical group of features. |
| 114 | |
| 115 | Attributes: |
| 116 | name: The unique name of the feature view. |
| 117 | entities: The list of names of entities that this feature view is associated with. |
| 118 | ttl: The amount of time this group of features lives. A ttl of 0 indicates that |
| 119 | this group of features lives forever. Note that large ttl's or a ttl of 0 |
| 120 | can result in extremely computationally intensive queries. |
| 121 | batch_source: Optional batch source of data where this group of features |
| 122 | is stored. If no source is provided, this will be None. |
| 123 | stream_source: The stream source of data where this group of features is stored. |
| 124 | schema: The schema of the feature view, including feature, timestamp, and entity |
| 125 | columns. If not specified, can be inferred from the underlying data source. |
| 126 | entity_columns: The list of entity columns contained in the schema. If not specified, |
| 127 | can be inferred from the underlying data source. |
| 128 | features: The list of feature columns contained in the schema. If not specified, |
| 129 | can be inferred from the underlying data source. |
| 130 | online: A boolean indicating whether online retrieval is enabled for this feature |
| 131 | view. |
| 132 | description: A human-readable description. |
| 133 | tags: A dictionary of key-value pairs to store arbitrary metadata. |
| 134 | owner: The owner of the feature view, typically the email of the primary |
| 135 | maintainer. |
| 136 | org: The organizational unit that owns this feature view (e.g. "ads", "search"). |
| 137 | Defaults to empty string. |
| 138 | mode: The transformation mode for feature transformations. Only meaningful when |
| 139 | transformations are applied. Choose from TransformationMode enum values |
| 140 | (e.g., PYTHON, PANDAS, RAY, SQL, SPARK, SUBSTRAIT). |
| 141 | """ |
| 142 | |
| 143 | name: str |
| 144 | entities: List[str] |
| 145 | ttl: Optional[timedelta] |
| 146 | batch_source: Optional[DataSource] |
| 147 | stream_source: Optional[DataSource] |
| 148 | source_views: Optional[List["FeatureView"]] |
| 149 | entity_columns: List[Field] |
| 150 | features: List[Field] |
| 151 | online: bool |
| 152 | offline: bool |
| 153 | description: str |
| 154 | tags: Dict[str, str] |
| 155 | owner: str |
| 156 | org: str |
| 157 | materialization_intervals: List[Tuple[datetime, datetime]] |
| 158 | mode: Optional[Union["TransformationMode", str]] |
| 159 | enable_validation: bool |
| 160 | enabled: bool |
| 161 | state: FeatureViewState |
| 162 | _raw_feature_transformation_proto: Optional[Message] = None |
| 163 | |
| 164 | def __init__( |
| 165 | self, |
| 166 | *, |
| 167 | name: str, |
| 168 | source: Optional[Union[DataSource, "FeatureView", List["FeatureView"]]] = None, |
no outgoing calls