Class PipeParameters
java.lang.Object
org.apache.iotdb.pipe.api.customizer.parameter.PipeParameters
Used in
PipeExtractor.customize(PipeParameters, PipeExtractorRuntimeConfiguration) ,
PipeProcessor.customize(PipeParameters, PipeProcessorRuntimeConfiguration) and PipeConnector.customize(PipeParameters, PipeConnectorRuntimeConfiguration).
This class is used to parse the parameters in WITH SOURCE, WITH PROCESSOR and WITH SINK when creating a pipe.
The input parameters are the key-value pair attributes for customization.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String key, String values) This method adds (non-existed) or replaces (existed) equivalent attributes in this PipeParameters with those from another PipeParameters.This method clones a newPipeParameterswith equivalent attributes in thisPipeParametersadded by (non-existed) or replaces with (existed) those from anotherPipeParameters.voidcomputeAttributeIfExists(BiFunction<String, String, String> valueComputer, String... keys) booleangetBoolean(String key) getBooleanByKeys(String... keys) booleangetBooleanOrDefault(String key, boolean defaultValue) booleangetBooleanOrDefault(List<String> keys, boolean defaultValue) getDoubleByKeys(String... keys) doublegetDoubleOrDefault(String key, double defaultValue) doublegetDoubleOrDefault(List<String> keys, double defaultValue) getFloatByKeys(String... keys) floatgetFloatOrDefault(String key, float defaultValue) floatgetFloatOrDefault(List<String> keys, float defaultValue) getIntByKeys(String... keys) intgetIntOrDefault(String key, int defaultValue) intgetIntOrDefault(List<String> keys, int defaultValue) getLongByKeys(String... keys) longgetLongOrDefault(String key, long defaultValue) longgetLongOrDefault(List<String> keys, long defaultValue) getStringByKeys(String... keys) getStringOrDefault(String key, String defaultValue) getStringOrDefault(List<String> keys, String defaultValue) booleanhasAnyAttributes(String... keys) booleanhasAttribute(String key) inthashCode()toString()When exposing the content of this `PipeParameters` to external sources (such as `show pipes` or logging), please use this `toString` method to prevent the leakage of private information.
-
Field Details
-
attributes
-
-
Constructor Details
-
PipeParameters
-
-
Method Details
-
getAttribute
-
hasAttribute
-
hasAnyAttributes
-
addAttribute
-
computeAttributeIfExists
public void computeAttributeIfExists(BiFunction<String, String, String> valueComputer, String... keys) -
getString
-
getBoolean
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getStringByKeys
-
getBooleanByKeys
-
getIntByKeys
-
getLongByKeys
-
getFloatByKeys
-
getDoubleByKeys
-
getStringOrDefault
-
getBooleanOrDefault
-
getIntOrDefault
-
getLongOrDefault
-
getFloatOrDefault
-
getDoubleOrDefault
-
getStringOrDefault
-
getBooleanOrDefault
-
getIntOrDefault
-
getLongOrDefault
-
getFloatOrDefault
-
getDoubleOrDefault
-
equals
-
hashCode
public int hashCode() -
toString
When exposing the content of this `PipeParameters` to external sources (such as `show pipes` or logging), please use this `toString` method to prevent the leakage of private information. -
addOrReplaceEquivalentAttributes
This method adds (non-existed) or replaces (existed) equivalent attributes in this PipeParameters with those from another PipeParameters.- Parameters:
that- provide the key that needs to be updated along with the value- Returns:
- this pipe parameters
-
addOrReplaceEquivalentAttributesWithClone
This method clones a newPipeParameterswith equivalent attributes in thisPipeParametersadded by (non-existed) or replaces with (existed) those from anotherPipeParameters.- Parameters:
that- provide the key that needs to be updated along with the value- Returns:
- this
PipeParameters
-