HTHou commented on a change in pull request #1269:
URL: https://github.com/apache/incubator-iotdb/pull/1269#discussion_r431537562
##########
File path:
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java
##########
@@ -221,18 +237,22 @@ private void generateTimeSeriesMetadata() throws
IOException {
}
}
+ private void initTimes(long[] times) {
+ Arrays.fill(times, -1);
Review comment:
Fixed~
##########
File path:
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java
##########
@@ -63,16 +64,22 @@
public static final String RESOURCE_SUFFIX = ".resource";
static final String TEMP_SUFFIX = ".temp";
private static final String CLOSING_SUFFIX = ".closing";
+ private static final int INIT_ARRAY_SIZE = 64;
/**
- * device -> start time
+ * start times array.
*/
- protected Map<String, Long> startTimeMap;
+ private long[] startTimes;
/**
- * device -> end time. It is null if it's an unsealed sequence tsfile
+ * end times array. The values in this array are -1 if it's an unsealed
sequence tsfile
Review comment:
Fixed~
----------------------------------------------------------------
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:
[email protected]