@@ -343,6 +343,8 @@ def get_table_query_string(self) -> str:
343343
344344@typechecked
345345class KafkaSource (DataSource ):
346+ """A KafkaSource allow users to register Kafka streams as data sources."""
347+
346348 def __init__ (
347349 self ,
348350 * ,
@@ -616,6 +618,8 @@ def source_datatype_to_feast_value_type() -> Callable[[str], ValueType]:
616618
617619@typechecked
618620class KinesisSource (DataSource ):
621+ """A KinesisSource allows users to register Kinesis streams as data sources."""
622+
619623 def validate (self , config : RepoConfig ):
620624 raise NotImplementedError
621625
@@ -666,6 +670,25 @@ def __init__(
666670 owner : Optional [str ] = "" ,
667671 batch_source : Optional [DataSource ] = None ,
668672 ):
673+ """
674+ Args:
675+ name: The unique name of the Kinesis source.
676+ record_format: The record format of the Kinesis stream.
677+ region: The AWS region of the Kinesis stream.
678+ stream_name: The name of the Kinesis stream.
679+ timestamp_field: Event timestamp field used for point-in-time joins of
680+ feature values.
681+ created_timestamp_column: Timestamp column indicating when the row
682+ was created, used for deduplicating rows.
683+ field_mapping: A dictionary mapping of column names in this data
684+ source to feature names in a feature table or view. Only used for feature
685+ columns, not entity or timestamp columns.
686+ description: A human-readable description.
687+ tags: A dictionary of key-value pairs to store arbitrary metadata.
688+ owner: The owner of the Kinesis source, typically the email of the primary
689+ maintainer.
690+ batch_source: A DataSource backing the Kinesis stream (used for retrieving historical features).
691+ """
669692 if record_format is None :
670693 raise ValueError ("Record format must be specified for kinesis source" )
671694
0 commit comments