qiaojialin commented on a change in pull request #818: [IOTDB-482] Vectorized 
TimeGenerator
URL: https://github.com/apache/incubator-iotdb/pull/818#discussion_r380029256
 
 

 ##########
 File path: 
server/src/main/java/org/apache/iotdb/db/query/timegenerator/EngineLeafNode.java
 ##########
 @@ -20,26 +20,27 @@
 package org.apache.iotdb.db.query.timegenerator;
 
 import java.io.IOException;
-import org.apache.iotdb.tsfile.read.reader.IPointReader;
+import org.apache.iotdb.tsfile.read.common.TimeSeries;
+import org.apache.iotdb.tsfile.read.reader.IBatchReader;
 import org.apache.iotdb.tsfile.read.query.timegenerator.node.Node;
 import org.apache.iotdb.tsfile.read.query.timegenerator.node.NodeType;
 
 public class EngineLeafNode implements Node {
 
-  private IPointReader reader;
+  private IBatchReader reader;
 
-  public EngineLeafNode(IPointReader reader) {
+  public EngineLeafNode(IBatchReader reader) {
     this.reader = reader;
   }
 
   @Override
   public boolean hasNext() throws IOException {
-    return reader.hasNextTimeValuePair();
+    return reader.hasNextBatch();
   }
 
   @Override
-  public long next() throws IOException {
-    return reader.nextTimeValuePair().getTimestamp();
+  public TimeSeries next() throws IOException {
 
 Review comment:
   ```suggestion
     public TimeSeries nextTimeColumn() throws IOException {
   ```

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to