Class ReferenceTranslationTable
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.common.ReferenceTranslationTable
- All Implemented Interfaces:
Serializable,ITranslationTable
Represents a translation table based on a reference in connector models.
It implements the
ITranslationTable interface for mapping key-value pairs during data transformation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceTranslationTable(String reference) Constructs aReferenceTranslationTablewith the given reference. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy theITranslationTableinstancevoidupdate(UnaryOperator<String> updater) Update the given translation table
-
Constructor Details
-
ReferenceTranslationTable
Constructs aReferenceTranslationTablewith the given reference.- Parameters:
reference- The reference used to create the translation table.
-
-
Method Details
-
copy
Description copied from interface:ITranslationTableCopy theITranslationTableinstance- Specified by:
copyin interfaceITranslationTable- Returns:
ITranslationTabledeep copy
-
update
Description copied from interface:ITranslationTableUpdate the given translation table- Specified by:
updatein interfaceITranslationTable- Parameters:
updater- An operation on a single operand that produces a result of the same type as its operand.
-