@SuppressWarnings("RedundantIfStatement") public static boolean loadByCurrentClassloader(String clsName){
  if (clsName.startsWith("org.apache.ignite.internal.processors.hadoop.impl"))   return true;
  if (clsName.startsWith("org.apache.ignite.hadoop")) {
    if (clsName.contains("org.apache.ignite.hadoop.fs.v1.IgniteHadoopFileSystem") || clsName.contains("org.apache.ignite.hadoop.fs.v2.IgniteHadoopFileSystem") || clsName.contains("org.apache.ignite.hadoop.mapreduce.IgniteHadoopClientProtocolProvider"))     return true;
  }
  return false;
}

@ SuppressWarnings ( "RedundantIfStatement" ) public static boolean loadByCurrentClassloader ( String clsName ) { if ( clsName . startsWith ( "org.apache.ignite.internal.processors.hadoop.impl" ) ) return true ; if ( clsName . startsWith ( "org.apache.ignite.hadoop" ) ) { if ( clsName . contains ( "org.apache.ignite.hadoop.fs.v1.IgniteHadoopFileSystem" ) || clsName . contains ( "org.apache.ignite.hadoop.fs.v2.IgniteHadoopFileSystem" ) || clsName . contains ( "org.apache.ignite.hadoop.mapreduce.IgniteHadoopClientProtocolProvider" ) ) return true ; } return false ; }
check whether file must be loaded with current class loader , or normal delegation model should be used . < p > override is only necessary for ignite classes which have direct or transitive dependencies on hadoop classes . these are all classes from " org . apache . ignite . internal . processors . hadoop . impl " package , and these are several well - know classes from " org . apache . ignite . hadoop " package .
