Record Class MapReadinessResult

java.lang.Object
java.lang.Record
com.dataai.etl.spark.functions.MapReadinessResult

public record MapReadinessResult(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> classifiedRows, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> summary, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> validRows, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> invalidRows, List<String> suggestedLatitudeFields, List<String> suggestedLongitudeFields) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapReadinessResult(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> classifiedRows, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> summary, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> validRows, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> invalidRows, List<String> suggestedLatitudeFields, List<String> suggestedLongitudeFields)
    Creates an instance of a MapReadinessResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
    Returns the value of the classifiedRows record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
    Returns the value of the invalidRows record component.
    Returns the value of the suggestedLatitudeFields record component.
    Returns the value of the suggestedLongitudeFields record component.
    org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
    Returns the value of the summary record component.
    final String
    Returns a string representation of this record class.
    org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
    Returns the value of the validRows record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MapReadinessResult

      public MapReadinessResult(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> classifiedRows, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> summary, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> validRows, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> invalidRows, List<String> suggestedLatitudeFields, List<String> suggestedLongitudeFields)
      Creates an instance of a MapReadinessResult record class.
      Parameters:
      classifiedRows - the value for the classifiedRows record component
      summary - the value for the summary record component
      validRows - the value for the validRows record component
      invalidRows - the value for the invalidRows record component
      suggestedLatitudeFields - the value for the suggestedLatitudeFields record component
      suggestedLongitudeFields - the value for the suggestedLongitudeFields record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • classifiedRows

      public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> classifiedRows()
      Returns the value of the classifiedRows record component.
      Returns:
      the value of the classifiedRows record component
    • summary

      public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component
    • validRows

      public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> validRows()
      Returns the value of the validRows record component.
      Returns:
      the value of the validRows record component
    • invalidRows

      public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> invalidRows()
      Returns the value of the invalidRows record component.
      Returns:
      the value of the invalidRows record component
    • suggestedLatitudeFields

      public List<String> suggestedLatitudeFields()
      Returns the value of the suggestedLatitudeFields record component.
      Returns:
      the value of the suggestedLatitudeFields record component
    • suggestedLongitudeFields

      public List<String> suggestedLongitudeFields()
      Returns the value of the suggestedLongitudeFields record component.
      Returns:
      the value of the suggestedLongitudeFields record component