def compress_file(src_path, target_path, scheme):
  log.debug("compressing %s to %s with scheme %s", src_path, target_path, scheme)
  if scheme == Scheme.RAW:
    copyfile_atomic(src_path, target_path)
  elif scheme == Scheme.LZO:
    compress_lzo(src_path, target_path)
  else:
    raise NotImplementedError("storage scheme '%s' not supported (old version of Zinc client?)" % scheme)
dataset/ETHPy150Open bloomreach/zinc/zinc.py/compress_file/original