@Override
  public List<SQLCheckConstraint> getCheckConstraints(CheckConstraintsRequest request) throws MetaException {
    String catName = StringUtils.normalizeIdentifier(request.getCatName());
    String dbName = StringUtils.normalizeIdentifier(request.getDb_name());
    String tblName = StringUtils.normalizeIdentifier(request.getTbl_name());
    if (shouldGetConstraintFromRawStore(catName, dbName, tblName)) {
      return rawStore.getCheckConstraints(request);
    }
    return sharedCache.listCachedCheckConstraint(catName, dbName, tblName);
  }
Get check Constraints from cache Store if not present then fetch from raw store
@param catName catalog name
@param dbName database name
@param tblName table name
@return list of check constraints for given table
@throws MetaException
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java