vesoft-inc / nebula-java

Client API and data importer of Nebula Graph in Java
Apache License 2.0
164 stars 121 forks source link

enhancement:support more type value as parameter in session.value2Nvalue #511

Closed CorvusYe closed 1 year ago

CorvusYe commented 1 year ago

What type of PR is this?

The original push request is #461

What problem(s) does this PR solve?

Description:

When executeWithParameter is called in session, we expect more type to be valid params not only boolean/float/int/string/map/list.

How do you solve it?

On the basis of the original support types, the support for pojo, collection and time has been expanded. The pojo type uses reflection values to convert to Map

graph TB
S--value-->N
N--Y_NullType-->E
N--N-->L
L--Y-->XV
XV-->E

L--N-->CV
CV-->S

CV(Collect_for / Map_for / Date: unit item)
XV(Value.xxxVal)
L{is leaf type}
S(value2Nvalue)
N{value is null}
E(return nValue)

Special notes for your reviewer, ex. impact of this fix, design document, etc: