LeiRui commented on a change in pull request #34: fix sonar 
URL: https://github.com/apache/incubator-iotdb/pull/34#discussion_r252163425
 
 

 ##########
 File path: 
tsfile/src/main/java/org/apache/iotdb/tsfile/encoding/decoder/RleDecoder.java
 ##########
 @@ -191,47 +212,59 @@ protected boolean hasNextPackage() {
   protected abstract void readBitPackingBuffer(int bitPackedGroupCount, int 
lastBitPackedNum)
       throws IOException;
 
-  @Override
-  public boolean readBoolean(ByteBuffer buffer) {
-    throw new TsFileDecodingException("Method readBoolean is not supproted by 
RleDecoder");
-  }
-
-  @Override
-  public short readShort(ByteBuffer buffer) {
-    throw new TsFileDecodingException("Method readShort is not supproted by 
RleDecoder");
-  }
-
   @Override
   public int readInt(ByteBuffer buffer) {
-    throw new TsFileDecodingException("Method readInt is not supproted by 
RleDecoder");
+    return (Integer) readIntOrLong(buffer);
 
 Review comment:
   These kinds of modifications will be revoked.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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