private void splitBlocks(long start,long len,long maxLen,Collection<ClusterNode> nodes,Collection<IgfsBlockLocation> res){
  if (maxLen > 0) {
    long end=start + len;
    long start0=start;
    while (start0 < end) {
      long len0=Math.min(maxLen,end - start0);
      res.add(new IgfsBlockLocationImpl(start0,len0,nodes));
      start0+=len0;
    }
  }
 else   res.add(new IgfsBlockLocationImpl(start,len,nodes));
}

private void splitBlocks ( long start , long len , long maxLen , Collection < ClusterNode > nodes , Collection < IgfsBlockLocation > res ) { if ( maxLen > 0 ) { long end = start + len ; long start0 = start ; while ( start0 < end ) { long len0 = Math . min ( maxLen , end - start0 ) ; res . add ( new IgfsBlockLocationImpl ( start0 , len0 , nodes ) ) ; start0 += len0 ; } } else res . add ( new IgfsBlockLocationImpl ( start , len , nodes ) ) ; }
split blocks according to maximum split length .
