Class OpenLineageInputSubsetInputDataSetFacet


public class OpenLineageInputSubsetInputDataSetFacet extends OpenLineageInputDataSetInputFacet
This class represents the subset input dataset facet. It describes the subset (partitions, locations or filter condition) of the dataset that was read. The condition is a polymorphic tree keyed by its type field, so it is held as a generic map. It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/InputSubsetInputDatasetFacet.
  • Constructor Details

    • OpenLineageInputSubsetInputDataSetFacet

      public OpenLineageInputSubsetInputDataSetFacet()
      Default constructor
  • Method Details

    • getInputCondition

      public Map<String,Object> getInputCondition()
      Return the condition describing the subset read. The type field of the condition identifies it as a BinarySubsetCondition, CompareSubsetCondition, PartitionSubsetCondition or LocationSubsetCondition.
      Returns:
      map
    • setInputCondition

      public void setInputCondition(Map<String,Object> inputCondition)
      Set up the condition describing the subset read. The type field of the condition identifies it as a BinarySubsetCondition, CompareSubsetCondition, PartitionSubsetCondition or LocationSubsetCondition.
      Parameters:
      inputCondition - map
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class OpenLineageInputDataSetInputFacet
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class OpenLineageFacet
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class OpenLineageFacet
      Returns:
      int