Tabnine Logo
MigrateToV2.col
Code IndexAdd Tabnine to your IDE (free)

How to use
col
method
in
co.cask.wrangler.parser.MigrateToV2

Best Java code snippets using co.cask.wrangler.parser.MigrateToV2.col (Showing top 2 results out of 315)

origin: co.cask.wrangler/wrangler-core

private static String toColumArray(String[] columns) {
 List<String> array = new ArrayList<>();
 for (String column : columns) {
  array.add(col(trim(column)));
 }
 return Joiner.on(",").join(array);
}
origin: co.cask.wrangler/wrangler-core

  String column = getNextToken(tokenizer, "set column", "column-name", lineno);
  String expr = getNextToken(tokenizer, "\n", "set column", "jexl-expression", lineno);
  transformed.add(String.format("set-column %s exp:{%s};", col(column), expr));
String oldcol = getNextToken(tokenizer,  command, "old", lineno);
String newcol = getNextToken(tokenizer, command, "new", lineno);
transformed.add(String.format("rename %s %s;", col(oldcol), col(newcol)));
String col = getNextToken(tokenizer,  command, "col", lineno);
String type = getNextToken(tokenizer, command, "type", lineno);
transformed.add(String.format("set-type %s %s;", col(col), type));
String dest = getNextToken(tokenizer, command, "new-column", lineno);
String delimiter = getNextToken(tokenizer, "\n", command, "delimiter", lineno);
transformed.add(String.format("merge %s %s %s %s;", col(col1), col(col2), col(dest), quote(delimiter)));
transformed.add(String.format("uppercase %s;", col(col)));
transformed.add(String.format("lowercase %s;", col(col)));
transformed.add(String.format("titlecase %s;", col(col)));
String endStr = getNextToken(tokenizer, command, "end", lineno);
String destination = getNextToken(tokenizer, command, "destination", lineno);
transformed.add(String.format("indexsplit %s %s %s %s;", col(source), startStr, endStr, col(destination)));
String firstCol = getNextToken(tokenizer, command, "new-column-1", lineno);
String secondCol = getNextToken(tokenizer, command, "new-column-2", lineno);
transformed.add(String.format("split %s %s %s %s;", col(source), quote(delimiter),
co.cask.wrangler.parserMigrateToV2col

Popular methods of MigrateToV2

  • <init>
  • getNextToken
  • migrate
    Rewrites the directives in version 1.0 to version 2.0.
  • quote
  • toColumArray

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JFrame (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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