Package org.elasticsearch.ingest
Class ConfigurationUtils
org.elasticsearch.ingest.ConfigurationUtils
public final class ConfigurationUtils
extends
-
Field Summary
Modifier and TypeFieldDescriptionstatic
static
static []
-
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateScript.Factory
processorType, processorTag, propertyName, propertyValue, ScriptService scriptService)
static ElasticsearchException
processorType, processorTag, propertyName, cause)
static ElasticsearchException
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.static TemplateScript.Factory
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 aElasticsearchParseException
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 anElasticsearchParseException
is thrown. If the property is missing anElasticsearchParseException
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 aElasticsearchParseException
is thrown. If the property is missing and no default value has been specified aElasticsearchParseException
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 aElasticsearchParseException
is thrown. If the property is missing and no default value has been specified aElasticsearchParseException
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 aElasticsearchParseException
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 aElasticsearchParseException
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 aElasticsearchParseException
is thrown. If the property is missing anElasticsearchParseException
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 aElasticsearchParseException
is thrown. If the property is missing anElasticsearchParseException
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 anElasticsearchParseException
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 anElasticsearchParseException
is thrown. If the property is missing anElasticsearchParseException
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 anElasticsearchParseException
is thrown. If the property is missing anElasticsearchParseException
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 anElasticsearchParseException
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:
-