You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/user_guides/integrations/java.md
+52-3
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,7 @@ description: Documentation on how to connect to Hopsworks from a Java client.
4
4
5
5
# Java client
6
6
7
-
This guide explains step by step how to connect to Hopsworks from a Java client.
8
-
7
+
Starting from version 3.9.0-RC13, HSFS provides a pure Java client. This guide explains how to use the client to connect to Hopsworks and read or write feature data.
9
8
10
9
## Generate an API key
11
10
@@ -16,6 +15,40 @@ For instructions on how to generate an API key follow this [user guide](../proje
16
15
3. job
17
16
4. kafka
18
17
18
+
## Add the HSFS dependency to your project:
19
+
20
+
The HSFS library is available on the Hopsworks' Maven repository. If you are using Maven as build tool, you can add the following in your pom.xml file:
The Java client allows you to update data on existing feature groups using the streaming interface. You can provide a list of POJO objects to the [insertStream](https://docs.hopsworks.ai/feature-store-api/{{{ hopsworks_version }}}/javadoc/com/logicalclocks/hsfs/StreamFeatureGroup.html#insertStream-java.util.List-) method.
86
+
87
+
The feature group should exists already (can be created using the Python client) and the POJO objects should be serializable with the feature group's AVRO schema.
88
+
89
+
Please see the [tutorial](https://github.com/logicalclocks/hopsworks-tutorials/tree/master/integrations/java/java) for a code example on how to write data.
90
+
91
+
### Limitations
92
+
93
+
Currently using the Java client to retrieve feature vectors have the following limitations:
94
+
95
+
* Only the SQL interface is supported. It is not possible to retrieve feature vectors using the REST API Interface
96
+
* Feature Views with model dependent transformations attached are not applied. If your feature view has model dependent transformations, please use the Python client.
97
+
50
98
## Next Steps
51
-
For more information how to interact from Java client with the Hopsworks Feature store follow this [tutorial](https://github.com/logicalclocks/hopsworks-tutorials/tree/java_engine/java).
99
+
100
+
You can find more information on how to interact from Java client in the [JavaDoc](https://docs.hopsworks.ai/feature-store-api/{{{ hopsworks_version }}}/javadoc/) or this [tutorial](https://github.com/logicalclocks/hopsworks-tutorials/tree/master/integrations/java/java)
0 commit comments