@Override
  public int execute() throws HiveException, IOException {
    context.getDb().cacheFileMetadata(desc.getDbName(), desc.getTableName(), desc.getPartitionName(),
        desc.isAllPartitions());
    return 0;
  }
Operation process of caching the metadata.
ql/src/java/org/apache/hadoop/hive/ql/ddl/misc/metadata/CacheMetadataOperation.java