private static LlapDaemonProtocolProtos.CacheTag.Builder encodeCacheTag(CacheTag cacheTag) {
    LlapDaemonProtocolProtos.CacheTag.Builder ctb =
        LlapDaemonProtocolProtos.CacheTag.newBuilder().setTableName(cacheTag.getTableName());
    if (cacheTag instanceof CacheTag.PartitionCacheTag) {
      CacheTag.PartitionCacheTag partitionCacheTag = (CacheTag.PartitionCacheTag) cacheTag;
      ctb.addAllPartitionDesc(Arrays.asList((partitionCacheTag.getEncodedPartitionDesc())));
    }
    return ctb;
  }
Internal helper class for extracting the metadata of the cache content and loading data into the cache
based on the provided metadata.
llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapCacheMetadataSerializer.java