Skip to content

Commit e507aab

Browse files
feat: add detail documents documents for timestamps
1 parent 9008c68 commit e507aab

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Features
44

55
1. [#229](https://github.com/InfluxCommunity/influxdb3-java/pull/229): Support proxy and custom ssl root certificates
6+
2. [#233](https://github.com/InfluxCommunity/influxdb3-java/pull/233): More detailed documentation about timestamp handling for query and write functions
67

78
## 1.0.0 [2024-12-11]
89

src/main/java/com/influxdb/v3/client/InfluxDBClient.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public interface InfluxDBClient extends AutoCloseable {
7676
* Write a {@link Point} to the InfluxDB server.
7777
*
7878
* @param point the {@link Point} to write, can be null
79+
* <p>
80+
* Note: the timestamp passed will be converted to nanoseconds since the Unix epoch
81+
* by NanosecondConverter helper class
7982
*/
8083
void writePoint(@Nullable final Point point);
8184

@@ -84,13 +87,19 @@ public interface InfluxDBClient extends AutoCloseable {
8487
*
8588
* @param point the {@link Point} to write, can be null
8689
* @param options the options for writing data to InfluxDB
90+
* <p>
91+
* Note: the timestamp passed will be converted to nanoseconds since the Unix epoch
92+
* by NanosecondConverter helper class
8793
*/
8894
void writePoint(@Nullable final Point point, @Nonnull final WriteOptions options);
8995

9096
/**
9197
* Write a list of {@link Point} to the InfluxDB server.
9298
*
9399
* @param points the list of {@link Point} to write, cannot be null
100+
* <p>
101+
* Note: the timestamp passed will be converted to nanoseconds since the Unix epoch
102+
* by NanosecondConverter helper class
94103
*/
95104
void writePoints(@Nonnull final List<Point> points);
96105

@@ -99,6 +108,9 @@ public interface InfluxDBClient extends AutoCloseable {
99108
*
100109
* @param points the list of {@link Point} to write, cannot be null
101110
* @param options the options for writing data to InfluxDB
111+
* <p>
112+
* Note: the timestamp passed will be converted to nanoseconds since the Unix epoch
113+
* by NanosecondConverter helper class
102114
*/
103115
void writePoints(@Nonnull final List<Point> points, @Nonnull final WriteOptions options);
104116

@@ -116,6 +128,8 @@ public interface InfluxDBClient extends AutoCloseable {
116128
*
117129
* @param query the SQL query string to execute, cannot be null
118130
* @return Batches of rows returned by the query
131+
* <p>
132+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
119133
*/
120134
@Nonnull
121135
Stream<Object[]> query(@Nonnull final String query);
@@ -136,6 +150,8 @@ public interface InfluxDBClient extends AutoCloseable {
136150
* @param query the SQL query string to execute, cannot be null
137151
* @param parameters query named parameters
138152
* @return Batches of rows returned by the query
153+
* <p>
154+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
139155
*/
140156
@Nonnull
141157
Stream<Object[]> query(@Nonnull final String query, @Nonnull final Map<String, Object> parameters);
@@ -155,6 +171,8 @@ public interface InfluxDBClient extends AutoCloseable {
155171
* @param query the query string to execute, cannot be null
156172
* @param options the options for querying data from InfluxDB
157173
* @return Batches of rows returned by the query
174+
* <p>
175+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
158176
*/
159177
@Nonnull
160178
Stream<Object[]> query(@Nonnull final String query, @Nonnull final QueryOptions options);
@@ -176,6 +194,8 @@ public interface InfluxDBClient extends AutoCloseable {
176194
* @param parameters query named parameters
177195
* @param options the options for querying data from InfluxDB
178196
* @return Batches of rows returned by the query
197+
* <p>
198+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
179199
*/
180200
@Nonnull
181201
Stream<Object[]> query(@Nonnull final String query,
@@ -196,6 +216,8 @@ Stream<Object[]> query(@Nonnull final String query,
196216
*
197217
* @param query the SQL query string to execute, cannot be null
198218
* @return Batches of PointValues returned by the query
219+
* <p>
220+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
199221
*/
200222
@Nonnull
201223
Stream<PointValues> queryPoints(@Nonnull final String query);
@@ -216,6 +238,8 @@ Stream<Object[]> query(@Nonnull final String query,
216238
* @param query the SQL query string to execute, cannot be null
217239
* @param parameters query named parameters
218240
* @return Batches of PointValues returned by the query
241+
* <p>
242+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
219243
*/
220244
@Nonnull
221245
Stream<PointValues> queryPoints(@Nonnull final String query, @Nonnull final Map<String, Object> parameters);
@@ -235,6 +259,8 @@ Stream<Object[]> query(@Nonnull final String query,
235259
* @param query the query string to execute, cannot be null
236260
* @param options the options for querying data from InfluxDB
237261
* @return Batches of PointValues returned by the query
262+
* <p>
263+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
238264
*/
239265
@Nonnull
240266
Stream<PointValues> queryPoints(@Nonnull final String query, @Nonnull final QueryOptions options);
@@ -257,6 +283,8 @@ Stream<Object[]> query(@Nonnull final String query,
257283
* @param parameters query named parameters
258284
* @param options the options for querying data from InfluxDB
259285
* @return Batches of PointValues returned by the query
286+
* <p>
287+
* Note: the timestamp will be returned as a number of nanoseconds since the Unix epoch
260288
*/
261289
@Nonnull
262290
Stream<PointValues> queryPoints(@Nonnull final String query,

0 commit comments

Comments
 (0)