Package com.dataai.etl.spark.functions
Record Class MatrixBalanceResult
java.lang.Object
java.lang.Record
com.dataai.etl.spark.functions.MatrixBalanceResult
public record MatrixBalanceResult(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> balancedCells, int iterations, double maximumError, boolean converged)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMatrixBalanceResult(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> balancedCells, int iterations, double maximumError, boolean converged) Creates an instance of aMatrixBalanceResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.sql.Dataset<org.apache.spark.sql.Row>Returns the value of thebalancedCellsrecord component.booleanReturns the value of theconvergedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationsrecord component.doubleReturns the value of themaximumErrorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MatrixBalanceResult
public MatrixBalanceResult(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> balancedCells, int iterations, double maximumError, boolean converged) Creates an instance of aMatrixBalanceResultrecord class.- Parameters:
balancedCells- the value for thebalancedCellsrecord componentiterations- the value for theiterationsrecord componentmaximumError- the value for themaximumErrorrecord componentconverged- the value for theconvergedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
balancedCells
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> balancedCells()Returns the value of thebalancedCellsrecord component.- Returns:
- the value of the
balancedCellsrecord component
-
iterations
public int iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
maximumError
public double maximumError()Returns the value of themaximumErrorrecord component.- Returns:
- the value of the
maximumErrorrecord component
-
converged
public boolean converged()Returns the value of theconvergedrecord component.- Returns:
- the value of the
convergedrecord component
-