Tabnine Logo
ColumnNameCase.valueOf
Code IndexAdd Tabnine to your IDE (free)

How to use
valueOf
method
in
org.apache.gobblin.source.extractor.schema.ColumnNameCase

Best Java code snippets using org.apache.gobblin.source.extractor.schema.ColumnNameCase.valueOf (Showing top 2 results out of 315)

origin: apache/incubator-gobblin

/**
 * Change the column name case to upper, lower or nochange; Default nochange
 *
 * @return column name with the required case
 */
private String toCase(String targetColumnName) {
 String columnName = targetColumnName;
 ColumnNameCase caseType = ColumnNameCase.valueOf(this.workUnitState
   .getProp(ConfigurationKeys.SOURCE_COLUMN_NAME_CASE, ConfigurationKeys.DEFAULT_COLUMN_NAME_CASE).toUpperCase());
 switch (caseType) {
  case TOUPPER:
   columnName = targetColumnName.toUpperCase();
   break;
  case TOLOWER:
   columnName = targetColumnName.toLowerCase();
   break;
  default:
   columnName = targetColumnName;
   break;
 }
 return columnName;
}
origin: org.apache.gobblin/gobblin-sql

/**
 * Change the column name case to upper, lower or nochange; Default nochange
 *
 * @return column name with the required case
 */
private String toCase(String targetColumnName) {
 String columnName = targetColumnName;
 ColumnNameCase caseType = ColumnNameCase.valueOf(this.workUnitState
   .getProp(ConfigurationKeys.SOURCE_COLUMN_NAME_CASE, ConfigurationKeys.DEFAULT_COLUMN_NAME_CASE).toUpperCase());
 switch (caseType) {
  case TOUPPER:
   columnName = targetColumnName.toUpperCase();
   break;
  case TOLOWER:
   columnName = targetColumnName.toLowerCase();
   break;
  default:
   columnName = targetColumnName;
   break;
 }
 return columnName;
}
org.apache.gobblin.source.extractor.schemaColumnNameCasevalueOf

Popular methods of ColumnNameCase

    Popular in Java

    • Making http requests using okhttp
    • requestLocationUpdates (LocationManager)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • onRequestPermissionsResult (Fragment)
    • ObjectMapper (com.fasterxml.jackson.databind)
      ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
    • SocketException (java.net)
      This SocketException may be thrown during socket creation or setting options, and is the superclass
    • URLEncoder (java.net)
      This class is used to encode a string using the format required by application/x-www-form-urlencoded
    • ThreadPoolExecutor (java.util.concurrent)
      An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
    • Servlet (javax.servlet)
      Defines methods that all servlets must implement. A servlet is a small Java program that runs within
    • BasicDataSource (org.apache.commons.dbcp)
      Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
    • 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