Skip to content

Commit 6280332

Browse files
manu-sjaversey
authored andcommitted
[FSTORE-1285] Model Dependent Transformation Functions (logicalclocks#206)
* load test * adding udf decorator to hopsworks repo * reverting pyproject modeified for loadtest * reverting pyproject modeified for loadtest * adding api documentation for udf decorator
1 parent b37d225 commit 6280332

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

auto_doc.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
"mr_api": ["hopsworks.project.Project.get_model_registry"],
2828
"ms_api": ["hopsworks.project.Project.get_model_serving"],
2929
},
30+
"api/udf.md": {
31+
"udf": ["hopsworks.udf"],
32+
},
3033
"api/connection.md": {
3134
"connection_create": ["hopsworks.connection.Connection.connection"],
3235
"connection_properties": keras_autodoc.get_properties(

docs/templates/api/udf.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# UDF API
2+
3+
{{udf}}

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ nav:
2121
- Login: generated/api/login.md
2222
- Connection: generated/api/connection.md
2323
- Projects: generated/api/projects.md
24+
- UDF: generated/api/udf.md
2425
- Jobs: generated/api/jobs.md
2526
- Executions: generated/api/executions.md
2627
- FlinkCluster: generated/api/flink_cluster.md

python/hopsworks/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@
4747
_secrets_api = None
4848
_project_api = None
4949

50+
udf = hsfs.hopsworks_udf.udf
51+
5052

5153
def hw_formatwarning(message, category, filename, lineno, line=None):
5254
return "{}: {}\n".format(category.__name__, message)
5355

5456

5557
warnings.formatwarning = hw_formatwarning
5658

57-
__all__ = ["connection"]
59+
__all__ = ["connection", "udf"]
5860

5961
logging.basicConfig(
6062
level=logging.INFO,

0 commit comments

Comments
 (0)