Class ConfigurationUtils

org.elasticsearch.ingest.ConfigurationUtils

public final class ConfigurationUtils extends
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static
     
    static
     
    static []
     
  • Method Summary

    Modifier and Type
    Method
    Description
     processorType,  processorTag,  propertyName,  propertyValue, ScriptService scriptService)
     
     processorType,  processorTag,  propertyName,  cause)
     
     processorType,  processorTag,  propertyName,  reason)
     
    static
     processorType,  processorTag, <,​> configuration,  propertyName, boolean defaultValue)
     
    static
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property from the specified configuration map.
    static
     processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
    Returns and removes the specified property from the specified configuration map.
    static <T> <T>
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property of type list from the specified configuration map.
    static <T> <,​T>
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property of type map from the specified configuration map.
    static
     processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
     
    static
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property as an from the specified configuration map.
    static <T> <T>
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property of type list from the specified configuration map.
    static <T> <,​T>
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property of type map from the specified configuration map.
    static
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property from the specified configuration map.
    static
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property from the specified configuration map.
    static
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified optional property from the specified configuration map.
    static Processor
    <,​Processor.Factory> processorFactories, ScriptService scriptService,  type,  config)
     
    static Processor
    <,​Processor.Factory> processorFactories, ScriptService scriptService,  type, <,​> config)
     
    static <Processor>
    <<,​>> processorConfigs, ScriptService scriptService, <,​Processor.Factory> processorFactories)
     
    static
     processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
    Returns and removes the specified property from the specified configuration map.
    static
     processorType,  processorTag, <,​> configuration,  propertyName)
    Returns and removes the specified property from the specified configuration map.
    static
     processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
    Returns and removes the specified property from the specified configuration map.
     processorType,  processorTag, <,​> configuration,  propertyName, ScriptService scriptService)
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Field Details

    • TAG_KEY

      public static final  TAG_KEY
      See Also:
      Constant Field Values
    • DESCRIPTION_KEY

      public static final  DESCRIPTION_KEY
      See Also:
      Constant Field Values
    • VALID_MEDIA_TYPES

      public static final [] VALID_MEDIA_TYPES
  • Method Details

    • readOptionalStringProperty

      public static  readOptionalStringProperty( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified optional property from the specified configuration map. If the property value isn't of type string a ElasticsearchParseException is thrown.
    • readStringProperty

      public static  readStringProperty( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property from the specified configuration map. If the property value isn't of type string an ElasticsearchParseException is thrown. If the property is missing an ElasticsearchParseException is thrown
    • readStringProperty

      public static  readStringProperty( processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
      Returns and removes the specified property from the specified configuration map. If the property value isn't of type string a ElasticsearchParseException is thrown. If the property is missing and no default value has been specified a ElasticsearchParseException is thrown
    • readStringOrIntProperty

      public static  readStringOrIntProperty( processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
      Returns and removes the specified property from the specified configuration map. If the property value isn't of type string or int a ElasticsearchParseException is thrown. If the property is missing and no default value has been specified a ElasticsearchParseException is thrown
    • readOptionalStringOrIntProperty

      public static  readOptionalStringOrIntProperty( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property from the specified configuration map. If the property value isn't of type string or int a ElasticsearchParseException is thrown.
    • readOptionalStringOrLongProperty

      public static  readOptionalStringOrLongProperty( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property from the specified configuration map. If the property value isn't of type string or long a ElasticsearchParseException is thrown.
    • readBooleanProperty

      public static  readBooleanProperty( processorType,  processorTag, <,​> configuration,  propertyName, boolean defaultValue)
    • readIntProperty

      public static  readIntProperty( processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
      Returns and removes the specified property from the specified configuration map. If the property value isn't of type int a ElasticsearchParseException is thrown. If the property is missing an ElasticsearchParseException is thrown
    • readDoubleProperty

      public static  readDoubleProperty( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property from the specified configuration map. If the property value isn't of type int a ElasticsearchParseException is thrown. If the property is missing an ElasticsearchParseException is thrown
    • readOptionalList

      public static <T> <T> readOptionalList( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property of type list from the specified configuration map. If the property value isn't of type list an ElasticsearchParseException is thrown.
    • readList

      public static <T> <T> readList( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property of type list from the specified configuration map. If the property value isn't of type list an ElasticsearchParseException is thrown. If the property is missing an ElasticsearchParseException is thrown
    • readMap

      public static <T> <,​T> readMap( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property of type map from the specified configuration map. If the property value isn't of type map an ElasticsearchParseException is thrown. If the property is missing an ElasticsearchParseException is thrown
    • readOptionalMap

      public static <T> <,​T> readOptionalMap( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property of type map from the specified configuration map. If the property value isn't of type map an ElasticsearchParseException is thrown.
    • readObject

      public static  readObject( processorType,  processorTag, <,​> configuration,  propertyName)
      Returns and removes the specified property as an from the specified configuration map.
    • readMediaTypeProperty

      public static  readMediaTypeProperty( processorType,  processorTag, <,​> configuration,  propertyName,  defaultValue)
    • newConfigurationException

      public static  processorType,  processorTag,  propertyName,  reason)
    • newConfigurationException

      public static  processorType,  processorTag,  propertyName,  cause)
    • readProcessorConfigs

      public static <<<,​>> processorConfigs, ScriptService scriptService, <,​Processor.Factory> processorFactories) throws
      Throws:
    • readTemplateProperty

      public static  processorType,  processorTag, <,​> configuration,  propertyName, ScriptService scriptService)
    • compileTemplate

      public static  processorType,  processorTag,  propertyName,  propertyValue, ScriptService scriptService)
    • readProcessor

      public static <,​Processor.Factory> processorFactories, ScriptService scriptService,  type,  config) throws
      Throws:
    • readProcessor

      public static <,​Processor.Factory> processorFactories, ScriptService scriptService,  type, <,​> config) throws
      Throws: