public static interface Mapping.Builder extends SdkPojo, CopyableBuilder<Mapping.Builder,Mapping>
| Modifier and Type | Method and Description |
|---|---|
Mapping.Builder |
children(Collection<Mapping> children)
Only applicable to nested data structures.
|
Mapping.Builder |
children(Consumer<Mapping.Builder>... children)
Only applicable to nested data structures.
|
Mapping.Builder |
children(Mapping... children)
Only applicable to nested data structures.
|
Mapping.Builder |
dropped(Boolean dropped)
If true, then the column is removed.
|
Mapping.Builder |
fromPath(Collection<String> fromPath)
The table or column to be modified.
|
Mapping.Builder |
fromPath(String... fromPath)
The table or column to be modified.
|
Mapping.Builder |
fromType(String fromType)
The type of the data to be modified.
|
Mapping.Builder |
toKey(String toKey)
After the apply mapping, what the name of the column should be.
|
Mapping.Builder |
toType(String toType)
The data type that the data is to be modified to.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMapping.Builder toKey(String toKey)
After the apply mapping, what the name of the column should be. Can be the same as FromPath.
toKey - After the apply mapping, what the name of the column should be. Can be the same as
FromPath.Mapping.Builder fromPath(Collection<String> fromPath)
The table or column to be modified.
fromPath - The table or column to be modified.Mapping.Builder fromPath(String... fromPath)
The table or column to be modified.
fromPath - The table or column to be modified.Mapping.Builder fromType(String fromType)
The type of the data to be modified.
fromType - The type of the data to be modified.Mapping.Builder toType(String toType)
The data type that the data is to be modified to.
toType - The data type that the data is to be modified to.Mapping.Builder dropped(Boolean dropped)
If true, then the column is removed.
dropped - If true, then the column is removed.Mapping.Builder children(Collection<Mapping> children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping, but its
FromPath will be the parent's FromPath plus the FromPath from this
structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
children - Only applicable to nested data structures. If you want to change the parent structure, but also one of
its children, you can fill out this data strucutre. It is also Mapping, but its
FromPath will be the parent's FromPath plus the FromPath from
this structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
Mapping.Builder children(Mapping... children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping, but its
FromPath will be the parent's FromPath plus the FromPath from this
structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
children - Only applicable to nested data structures. If you want to change the parent structure, but also one of
its children, you can fill out this data strucutre. It is also Mapping, but its
FromPath will be the parent's FromPath plus the FromPath from
this structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
Mapping.Builder children(Consumer<Mapping.Builder>... children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping, but its
FromPath will be the parent's FromPath plus the FromPath from this
structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
Mapping.Builder avoiding the need to create one manually
via Mapping.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #children(List.
children - a consumer that will call methods on
Mapping.Builder#children(java.util.Collection) Copyright © 2023. All rights reserved.