case class DiffResult(inLeftNotInRight: DataFrame, inRightNotInLeft: DataFrame) extends Product with Serializable
* The container for the comparison result.
- inLeftNotInRight
the data set that contains the results in left but not in right
- inRightNotInLeft
the data set that contains the results in right but not in left
- Alphabetic
- By Inheritance
- DiffResult
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
discrepancyStats(compositeKeyStrs: Seq[String]): DataFrame
This method compares all "l_" with their corresponding "r_" columns from the joined table returned in fullOuterJoinDataFrames() and returns a DataFrame that maps column names with the amount of discrepant entries between those l_ and r_ columns.
This method compares all "l_" with their corresponding "r_" columns from the joined table returned in fullOuterJoinDataFrames() and returns a DataFrame that maps column names with the amount of discrepant entries between those l_ and r_ columns.
- compositeKeyStrs
a Sequence of Strings having the primary keys applicable for both DataFrames
- returns
a DataFrame that maps between column names and the amount of discrepant entries for those "l_/r_" rows in the full outer joined table.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fullOuterJoinDataFrames(compositeKeyStrs: Seq[String]): DataFrame
This method does a full outer join between the resulting left and right DataFrames from the method SparkCompare.compareSchemaDataFrames.
This method does a full outer join between the resulting left and right DataFrames from the method SparkCompare.compareSchemaDataFrames. It will return a single DataFrame having the left columns prefixed with l_ and the right columns prefixed with r_. the Key columns will not have prefixed. The resulting DataFrame will have all l_ columns on the left, then the Key columns in the middle, then the r_ columns on the right.
- compositeKeyStrs
a Sequence of Strings having the primary keys applicable for both DataFrames
- returns
a DataFrame having the resulting full outer join operation.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getInLeftNotInRight(): DataFrame
- def getInRightNotInLeft(): DataFrame
-
def
getOrderedResult(orderByCols: Array[String], isAsc: Boolean): DiffResult
Order the result by the provided columns.
Order the result by the provided columns.
- orderByCols
is the column provided for order
- isAsc
is the indicator for ascending or descending order.
- returns
the ordered data set
- val inLeftNotInRight: DataFrame
- val inRightNotInLeft: DataFrame
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
noDiff(): Boolean
Indicating whether there is difference in the comparison.
Indicating whether there is difference in the comparison.
- returns
true if there is no difference; false if there is difference.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
removeCols(excludeCols: Array[String]): DiffResult
Exclude some columns from the data set so that it won't be saved.
Exclude some columns from the data set so that it won't be saved.
- excludeCols
the column array that contains the columns to exclude from the data set
- returns
the data set without the columns
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()