Package org.apache.druid.segment.serde
Class ComplexMetrics
- java.lang.Object
-
- org.apache.druid.segment.serde.ComplexMetrics
-
public class ComplexMetrics extends Object
ComplexMetrics houses a mapping of serde names to affiliated ComplexMetricSerde objects.
-
-
Constructor Summary
Constructors Constructor Description ComplexMetrics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComplexMetricSerde
getSerdeForType(String type)
static void
registerSerde(String type, ComplexMetricSerde serde)
Register a serde name -> ComplexMetricSerde mapping.static void
unregisterSerde(String type)
Unregister a serde name -> ComplexMetricSerde mapping.
-
-
-
Method Detail
-
getSerdeForType
@Nullable public static ComplexMetricSerde getSerdeForType(String type)
-
registerSerde
public static void registerSerde(String type, ComplexMetricSerde serde)
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
public static void unregisterSerde(String type)
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.
-
-