Class FacetsConfig

java.lang.Object
io.openlineage.client.transports.FacetsConfig
All Implemented Interfaces:
MergeConfig<FacetsConfig>

public class FacetsConfig extends Object implements MergeConfig<FacetsConfig>
  • Constructor Details

    • FacetsConfig

      public FacetsConfig()
    • FacetsConfig

      public FacetsConfig(String[] deprecatedDisabledFacets, String[] customEnvironmentVariables, Map<String,Boolean> disabledFacets)
  • Method Details

    • setDeprecatedDisabledFacets

      public void setDeprecatedDisabledFacets(String[] disabledFacets)
    • onOtherProperty

      public void onOtherProperty(String key, Object value)
      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 field
      value - 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

      public FacetsConfig mergeWithNonNull(FacetsConfig facetsConfig)
      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 interface MergeConfig<FacetsConfig>
      Parameters:
      facetsConfig - overwrite value
      Returns:
      merged config entry
    • getEffectiveDisabledFacets

      public String[] 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

      public String toString()
      Overrides:
      toString in class Object
    • getDeprecatedDisabledFacets

      @Deprecated public String[] getDeprecatedDisabledFacets()
      Deprecated.
    • getCustomEnvironmentVariables

      public String[] getCustomEnvironmentVariables()
    • getDisabledFacets

      public Map<String,Boolean> getDisabledFacets()
    • setDisabledFacets

      public void setDisabledFacets(Map<String,Boolean> disabledFacets)