Package org.datavec.api.transform.join
Class Join.Builder
- java.lang.Object
-
- org.datavec.api.transform.join.Join.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(Join.JoinType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Join
build()
Join.Builder
setJoinColumns(String... joinColumnNames)
Specify the column(s) to join on.Join.Builder
setJoinColumnsLeft(String... joinColumnNames)
Specify the names of the columns to join on, for the left data) The idea: join examples where firstDataValues(joinColumNamesLeft[i]) == secondDataValues(joinColumnNamesRight[i]) for all iJoin.Builder
setJoinColumnsRight(String... joinColumnNames)
Specify the names of the columns to join on, for the right data) The idea: join examples where firstDataValues(joinColumNamesLeft[i]) == secondDataValues(joinColumnNamesRight[i]) for all iJoin.Builder
setKeyColumns(String... keyColumnNames)
Deprecated.Join.Builder
setKeyColumnsLeft(String... keyColumnNames)
Deprecated.Join.Builder
setKeyColumnsRight(String... keyColumnNames)
Deprecated.Join.Builder
setSchemas(Schema left, Schema right)
-
-
-
Constructor Detail
-
Builder
public Builder(Join.JoinType type)
-
-
Method Detail
-
setSchemas
public Join.Builder setSchemas(Schema left, Schema right)
-
setKeyColumns
@Deprecated public Join.Builder setKeyColumns(String... keyColumnNames)
Deprecated.
-
setKeyColumnsLeft
@Deprecated public Join.Builder setKeyColumnsLeft(String... keyColumnNames)
Deprecated.
-
setKeyColumnsRight
@Deprecated public Join.Builder setKeyColumnsRight(String... keyColumnNames)
Deprecated.
-
setJoinColumns
public Join.Builder setJoinColumns(String... joinColumnNames)
Specify the column(s) to join on. Here, we are assuming that both data sources have the same column names. If this is not the case, usesetJoinColumnsLeft(String...)
andsetJoinColumnsRight(String...)
. The idea: join examples where firstDataValues(joinColumNames[i]) == secondDataValues(joinColumnNames[i]) for all i- Parameters:
joinColumnNames
- Name of the columns to use as the key to join on
-
setJoinColumnsLeft
public Join.Builder setJoinColumnsLeft(String... joinColumnNames)
Specify the names of the columns to join on, for the left data) The idea: join examples where firstDataValues(joinColumNamesLeft[i]) == secondDataValues(joinColumnNamesRight[i]) for all i- Parameters:
joinColumnNames
- Names of the columns to join on (for left data)
-
setJoinColumnsRight
public Join.Builder setJoinColumnsRight(String... joinColumnNames)
Specify the names of the columns to join on, for the right data) The idea: join examples where firstDataValues(joinColumNamesLeft[i]) == secondDataValues(joinColumnNamesRight[i]) for all i- Parameters:
joinColumnNames
- Names of the columns to join on (for left data)
-
build
public Join build()
-
-