private String unsafePrintTagState(TagState state) {
    StringBuilder sb = new StringBuilder();
    sb.append(state.cacheTag.getTableName());
    if (state.cacheTag instanceof CacheTag.PartitionCacheTag) {
      sb.append("/").append(String.join("/",
          ((CacheTag.PartitionCacheTag) state.cacheTag).partitionDescToString()));
    }
    sb.append(" : ").append(state.bufferCount).append("/").append(state.maxCount).append(", ")
            .append(state.totalSize).append("/").append(state.maxSize);
    return sb.toString();
  }
Constructs a String by pretty printing a TagState instance - for Web UI consumption.
Note: does not lock on TagState instance.
@param state
@return
llap-server/src/java/org/apache/hadoop/hive/llap/cache/CacheContentsTracker.java