Package io.openlineage.client.transports
Class FacetsConfig
java.lang.Object
io.openlineage.client.transports.FacetsConfig
- All Implemented Interfaces:
MergeConfig<FacetsConfig>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasDisabledFacetProperties
(String key, Object value) Tries parse the property as facet "disable" property setting.String[]
String[]
Deprecated.String[]
Merges deprecated and new mechanism for disabled facets into one effective listmergeWithNonNull
(FacetsConfig facetsConfig) Method to create new config class based on current instance and non-null argument value.void
onOtherProperty
(String key, Object value) This method accepts every other property we may receive in configuration.void
setDeprecatedDisabledFacets
(String[] disabledFacets) void
setDisabledFacets
(Map<String, Boolean> disabledFacets) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.openlineage.client.MergeConfig
mergePropertyWith, mergePropertyWith, mergeWith, mergeWithDefaultValue
-
Constructor Details
-
FacetsConfig
public FacetsConfig() -
FacetsConfig
-
-
Method Details
-
setDeprecatedDisabledFacets
-
onOtherProperty
This method accepts every other property we may receive in configuration. The only supported properties now are the "disabled" facet properties. The rest is silently ignored.- Parameters:
key
- the name of the property which is not directly deserialized to any other fieldvalue
- the value of the property. Can be a map for nested fields
-
asDisabledFacetProperties
public static List<FacetsConfig.DisabledFacetProperty> asDisabledFacetProperties(String key, Object value) Tries parse the property as facet "disable" property setting. The names of the facets can be separated.by.dots and one prefix can include many disabled facets. For this reason this function can return a list of disabled facet properties. -
mergeWithNonNull
Description copied from interface:MergeConfig
Method to create new config class based on current instance and non-null argument value. In most cases, implementation needs to create a new instance of T, while merging all the properties.- Specified by:
mergeWithNonNull
in interfaceMergeConfig<FacetsConfig>
- Parameters:
facetsConfig
- overwrite value- Returns:
- merged config entry
-
getEffectiveDisabledFacets
Merges deprecated and new mechanism for disabled facets into one effective list- Returns:
- an array of disabled facets including facets from new and deprecated mechanisms.
-
toString
-
getDeprecatedDisabledFacets
Deprecated. -
getCustomEnvironmentVariables
-
getDisabledFacets
-
setDisabledFacets
-