Package com.dataai.etl.spark.functions
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
ConstructorsConstructorDescriptionMapReadinessResult(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 aMapReadinessResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.sql.Dataset<org.apache.spark.sql.Row>Returns the value of theclassifiedRowsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>Returns the value of theinvalidRowsrecord component.Returns the value of thesuggestedLatitudeFieldsrecord component.Returns the value of thesuggestedLongitudeFieldsrecord component.org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>Returns the value of thevalidRowsrecord component.
-
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 aMapReadinessResultrecord class.- Parameters:
classifiedRows- the value for theclassifiedRowsrecord componentsummary- the value for thesummaryrecord componentvalidRows- the value for thevalidRowsrecord componentinvalidRows- the value for theinvalidRowsrecord componentsuggestedLatitudeFields- the value for thesuggestedLatitudeFieldsrecord componentsuggestedLongitudeFields- the value for thesuggestedLongitudeFieldsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
classifiedRows
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> classifiedRows()Returns the value of theclassifiedRowsrecord component.- Returns:
- the value of the
classifiedRowsrecord component
-
summary
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> summary()Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
validRows
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> validRows()Returns the value of thevalidRowsrecord component.- Returns:
- the value of the
validRowsrecord component
-
invalidRows
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> invalidRows()Returns the value of theinvalidRowsrecord component.- Returns:
- the value of the
invalidRowsrecord component
-
suggestedLatitudeFields
Returns the value of thesuggestedLatitudeFieldsrecord component.- Returns:
- the value of the
suggestedLatitudeFieldsrecord component
-
suggestedLongitudeFields
Returns the value of thesuggestedLongitudeFieldsrecord component.- Returns:
- the value of the
suggestedLongitudeFieldsrecord component
-