刘大伟 created IOTDB-326:
-------------------------

             Summary: We need a random skip reader
                 Key: IOTDB-326
                 URL: https://issues.apache.org/jira/browse/IOTDB-326
             Project: Apache IoTDB
          Issue Type: New Feature
            Reporter: 刘大伟


On the current read method, the smallest read unit is page, which means that 
after initializing a reader, I will read directly to the first available 
pageheader, which is very time consuming when chunkmetadata or certain 
aggregations are available.

Therefore, I think we should design a random read mode so that chunkmeta can 
filter the chunks directly when using it, thus saving time.

Here's an example:
{code:java}
while(reader.hasNextChunkMeta()){
 if(canUseChunkHeader()){
     xxxxx
     reader.skipChunk();
 }else{
     IChunkReader reader = reader.getChunkReader();
     while(reader.hasNext()){
        xxxx
     }
 }
}{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to