Tabnine Logo
BasicOutputFormatProvider.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
co.cask.cdap.internal.app.runtime.batch.BasicOutputFormatProvider
constructor

Best Java code snippets using co.cask.cdap.internal.app.runtime.batch.BasicOutputFormatProvider.<init> (Showing top 3 results out of 315)

origin: cdapio/cdap

 private static OutputFormatProvider getRootOutputFormatProvider(Job job, List<ProvidedOutput> outputsMap)
  throws ClassNotFoundException {
  OutputFormatProvider rootOutputFormatProvider;
  // There are 3 cases possible:
  // [1] output map is empty: user is not going through our APIs to add output; propagate the job's output format
  // [2] output map has single output: provided output format is set as the root OutputFormat
  // [3] output map has multiple outputs: RootOutputFormat is UnsupportedOutputFormat which has RecordWriter that
  // does not support writing. The OutputCommitter is effectively a no-op, as it runs as the RootOutputCommitter
  // in MultipleOutputsCommitter.

  if (outputsMap.isEmpty()) {
   rootOutputFormatProvider = new BasicOutputFormatProvider(job.getOutputFormatClass().getName(),
                                Collections.emptyMap());
  } else if (outputsMap.size() == 1) {
   rootOutputFormatProvider = outputsMap.get(0).getOutputFormatProvider();
  } else {
   rootOutputFormatProvider = new BasicOutputFormatProvider(UnsupportedOutputFormat.class.getName(),
                                Collections.emptyMap());
  }
  return rootOutputFormatProvider;
 }
}
origin: co.cask.cdap/cdap-app-fabric

 private static OutputFormatProvider getRootOutputFormatProvider(Job job, List<ProvidedOutput> outputsMap)
  throws ClassNotFoundException {
  OutputFormatProvider rootOutputFormatProvider;
  // There are 3 cases possible:
  // [1] output map is empty: user is not going through our APIs to add output; propagate the job's output format
  // [2] output map has single output: provided output format is set as the root OutputFormat
  // [3] output map has multiple outputs: RootOutputFormat is UnsupportedOutputFormat which has RecordWriter that
  // does not support writing. The OutputCommitter is effectively a no-op, as it runs as the RootOutputCommitter
  // in MultipleOutputsCommitter.

  if (outputsMap.isEmpty()) {
   rootOutputFormatProvider = new BasicOutputFormatProvider(job.getOutputFormatClass().getName(),
                                Collections.emptyMap());
  } else if (outputsMap.size() == 1) {
   rootOutputFormatProvider = outputsMap.get(0).getOutputFormatProvider();
  } else {
   rootOutputFormatProvider = new BasicOutputFormatProvider(UnsupportedOutputFormat.class.getName(),
                                Collections.emptyMap());
  }
  return rootOutputFormatProvider;
 }
}
origin: co.cask.cdap/hydrator-test

@Override
public void prepareRun(BatchSinkContext context) throws Exception {
 OutputFormatProvider outputFormatProvider =
  new BasicOutputFormatProvider(TextOutputFormat.class.getCanonicalName(),
                 ImmutableMap.of(TextOutputFormat.OUTDIR, config.dirName));
 if (config.name != null) {
  Output output = Output.of(config.name, outputFormatProvider);
  output.alias(config.alias);
  context.addOutput(output);
 } else {
  context.addOutput(Output.of(config.alias, outputFormatProvider));
 }
}
co.cask.cdap.internal.app.runtime.batchBasicOutputFormatProvider<init>

Popular methods of BasicOutputFormatProvider

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • getApplicationContext (Context)
    • setContentView (Activity)
    • onRequestPermissionsResult (Fragment)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • Proxy (java.net)
      This class represents proxy server settings. A created instance of Proxy stores a type and an addres
    • HashSet (java.util)
      HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
    • ConcurrentHashMap (java.util.concurrent)
      A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
    • Response (javax.ws.rs.core)
      Defines the contract between a returned instance and the runtime when an application needs to provid
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • Best plugins for Eclipse
    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