Class MacroPivotField.Builder
- java.lang.Object
-
- com.oracle.bmc.dataintegration.model.MacroPivotField.Builder
-
- Enclosing class:
- MacroPivotField
public static class MacroPivotField.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroPivotField
build()
MacroPivotField.Builder
columnNamePattern(String columnNamePattern)
column name pattern can be used to generate the name structure of the generated columns.MacroPivotField.Builder
copy(MacroPivotField model)
MacroPivotField.Builder
expr(Expression expr)
MacroPivotField.Builder
isUseSourceType(Boolean isUseSourceType)
Specifies whether the type of macro fields is inferred from an expression or useType (false) or the source field (true).MacroPivotField.Builder
type(BaseType type)
MacroPivotField.Builder
useType(ConfiguredType useType)
-
-
-
Method Detail
-
isUseSourceType
public MacroPivotField.Builder isUseSourceType(Boolean isUseSourceType)
Specifies whether the type of macro fields is inferred from an expression or useType (false) or the source field (true).- Parameters:
isUseSourceType
- the value to set- Returns:
- this builder
-
expr
public MacroPivotField.Builder expr(Expression expr)
-
useType
public MacroPivotField.Builder useType(ConfiguredType useType)
-
type
public MacroPivotField.Builder type(BaseType type)
-
columnNamePattern
public MacroPivotField.Builder columnNamePattern(String columnNamePattern)
column name pattern can be used to generate the name structure of the generated columns.By default column names are of %PIVOT_KEY_VALUE% or %MACRO_INPUT%%PIVOT_KEY_VALUE%, but we can change it something by passing something like MY_PREFIX%PIVOT_KEY_VALUE%MY_SUFFIX or MY_PREFIX%MACRO_INPUT%%PIVOT_KEY_VALUE%MY_SUFFIX which will add custom prefix and suffix to the column name.
- Parameters:
columnNamePattern
- the value to set- Returns:
- this builder
-
build
public MacroPivotField build()
-
copy
public MacroPivotField.Builder copy(MacroPivotField model)
-
-