public abstract class AbstractJoin extends Object
| Constructor and Description |
|---|
AbstractJoin() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendGroupJoinedRows(DataGroup group,
DataFrame dfA,
DataFrame dfB,
DataRow rowA,
JoinInfo joinInfo,
DataFrameHeader joinHeader,
List<DataRow> joinedRows)
Appends the joined rows resulting from a row from one data frame and a data group from the other data frame
|
JoinInfo |
fillJoinHeader(DataFrameHeader joinHeader,
DataFrame dfA,
DataFrame dfB,
JoinColumn[] joinColumns,
String suffixA,
String suffixB)
Fills a join header with the header information of two data frames.
|
void |
fillNA(Comparable[] joinedRowValues)
Fills an value array with
Values.NA |
void |
fillValues(DataFrame dataFrame,
DataRow row,
JoinInfo joinInfo,
Comparable[] joinedRowValues)
Fills the values of a row into the corresponding values in a joined row value
|
abstract JoinedDataFrame |
join(DataFrame dfA,
DataFrame dfB,
String joinSuffixA,
String joinSuffixB,
JoinColumn... joinColumns) |
void |
setGroupValuesA(Comparable[] groupValues,
Row<Comparable,String> row,
JoinColumn[] joinColumns)
Fills the join values of the first data frame into an values array
|
void |
setGroupValuesB(Comparable[] groupValues,
Row<Comparable,String> row,
JoinColumn[] joinColumns)
Fills the join values of the second data frame into an values array
|
public abstract JoinedDataFrame join(DataFrame dfA, DataFrame dfB, String joinSuffixA, String joinSuffixB, JoinColumn... joinColumns)
public void fillValues(DataFrame dataFrame, DataRow row, JoinInfo joinInfo, Comparable[] joinedRowValues)
dataFrame - parent data frame of rowrow - row containing the valuesjoinInfo - info about the joined data framejoinedRowValues - array that is filled with the row valuespublic void fillNA(Comparable[] joinedRowValues)
Values.NAjoinedRowValues - array with NA valuespublic JoinInfo fillJoinHeader(DataFrameHeader joinHeader, DataFrame dfA, DataFrame dfB, JoinColumn[] joinColumns, String suffixA, String suffixB)
joinHeader - join header to filldfA - 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 void setGroupValuesA(Comparable[] groupValues, Row<Comparable,String> row, JoinColumn[] joinColumns)
groupValues - values array to be filledrow - row containing the valuesjoinColumns - columns used for the joinpublic void setGroupValuesB(Comparable[] groupValues, Row<Comparable,String> row, JoinColumn[] joinColumns)
groupValues - values array to be filledrow - row containing the valuesjoinColumns - columns used for the joinpublic void appendGroupJoinedRows(DataGroup group, DataFrame dfA, DataFrame dfB, DataRow rowA, JoinInfo joinInfo, DataFrameHeader joinHeader, List<DataRow> joinedRows)
group - data group a data framedfA - first data framedfB - second data framerowA - row from the other data frame (not the same as the data group)joinInfo - info about the joinjoinHeader - resulting data frame headerjoinedRows - list of rows for the joined data frameCopyright © 2017. All rights reserved.