private static List<OrcProto.StripeStatistics> getStripeStatsFromOrcTail(OrcTail orcTail) throws IOException {
    CompressionKind compressionKind = orcTail.getCompressionKind();
    InStream.StreamOptions options = null;
    if (compressionKind != CompressionKind.NONE) {
      options = InStream.options().withCodec(OrcCodecPool.getCodec(compressionKind))
          .withBufferSize(orcTail.getCompressionBufferSize());
    }
    InStream stream = InStream
        .create(STRIPE_STATS_STREAM, orcTail.getTailBuffer(),
            orcTail.getMetadataOffset(), orcTail.getMetadataSize(), options);
    return OrcProto.Metadata.parseFrom(InStream.createCodedInputStream(stream)).getStripeStatsList();
  }
Convenience method to retrieve StripeStatic from an existing OrcTail without create a new Reader.

@param orcTail The existing OrcTail from metadataCache
@return StripeStatistics
@throws IOException
llap-server/src/java/org/apache/hadoop/hive/llap/io/encoded/OrcEncodedDataReader.java