influxdata / influxdata/influxdb-java

Map POJO to Query

Open
#525 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature-request
Dominant language
Java
Stars
1.2k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

Hi,

is there any way to map created POJO with annotations measurement and columns to Query? To avoid using in each request:

Point point1 = Point.measurement("cpu")
.time(System.currentTimeMillis(), TimeUnit.MILLISECONDS)
.addField("idle", 90L)
.addField("user", 9L)
.addField("system", 1L)
.build();

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by reviewing the Java client APIs represented by Point and Query, along with how annotations for measurements and columns could be discovered. Clarify the intended POJO mapping behavior and supported query cases; done should be a defined, documented approach that avoids manually constructing Point values for each request.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.