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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.kitesdk/kite-tools

try {
 DynConstructors.Ctor<DoFn<Object, Object>> ctor =
   new DynConstructors.Builder(DoFn.class)
     .loader(loader)
     .impl(transform)
     .buildChecked();
 transformFn = ctor.newInstance();
} catch (NoSuchMethodException e) {
origin: kite-sdk/kite

@SuppressWarnings("unchecked")
public Builder hiddenImpl(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);
  hiddenImpl(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-tools

try {
 DynConstructors.Ctor<DoFn<Record, Record>> ctor =
   new DynConstructors.Builder(DoFn.class)
     .loader(loaderForJars(jars))
     .impl(transform)
     .buildChecked();
 transformFn = ctor.newInstance();
} catch (NoSuchMethodException e) {
origin: org.kitesdk/kite-tools

try {
 DynConstructors.Ctor<DoFn<Record, Record>> ctor =
   new DynConstructors.Builder(DoFn.class)
     .loader(loaderForJars(jars))
     .impl(transform)
     .buildChecked();
 transformFn = ctor.newInstance();
} catch (NoSuchMethodException e) {
origin: org.kitesdk/kite-tools

try {
 DynConstructors.Ctor<DoFn<Record, Record>> ctor =
   new DynConstructors.Builder(DoFn.class)
     .loader(loaderForJars(jars))
     .impl(transform)
     .buildChecked();
 transformFn = ctor.newInstance();
} catch (NoSuchMethodException e) {
origin: org.kitesdk/kite-hadoop-compatibility

@SuppressWarnings("unchecked")
public Builder hiddenImpl(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);
  hiddenImpl(targetClass, types);
 } catch (NoClassDefFoundError e) {
  // cannot load this implementation
 } catch (ClassNotFoundException e) {
  // not the right implementation
 }
 return this;
}
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-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: org.kitesdk/kite-hadoop-compatibility

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

public Builder impl(Class<?>... types) {
 impl(baseClass, types);
 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: kite-sdk/kite

public Builder hiddenImpl(Class<?>... types) {
 hiddenImpl(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 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: 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: 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;
 }
}
org.kitesdk.compatDynConstructors$Builder

Most used methods

  • <init>
  • impl
  • 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

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • Menu (java.awt)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JFrame (javax.swing)
  • JList (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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