@Override
    public void write(DataOutput out) throws IOException {
      super.write(out);
      out.writeBoolean(_isShrinked);
      if (_isShrinked) {
        out.writeLong(shrinkedLength);
      }
    }
Base implemention for shims against secure Hadoop 0.20.3/0.23.
shims/common/src/main/java/org/apache/hadoop/hive/shims/HadoopShimsSecure.java