Codota Logo
SamzaSqlApplicationConfig.deserializeSqlStmts
Code IndexAdd Codota to your IDE (free)

How to use
deserializeSqlStmts
method
in
org.apache.samza.sql.runner.SamzaSqlApplicationConfig

Best Java code snippets using org.apache.samza.sql.runner.SamzaSqlApplicationConfig.deserializeSqlStmts (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: apache/samza

 public static List<String> fetchSqlFromConfig(Map<String, String> config) {
  List<String> sql;
  if (config.containsKey(SamzaSqlApplicationConfig.CFG_SQL_STMT) &&
    StringUtils.isNotBlank(config.get(SamzaSqlApplicationConfig.CFG_SQL_STMT))) {
   String sqlValue = config.get(SamzaSqlApplicationConfig.CFG_SQL_STMT);
   sql = Collections.singletonList(sqlValue);
  } else if (config.containsKey(SamzaSqlApplicationConfig.CFG_SQL_STMTS_JSON) &&
    StringUtils.isNotBlank(config.get(SamzaSqlApplicationConfig.CFG_SQL_STMTS_JSON))) {
   sql = SamzaSqlApplicationConfig.deserializeSqlStmts(config.get(SamzaSqlApplicationConfig.CFG_SQL_STMTS_JSON));
  } else if (config.containsKey(SamzaSqlApplicationConfig.CFG_SQL_FILE)) {
   String sqlFile = config.get(SamzaSqlApplicationConfig.CFG_SQL_FILE);
   sql = SqlFileParser.parseSqlFile(sqlFile);
  } else {
   String msg = "Config doesn't contain the SQL that needs to be executed.";
   LOG.error(msg);
   throw new SamzaException(msg);
  }

  return sql;
 }
}
origin: org.apache.samza/samza-sql

 public static List<String> fetchSqlFromConfig(Map<String, String> config) {
  List<String> sql;
  if (config.containsKey(SamzaSqlApplicationConfig.CFG_SQL_STMT) &&
    StringUtils.isNotBlank(config.get(SamzaSqlApplicationConfig.CFG_SQL_STMT))) {
   String sqlValue = config.get(SamzaSqlApplicationConfig.CFG_SQL_STMT);
   sql = Collections.singletonList(sqlValue);
  } else if (config.containsKey(SamzaSqlApplicationConfig.CFG_SQL_STMTS_JSON) &&
    StringUtils.isNotBlank(config.get(SamzaSqlApplicationConfig.CFG_SQL_STMTS_JSON))) {
   sql = SamzaSqlApplicationConfig.deserializeSqlStmts(config.get(SamzaSqlApplicationConfig.CFG_SQL_STMTS_JSON));
  } else if (config.containsKey(SamzaSqlApplicationConfig.CFG_SQL_FILE)) {
   String sqlFile = config.get(SamzaSqlApplicationConfig.CFG_SQL_FILE);
   sql = SqlFileParser.parseSqlFile(sqlFile);
  } else {
   String msg = "Config doesn't contain the SQL that needs to be executed.";
   LOG.error(msg);
   throw new SamzaException(msg);
  }

  return sql;
 }
}
org.apache.samza.sql.runnerSamzaSqlApplicationConfigdeserializeSqlStmts

Popular methods of SamzaSqlApplicationConfig

  • <init>
  • createIOResolver
  • getInputSystemStreamConfigBySource
  • getOutputSystemStreamConfigsBySource
  • getUdfMetadata
  • initializePlugin
  • createUdfResolver
  • getDomainProperties
  • getOutputSystemStreams
  • getRelSchemaProviders
  • getSamzaRelConverters
  • getSystemStreamName
  • getSamzaRelConverters,
  • getSystemStreamName,
  • getWindowDurationMs,
  • populateSystemStreams,
  • populateSystemStreamsAndGetRelRoots,
  • serializeSqlStmts,
  • getIoResolver,
  • getMetadataTopicPrefix,
  • getSamzaRelTableKeyConverters

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Table (org.hibernate.mapping)
    A relational table
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