You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Haonan Hou (Jira)" <ji...@apache.org> on 2021/12/31 01:59:00 UTC

[jira] [Created] (IOTDB-2235) Optimize the constructor of InsertRowsOfOneDevicePlan

Haonan Hou created IOTDB-2235:
---------------------------------

             Summary: Optimize the constructor of InsertRowsOfOneDevicePlan
                 Key: IOTDB-2235
                 URL: https://issues.apache.org/jira/browse/IOTDB-2235
             Project: Apache IoTDB
          Issue Type: Improvement
            Reporter: Haonan Hou


Currently the constructor of InsertRowsOfOneDevicePlan isĀ 
{code:java}
public InsertRowsOfOneDevicePlan(
PartialPath deviceId,
Long[] insertTimes,
List<List<String>> measurements,
ByteBuffer[] insertValues)
throws QueryProcessException {}{code}

We can change it to 
{code:java}
public InsertRowsOfOneDevicePlan(
PartialPath deviceId,
List<Long> insertTimes,
List<List<String>> measurements,
List<ByteBuffer> insertValues)
throws QueryProcessException {}{code}

So that we don't need to call toArray in TSServiceImpl when construct the new InsertRowsOfOneDevicePlan. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)