Codota Logo
TableProvider.generateConfig
Code IndexAdd Codota to your IDE (free)

How to use
generateConfig
method
in
org.apache.samza.table.descriptors.TableProvider

Best Java code snippets using org.apache.samza.table.descriptors.TableProvider.generateConfig (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.apache.samza/samza-core_2.12

/**
 * Generate table configurations given a list of table specs
 * @param config the job configuration
 * @param tableSpecs the list of tableSpecs
 * @return configuration for the tables
 */
static public Map<String, String> generateConfigsForTableSpecs(Config config, List<TableSpec> tableSpecs) {
 Map<String, String> tableConfigs = new HashMap<>();
 tableSpecs.forEach(tableSpec -> {
   // Add table provider factory config
   tableConfigs.put(String.format(JavaTableConfig.TABLE_PROVIDER_FACTORY, tableSpec.getId()),
     tableSpec.getTableProviderFactoryClassName());
   // Generate additional configuration
   TableProviderFactory tableProviderFactory =
     Util.getObj(tableSpec.getTableProviderFactoryClassName(), TableProviderFactory.class);
   TableProvider tableProvider = tableProviderFactory.getTableProvider(tableSpec);
   tableConfigs.putAll(tableProvider.generateConfig(config, tableConfigs));
  });
 LOG.info("TableConfigGenerator has generated configs {}", tableConfigs);
 return tableConfigs;
}
origin: org.apache.samza/samza-core_2.11

/**
 * Generate table configurations given a list of table specs
 * @param config the job configuration
 * @param tableSpecs the list of tableSpecs
 * @return configuration for the tables
 */
static public Map<String, String> generateConfigsForTableSpecs(Config config, List<TableSpec> tableSpecs) {
 Map<String, String> tableConfigs = new HashMap<>();
 tableSpecs.forEach(tableSpec -> {
   // Add table provider factory config
   tableConfigs.put(String.format(JavaTableConfig.TABLE_PROVIDER_FACTORY, tableSpec.getId()),
     tableSpec.getTableProviderFactoryClassName());
   // Generate additional configuration
   TableProviderFactory tableProviderFactory =
     Util.getObj(tableSpec.getTableProviderFactoryClassName(), TableProviderFactory.class);
   TableProvider tableProvider = tableProviderFactory.getTableProvider(tableSpec);
   tableConfigs.putAll(tableProvider.generateConfig(config, tableConfigs));
  });
 LOG.info("TableConfigGenerator has generated configs {}", tableConfigs);
 return tableConfigs;
}
origin: org.apache.samza/samza-core_2.10

/**
 * Generate table configurations given a list of table specs
 * @param config the job configuration
 * @param tableSpecs the list of tableSpecs
 * @return configuration for the tables
 */
static public Map<String, String> generateConfigsForTableSpecs(Config config, List<TableSpec> tableSpecs) {
 Map<String, String> tableConfigs = new HashMap<>();
 tableSpecs.forEach(tableSpec -> {
   // Add table provider factory config
   tableConfigs.put(String.format(JavaTableConfig.TABLE_PROVIDER_FACTORY, tableSpec.getId()),
     tableSpec.getTableProviderFactoryClassName());
   // Generate additional configuration
   TableProviderFactory tableProviderFactory =
     Util.getObj(tableSpec.getTableProviderFactoryClassName(), TableProviderFactory.class);
   TableProvider tableProvider = tableProviderFactory.getTableProvider(tableSpec);
   tableConfigs.putAll(tableProvider.generateConfig(config, tableConfigs));
  });
 LOG.info("TableConfigGenerator has generated configs {}", tableConfigs);
 return tableConfigs;
}
origin: org.apache.samza/samza-core

/**
 * Generate table configurations given a list of table specs
 * @param config the job configuration
 * @param tableSpecs the list of tableSpecs
 * @return configuration for the tables
 */
static public Map<String, String> generateConfigsForTableSpecs(Config config, List<TableSpec> tableSpecs) {
 Map<String, String> tableConfigs = new HashMap<>();
 tableSpecs.forEach(tableSpec -> {
   // Add table provider factory config
   tableConfigs.put(String.format(JavaTableConfig.TABLE_PROVIDER_FACTORY, tableSpec.getId()),
     tableSpec.getTableProviderFactoryClassName());
   // Generate additional configuration
   TableProviderFactory tableProviderFactory =
     Util.getObj(tableSpec.getTableProviderFactoryClassName(), TableProviderFactory.class);
   TableProvider tableProvider = tableProviderFactory.getTableProvider(tableSpec);
   tableConfigs.putAll(tableProvider.generateConfig(config, tableConfigs));
  });
 LOG.info("TableConfigGenerator has generated configs {}", tableConfigs);
 return tableConfigs;
}
org.apache.samza.table.descriptorsTableProvidergenerateConfig

Javadoc

Generate any configuration for this table, the generated configuration is used by Samza container to construct this table and any components necessary. Instead of manipulating the input parameters, this method should return the generated configuration.

Popular methods of TableProvider

  • close
    Shutdown the underlying table
  • getTable
    Get an instance of the table for read/write operations
  • init
    Initialize TableProvider with container and task context

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Runner (org.openjdk.jmh.runner)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now