private Encoding fromExternalToWrapperEncoding(org.apache.carbondata.format.Encoding encoderThrift){
switch (encoderThrift) {
case DICTIONARY:
    return Encoding.DICTIONARY;
case DELTA:
  return Encoding.DELTA;
case RLE:
return Encoding.RLE;
case INVERTED_INDEX:
return Encoding.INVERTED_INDEX;
case BIT_PACKED:
return Encoding.BIT_PACKED;
case DIRECT_DICTIONARY:
return Encoding.DIRECT_DICTIONARY;
default :
return Encoding.DICTIONARY;
}
}

private Encoding fromExternalToWrapperEncoding ( org . apache . carbondata . format . Encoding encoderThrift ) { switch ( encoderThrift ) { case DICTIONARY : return Encoding . DICTIONARY ; case DELTA : return Encoding . DELTA ; case RLE : return Encoding . RLE ; case INVERTED_INDEX : return Encoding . INVERTED_INDEX ; case BIT_PACKED : return Encoding . BIT_PACKED ; case DIRECT_DICTIONARY : return Encoding . DIRECT_DICTIONARY ; default : return Encoding . DICTIONARY ; } }
below method is convert the thrift encoding to wrapper encoding
