Tabnine Logo
DynConstructors$Builder.impl
Code IndexAdd Tabnine to your IDE (free)

How to use
impl
method
in
org.kitesdk.compat.DynConstructors$Builder

Best Java code snippets using org.kitesdk.compat.DynConstructors$Builder.impl (Showing top 17 results out of 315)

origin: kite-sdk/kite

public Builder impl(String className, Class<?>... types) {
 // don't do any work if an implementation has been found
 if (ctor != null) {
  return this;
 }
 try {
  Class<?> targetClass = Class.forName(className, true, loader);
  impl(targetClass, types);
 } catch (NoClassDefFoundError e) {
  // cannot load this implementation
  problems.put(className, e);
 } catch (ClassNotFoundException e) {
  // not the right implementation
  problems.put(className, e);
 }
 return this;
}
origin: org.kitesdk/kite-hadoop-compatibility

public Builder impl(String className, Class<?>... types) {
 // don't do any work if an implementation has been found
 if (ctor != null) {
  return this;
 }
 try {
  Class<?> targetClass = Class.forName(className, true, loader);
  impl(targetClass, types);
 } catch (NoClassDefFoundError e) {
  // cannot load this implementation
 } catch (ClassNotFoundException e) {
  // not the right implementation
 }
 return this;
}
origin: org.kitesdk/kite-tools

  new DynConstructors.Builder(DoFn.class)
    .loader(loader)
    .impl(transform)
    .buildChecked();
transformFn = ctor.newInstance();
origin: org.kitesdk/kite-tools

  new DynConstructors.Builder(DoFn.class)
    .loader(loaderForJars(jars))
    .impl(transform)
    .buildChecked();
transformFn = ctor.newInstance();
origin: org.kitesdk/kite-tools

  new DynConstructors.Builder(DoFn.class)
    .loader(loaderForJars(jars))
    .impl(transform)
    .buildChecked();
transformFn = ctor.newInstance();
origin: org.kitesdk/kite-tools

  new DynConstructors.Builder(DoFn.class)
    .loader(loaderForJars(jars))
    .impl(transform)
    .buildChecked();
transformFn = ctor.newInstance();
origin: org.kitesdk/kite-hadoop-compatibility

public Builder ctorImpl(String className, Class<?>... argClasses) {
 // don't do any work if an implementation has been found
 if (method != null) {
  return this;
 }
 try {
  this.method = new DynConstructors.Builder()
    .impl(className, argClasses)
    .buildChecked();
 } catch (NoSuchMethodException e) {
  // not the right implementation
 }
 return this;
}
origin: org.kitesdk/kite-hadoop-compatibility

public Builder ctorImpl(Class<?> targetClass, Class<?>... argClasses) {
 // don't do any work if an implementation has been found
 if (method != null) {
  return this;
 }
 try {
  this.method = new DynConstructors.Builder()
    .impl(targetClass, argClasses)
    .buildChecked();
 } catch (NoSuchMethodException e) {
  // not the right implementation
 }
 return this;
}
origin: kite-sdk/kite

public Builder ctorImpl(String className, Class<?>... argClasses) {
 // don't do any work if an implementation has been found
 if (method != null) {
  return this;
 }
 try {
  this.method = new DynConstructors.Builder()
    .impl(className, argClasses)
    .buildChecked();
 } catch (NoSuchMethodException e) {
  // not the right implementation
 }
 return this;
}
origin: kite-sdk/kite

public Builder ctorImpl(Class<?> targetClass, Class<?>... argClasses) {
 // don't do any work if an implementation has been found
 if (method != null) {
  return this;
 }
 try {
  this.method = new DynConstructors.Builder()
    .impl(targetClass, argClasses)
    .buildChecked();
 } catch (NoSuchMethodException e) {
  // not the right implementation
 }
 return this;
}
origin: org.kitesdk/kite-hadoop-compatibility

public Builder impl(Class<?>... types) {
 impl(baseClass, types);
 return this;
}
origin: kite-sdk/kite

public Builder impl(Class<?>... types) {
 impl(baseClass, types);
 return this;
}
origin: org.kitesdk/kite-data-hive

private static Class<?> findTypeInfoClass(String className) {
 try {
  return new DynConstructors.Builder(TypeInfo.class)
    .impl(className).buildChecked().getConstructedClass();
 } catch (NoSuchMethodException e) {
  return null;
 }
}
origin: org.kitesdk/kite-data-hive

private synchronized static void checkHiveDependencies() {
 if (Loader.HIVE_CONF == null) {
  // check that Hive is available by resolving the HiveConf constructor
  // this is also needed by newHiveConf(Configuration)
  Loader.HIVE_CONF = new DynConstructors.Builder()
    .impl("org.apache.hadoop.hive.conf.HiveConf", Configuration.class, Class.class)
    .build();
 }
}
origin: kite-sdk/kite

public static <K, V> FileInputFormat<K, V> newInputFormatInstance(
  DatasetDescriptor descriptor) {
 DynConstructors.Ctor<FileInputFormat<K, V>> ctor =
   new DynConstructors.Builder()
     .impl(descriptor.getProperty(INPUT_FORMAT_CLASS_PROP))
     .build();
 return ctor.newInstance();
}
origin: kite-sdk/kite

private static Class<?> findTypeInfoClass(String className) {
 try {
  return new DynConstructors.Builder(TypeInfo.class)
    .impl(className).buildChecked().getConstructedClass();
 } catch (NoSuchMethodException e) {
  return null;
 }
}
origin: kite-sdk/kite

private synchronized static void checkHiveDependencies() {
 if (Loader.HIVE_CONF == null) {
  // check that Hive is available by resolving the HiveConf constructor
  // this is also needed by newHiveConf(Configuration)
  Loader.HIVE_CONF = new DynConstructors.Builder()
    .impl("org.apache.hadoop.hive.conf.HiveConf", Configuration.class, Class.class)
    .build();
 }
}
org.kitesdk.compatDynConstructors$Builderimpl

Popular methods of DynConstructors$Builder

  • <init>
  • buildChecked
  • build
  • hiddenImpl
  • loader
    Set the ClassLoader used to lookup classes by name. If not set, the current thread's ClassLoader is

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ImageIO (javax.imageio)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now