Class Replace
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Compute
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.compute.Replace
- All Implemented Interfaces:
Serializable
Represents a Replace computation task for monitoring.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IComputeProcessor computeProcessor) Accepts a compute processor for further processing.copy()Creates a copy of the current compute operation.toString()Returns a formatted string representation of the compute operation, indicating its type.voidupdate(UnaryOperator<String> updater) Updates the compute operation using the provided updater function.
-
Constructor Details
-
Replace
public Replace(String type, @NonNull @NonNull Integer column, String existingValue, String newValue) Construct a new instance of Replace.- Parameters:
type- The type of the computation task.column- The column index used in the computation.existingValue- The existing value to be replaced.newValue- The new value to replace the existing value.
-
-
Method Details
-
toString
Description copied from class:ComputeReturns a formatted string representation of the compute operation, indicating its type. -
copy
Description copied from class:ComputeCreates a copy of the current compute operation. -
update
Description copied from class:ComputeUpdates the compute operation using the provided updater function. -
accept
Description copied from class:ComputeAccepts a compute processor for further processing.
-