Skip to content

Commit

Permalink
add online type getter/setter (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzmeister authored Dec 18, 2020
1 parent 655d1c2 commit 8a59a4e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python/hsfs/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def name(self, name):

@property
def type(self):
"""Data type of the feature in the feature store.
"""Data type of the feature in the offline feature store.
!!! danger "Not a Python type"
This type property is not to be confused with Python types.
Expand All @@ -82,6 +82,15 @@ def type(self):
def type(self, type):
self._type = type

@property
def online_type(self):
"""Data type of the feature in the online feature store."""
return self._online_type

@online_type.setter
def online_type(self, online_type):
self._online_type = online_type

@property
def primary(self):
"""Whether the feature is part of the primary key of the feature group."""
Expand Down

0 comments on commit 8a59a4e

Please sign in to comment.