fanhualta commented on a change in pull request #736: Refactor TsFile
URL: https://github.com/apache/incubator-iotdb/pull/736#discussion_r377522265
 
 

 ##########
 File path: 
tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/TsFileIOWriter.java
 ##########
 @@ -69,14 +67,19 @@
   }
 
   protected TsFileOutput out;
-  protected List<ChunkGroupMetaData> chunkGroupMetaDataList = new 
ArrayList<>();
   protected boolean canWrite = true;
   protected int totalChunkNum = 0;
   protected int invalidChunkNum;
   protected File file;
-  private ChunkGroupMetaData currentChunkGroupMetaData;
+  protected List<List<ChunkMetaData>> chunkGroupMetaDataList = new 
ArrayList<>();
+  protected List<String> deviceList = new ArrayList<>();
+  protected List<ChunkMetaData> chunkMetaDataList = new ArrayList<>();
+  private static Map<Path, List<ChunkMetaData>> timeseriesMetadataMap = new 
TreeMap<>();
   private ChunkMetaData currentChunkMetaData;
   private long markedPosition;
+  private static Map<String, int[]> deviceOffsetsMap = new HashMap<>();
 
 Review comment:
   Please remove `static`. The reason is the same as above.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to