This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/develop by this push:
     new d201c1987 trivial doc fix (#389)
d201c1987 is described below

commit d201c1987eda1123e40a3d7f133c2bd6f881f7a1
Author: flashmouse <[email protected]>
AuthorDate: Thu Feb 6 16:41:51 2025 +0800

    trivial doc fix (#389)
---
 java/tsfile/README.md | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/java/tsfile/README.md b/java/tsfile/README.md
index b9d85928b..d9aa79e0f 100644
--- a/java/tsfile/README.md
+++ b/java/tsfile/README.md
@@ -63,15 +63,15 @@ Data written is through TsFileWriter.
 2. Register timeseries
   
     ```java
-    List<MeasurementSchema> schema1 = new ArrayList<>();
-    schemas.add(new MeasurementSchema("voltage", TSDataType.FLOAT));
-    schemas.add(new MeasurementSchema("electricity", TSDataType.FLOAT));
+    List<IMeasurementSchema> schema1 = new ArrayList<>();
+    schema1.add(new MeasurementSchema("voltage", TSDataType.FLOAT));
+    schema1.add(new MeasurementSchema("electricity", TSDataType.FLOAT));
     tsFileWriter.registerTimeseries(new Path("solarpanel1"), schema1);
    
-     List<MeasurementSchema> schema2 = new ArrayList<>();
-    schemas.add(new MeasurementSchema("voltage", TSDataType.FLOAT));
-    schemas.add(new MeasurementSchema("electricity", TSDataType.FLOAT));
-    schemas.add(new MeasurementSchema("windspeed", TSDataType.FLOAT));
+     List<IMeasurementSchema> schema2 = new ArrayList<>();
+    schema2.add(new MeasurementSchema("voltage", TSDataType.FLOAT));
+    schema2.add(new MeasurementSchema("electricity", TSDataType.FLOAT));
+    schema2.add(new MeasurementSchema("windspeed", TSDataType.FLOAT));
     tsFileWriter.registerTimeseries(new Path("turbine1"), schema2);
     ```
 

Reply via email to