jt2594838 commented on a change in pull request #464: Modified Decoder and 
SequenceReader to support old version of TsFile
URL: https://github.com/apache/incubator-iotdb/pull/464#discussion_r338392785
 
 

 ##########
 File path: 
tsfile/src/main/java/org/apache/iotdb/tsfile/read/reader/chunk/ChunkReader.java
 ##########
 @@ -152,11 +153,13 @@ private PageReader constructPageReaderForNextPage(int 
compressedPageBodyLength)
               + Arrays.toString(compressedPageBody) + ". Actual:" + 
chunkDataBuffer
               .remaining());
     }
-
     chunkDataBuffer.get(compressedPageBody, 0, compressedPageBodyLength);
     valueDecoder.reset();
-    PageReader reader = new 
PageReader(ByteBuffer.wrap(unCompressor.uncompress(compressedPageBody)),
-        chunkHeader.getDataType(),
+    ByteBuffer pageData = 
ByteBuffer.wrap(unCompressor.uncompress(compressedPageBody));
+    if (endianType.equals("LITTLE_ENDIAN")) {
 
 Review comment:
   It would be better to make "LITTLE_ENDIAN" a constant or an enum.

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