influxdata / influxdata/influxdb-java
Is possible to store in an array the result of a query?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I use the method toPojo to store the result of a query in my Java class, using in that class, for each field, the annotation Column. The problem is that some field of my pojo class are arrays. In order to explain in a better way my problem, I will describe in an easy way my scenario. In my db I have many fields(700 more or less) and some of them are called like value_0, value_1, value_2,... In my Java class, to avoid to create 700 fields, I have (among others) a field called values[] (that is an array), so I would to know whether there is a method (in order to avoid to parserize manually the result of a query) that can store the result corrisponding to more columns of the db in that array.
I hope I was clear, thanks in advance!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the toPojo mapping entry point and how the Column annotation is handled. Trace whether multiple query columns can be associated with one array field, and define completion as supporting the requested value_0, value_1, and similar column mapping without manual parsing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100