public class JoinOperationUtil extends Object
| Constructor and Description |
|---|
JoinOperationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendGroupJoinedRows(Collection<Integer> rowIndices,
DataFrame dfB,
DataRow rowA,
int[] joinIndicesA,
int[] joinIndicesB,
int joinedSize,
DataFrame joinedDataFrame)
Appends the joined rows resulting from a row from one data frame and a data group from the other data frame
|
static JoinInfo |
createJoinInfo(DataFrame dfA,
DataFrame dfB,
JoinColumn[] joinColumns,
String suffixA,
String suffixB)
Fills a join header with the header information of two data frames.
|
static void |
fillNA(Comparable<?>[] joinedRowValues)
Fills an value array with
Values.NA |
static void |
fillValues(int[] joinIndices,
DataRow row,
Comparable<?>[] joinedRowValues)
Fills the values of a row into the corresponding values in a joined row value
|
static int[] |
getJoinIndices(DataFrame dataFrame,
JoinInfo joinInfo) |
public static void fillValues(int[] joinIndices,
DataRow row,
Comparable<?>[] joinedRowValues)
joinIndices - indices of column from original dataframe in joined dataframerow - row containing the valuesjoinedRowValues - array that is filled with the row valuespublic static void fillNA(Comparable<?>[] joinedRowValues)
Values.NAjoinedRowValues - array with NA valuespublic static JoinInfo createJoinInfo(DataFrame dfA, DataFrame dfB, JoinColumn[] joinColumns, String suffixA, String suffixB)
dfA - first data framedfB - second data framejoinColumns - columns used for the joinsuffixA - suffix used for headers from the first data framesuffixB - suffix used for headers from the second data framepublic static void appendGroupJoinedRows(Collection<Integer> rowIndices, DataFrame dfB, DataRow rowA, int[] joinIndicesA, int[] joinIndicesB, int joinedSize, DataFrame joinedDataFrame)
rowIndices - row indicesdfB - second data framerowA - row from the other data frame (not the same as the data group)joinIndicesA - indices of column from first dataframe in joined dataframejoinIndicesB - indices of column from second dataframe in joined dataframejoinedSize - size of joined rowsjoinedDataFrame - resulting joined data frameCopyright © 2020. All rights reserved.