Tabnine Logo
ConfigDef$Type
Code IndexAdd Tabnine to your IDE (free)

How to use
ConfigDef$Type
in
org.apache.kafka.common.config

Best Java code snippets using org.apache.kafka.common.config.ConfigDef$Type (Showing top 5 results out of 315)

origin: apache/kafka

protected String getConfigValue(ConfigKey key, String headerName) {
  switch (headerName) {
    case "Name":
      return key.name;
    case "Description":
      return key.documentation;
    case "Type":
      return key.type.toString().toLowerCase(Locale.ROOT);
    case "Default":
      if (key.hasDefault()) {
        if (key.defaultValue == null)
          return "null";
        String defaultValueStr = convertToString(key.defaultValue, key.type);
        if (defaultValueStr.isEmpty())
          return "\"\"";
        else
          return defaultValueStr;
      } else
        return "";
    case "Valid Values":
      return key.validator != null ? key.validator.toString() : "";
    case "Importance":
      return key.importance.toString().toLowerCase(Locale.ROOT);
    default:
      throw new RuntimeException("Can't find value for header '" + headerName + "' in " + key.name);
  }
}
origin: io.confluent.kafka/connect-utils

 break;
case 2:
 length = null == def.type ? 0 : def.type.toString().length();
 break;
case 3:
 break;
case 2:
 value = def.type.toString().toLowerCase();
 break;
case 3:
origin: me.jeffshaw.kafka/kafka-clients

b.append("</td>");
b.append("<td>");
b.append(def.type.toString().toLowerCase());
b.append("</td>");
b.append("<td>");
origin: com.github.jcustenborder.kafka.connect/connect-utils

 break;
case 2:
 value = def.type.toString().toLowerCase();
 break;
case 3:
origin: org.apache.kafka/connect-runtime

private static ConfigKeyInfo convertConfigKey(ConfigKey configKey) {
  String name = configKey.name;
  Type type = configKey.type;
  String typeName = configKey.type.name();
  boolean required = false;
  String defaultValue;
  if (ConfigDef.NO_DEFAULT_VALUE.equals(configKey.defaultValue)) {
    defaultValue = null;
    required = true;
  } else {
    defaultValue = ConfigDef.convertToString(configKey.defaultValue, type);
  }
  String importance = configKey.importance.name();
  String documentation = configKey.documentation;
  String group = configKey.group;
  int orderInGroup = configKey.orderInGroup;
  String width = configKey.width.name();
  String displayName = configKey.displayName;
  List<String> dependents = configKey.dependents;
  return new ConfigKeyInfo(name, typeName, required, defaultValue, importance, documentation, group, orderInGroup, width, displayName, dependents);
}
org.apache.kafka.common.configConfigDef$Type

Javadoc

The config types

Most used methods

  • toString
  • name

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • From CI to AI: The AI layer in your organization
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