Closed ghost closed 3 years ago
Thanks for reporting this. GRAPHSON is indeed the only serializer we currently support. We will consider this and if this feature is important for you, welcome to contribute.
Closing this issue. Because it's not active for a long time. If anyone have similar issue, please create issue in new repo: https://github.com/Azure/azure-sdk-for-java/issues
Expected Behavior
When running the
web-service
example, I expect to be able to use any of the enum values specified inorg.apache.tinkerpop.gremlin.driver.ser.Serializers
as a value for theserializer
parameter of theGremlinConfig
.The fact that this parameter is configurable and not, for example, hard-coded in
GremlinFactory
leads me to believe that it should be possible to use any of the serializers supported by gremlin-driver 3.2.x. However, if we look atGremlinResultVertexReader
andAbstractGremlinResultReader
this doesn't seem to be the case.Current Behavior
Using the "steps to reproduce" below:
GRAPHSON / GraphSONMessageSerializerV1d0 / application/json
GRAPHSON_V1D0 / GraphSONMessageSerializerGremlinV1d0 / application/vnd.gremlin-v1.0+json
GRAPHSON_V2D0 / GraphSONMessageSerializerGremlinV2d0 / application/vnd.gremlin-v2.0+json
GRYO_V1D0 / GryoMessageSerializerV1d0 / application/vnd.gremlin-v1.0+gryo
I didn't bother testing
GRYO_LITE_V1D0
as this is not supported by the platform I want to use in production.Possible Solution
Unknown.
Is it the intention of this project to support multiple serialization methods?
Steps to Reproduce (for bugs)
org.apache.tinkerpop.gremlin.driver.ser.Serializers
:examples/web-service/src/main/resources/application.yml
to useendpoint: localhost
andport: 8889
.serializer
to the serializer under test.web-service
example (I usedmvn clean package
)bin/gremlin-server.sh conf/gremlin-server-ci.yaml
curl -X PUT -H "Content-Type: application/json" -d '{"id": "1234"}' http://localhost:8080/services/
Snapshot Code for Reproduce
https://github.com/microsoft/spring-data-gremlin/tree/master/examples/web-service
Gremlin server config:
gremlin-server-ci.properties:
Branch
Your Environment
6f9a925100c4b12fc79b9e4e2248c4f4c0e78abb