public class JoinInfo extends Object
| Constructor and Description |
|---|
JoinInfo(DataFrameHeader header,
DataFrame dataFrameA,
DataFrame dataFrameB)
Creates a join information using both data frames and the joined data frame header.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDataFrameAHeader(String original,
String joined)
Adds a original - joined header information for the first data frame.
|
protected void |
addDataFrameBHeader(String original,
String joined)
Adds a original - joined header information for the second data frame.
|
String |
getJoinedHeader(String original,
DataFrame dataFrame)
Returns the header name in the joined data frame for a header name from one of the original data frames
This method throws a
DataFrameRuntimeException if the data frame was not used for the join. |
String |
getJoinedHeaderA(String original)
Returns the header name in the joined data frame for a header name from the first data frame
|
String |
getJoinedHeaderB(String original)
Returns the header name in the joined data frame for a header name from the second data frame
|
int |
getJoinedIndex(String original,
DataFrame dataFrame)
Returns the column index in the joined data frame for a header name from one of the original data frames
This method throws a
DataFrameRuntimeException if the data frame was not used for the join. |
int |
getJoinedIndexA(String original)
Returns the column index in the joined data frame for a header name from the first data frame
|
int |
getJoinedIndexB(String original)
Returns the column index in the joined data frame for a header name from the second data frame
|
boolean |
isA(DataFrame dataFrame)
Returns true if the specified data frame equals the first data frames used for the join.
|
boolean |
isB(DataFrame dataFrame)
Returns true if the specified data frame equals the second data frames used for the join.
|
public JoinInfo(DataFrameHeader header, DataFrame dataFrameA, DataFrame dataFrameB)
WeakReference.header - joined data frame headerdataFrameA - first data framedataFrameB - second data framepublic boolean isA(DataFrame dataFrame)
dataFrame - input data framepublic boolean isB(DataFrame dataFrame)
dataFrame - input data frameprotected void addDataFrameAHeader(String original, String joined)
original - header name in the first data framejoined - header name in the joined data frameprotected void addDataFrameBHeader(String original, String joined)
original - header name in the second data framejoined - header name in the joined data framepublic String getJoinedHeader(String original, DataFrame dataFrame)
DataFrameRuntimeException if the data frame was not used for the join.original - original header namedataFrame - data frame used for the joinpublic int getJoinedIndex(String original, DataFrame dataFrame)
DataFrameRuntimeException if the data frame was not used for the join.original - original header namedataFrame - data frame used for the joinpublic String getJoinedHeaderA(String original)
original - header name in the first data framepublic int getJoinedIndexA(String original)
original - header name in the first data framepublic int getJoinedIndexB(String original)
original - header name in the second data frameCopyright © 2017. All rights reserved.