Package org.apache.druid.segment.serde
Class ComplexMetrics
java.lang.Object
org.apache.druid.segment.serde.ComplexMetrics
ComplexMetrics houses a mapping of serde names to affiliated ComplexMetricSerde objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComplexMetricSerdegetSerdeForType(String type) static voidregisterSerde(String type, ComplexMetricSerde serde) Register a serde name -> ComplexMetricSerde mapping.static voidunregisterSerde(String type) Unregister a serde name -> ComplexMetricSerde mapping.
-
Constructor Details
-
ComplexMetrics
public ComplexMetrics()
-
-
Method Details
-
getSerdeForType
-
registerSerde
Register a serde name -> ComplexMetricSerde mapping.If the specified serde key string is already used and the supplied ComplexMetricSerde is not of the same type as the existing value in the map for said key, an ISE is thrown.
- Parameters:
type- The serde name used as the key in the map.serde- The ComplexMetricSerde object to be associated with the 'type' in the map.
-
unregisterSerde
Unregister a serde name -> ComplexMetricSerde mapping. If the specified serde key string is not in use, does nothing. Only expected to be used in tests.
-