class ThemisCpUtil {

  public static void moveRowkeyFiltersForWriteGet(Get sourceGet, Get destGet) throws IOException {
    ClassifiedFilters classifyFilters = new ClassifiedFilters();
    if (sourceGet.getFilter() != null) {
      processFilters(sourceGet.getFilter(), classifyFilters);
    }
    if (classifyFilters.allMustPassOperator) {
      if (classifyFilters.rowkeyFilters.getFilters().size() != 0) {
        if (destGet.getFilter() != null) {
          FilterList filter = new FilterList();
          filter.addFilter(destGet.getFilter());
          filter.addFilter(classifyFilters.rowkeyFilters);
          destGet.setFilter(filter);
        } else {
          destGet.setFilter(classifyFilters.rowkeyFilters);
        }
        sourceGet.setFilter(classifyFilters.noRowkeyFilters);
      }
    }
  }

}