static IConstraint[] combineConstraints(final IConstraint[] constraints,final IHashJoinUtility[] all){
  final List<IConstraint> list=new LinkedList<IConstraint>();
  for (int i=0; i < all.length; i++) {
    final IHashJoinUtility tmp=all[i];
    if (tmp.getConstraints() != null) {
      list.addAll(Arrays.asList(tmp.getConstraints()));
    }
  }
  if (constraints != null) {
    list.addAll(Arrays.asList(constraints));
  }
  return list.isEmpty() ? null : list.toArray(new IConstraint[list.size()]);
}

static IConstraint [ ] combineConstraints ( final IConstraint [ ] constraints , final IHashJoinUtility [ ] all ) { final List < IConstraint > list = new LinkedList < IConstraint > ( ) ; for ( int i = 0 ; i < all . length ; i ++ ) { final IHashJoinUtility tmp = all [ i ] ; if ( tmp . getConstraints ( ) != null ) { list . addAll ( Arrays . asList ( tmp . getConstraints ( ) ) ) ; } } if ( constraints != null ) { list . addAll ( Arrays . asList ( constraints ) ) ; } return list . isEmpty ( ) ? null : list . toArray ( new IConstraint [ list . size ( ) ] ) ; }
combine constraints for each source with the given constraints .
