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

How to use
org.apache.gobblin.runtime.template.HOCONInputStreamJobTemplate
constructor

Best Java code snippets using org.apache.gobblin.runtime.template.HOCONInputStreamJobTemplate.<init> (Showing top 4 results out of 315)

origin: apache/incubator-gobblin

@Override
public JobTemplate getTemplate(URI uri)
  throws SpecNotFoundException, JobTemplate.TemplateException {
 if (!uri.getScheme().equals(FS_SCHEME)) {
  throw new RuntimeException("Expected scheme " + FS_SCHEME + " got unsupported scheme " + uri.getScheme());
 }
 // path of uri is location of template file relative to the job configuration root directory
 Path templateFullPath = PathUtils.mergePaths(jobConfDirPath, new Path(uri.getPath()));
 try (InputStream is = fs.open(templateFullPath)) {
  return new HOCONInputStreamJobTemplate(is, uri, this);
 } catch (IOException ioe) {
  throw new SpecNotFoundException(uri, ioe);
 }
}
origin: apache/incubator-gobblin

 jobConfig = jobConfig.withFallback(loadHoconFileAtPath(fullJobTemplatePath, true));
jobTemplates.add(new HOCONInputStreamJobTemplate(jobConfig, fileStatus.getPath().toUri(), this));
origin: org.apache.gobblin/gobblin-runtime

@Override
public JobTemplate getTemplate(URI uri)
  throws SpecNotFoundException, JobTemplate.TemplateException {
 if (!uri.getScheme().equals(FS_SCHEME)) {
  throw new RuntimeException("Expected scheme " + FS_SCHEME + " got unsupported scheme " + uri.getScheme());
 }
 // path of uri is location of template file relative to the job configuration root directory
 Path templateFullPath = PathUtils.mergePaths(jobConfDirPath, new Path(uri.getPath()));
 try (InputStream is = fs.open(templateFullPath)) {
  return new HOCONInputStreamJobTemplate(is, uri, this);
 } catch (IOException ioe) {
  throw new SpecNotFoundException(uri, ioe);
 }
}
origin: org.apache.gobblin/gobblin-service

 jobConfig = jobConfig.withFallback(loadHoconFileAtPath(fullJobTemplatePath, true));
jobTemplates.add(new HOCONInputStreamJobTemplate(jobConfig, fileStatus.getPath().toUri(), this));
org.apache.gobblin.runtime.templateHOCONInputStreamJobTemplate<init>

Javadoc

Load a template from an InputStream. Caller is responsible for closing InputStream.

Popular methods of HOCONInputStreamJobTemplate

    Popular in Java

    • Reading from database using SQL prepared statement
    • scheduleAtFixedRate (ScheduledExecutorService)
    • scheduleAtFixedRate (Timer)
    • findViewById (Activity)
    • Kernel (java.awt.image)
    • String (java.lang)
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • JOptionPane (javax.swing)
    • Option (scala)
    • Top 12 Jupyter Notebook extensions
    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