public class CopySpec extends heretical.pointer.operation.CopySpec<CopySpec>
To map fields into a nested object, see BuildSpec and related operations.
When using a CopySpec, you are declaring which sub-trees from an existing nested object are copied into another nested object.
When a CopySpec is created, the target root location of all the values must be declared, or all values will be placed immediately below the root object.
For example, you want to copy a person named John Doe into a JSON object.
new CopySpec().from( "/people/*", new JSONStringPointerFilter( "/person/name", "John Doe" ) );
This example assumes the people object is an array of person objects.
| Constructor and Description |
|---|
CopySpec() |
CopySpec(java.lang.String intoPointer) |
Copyright © 2007-2021 Cascading Maintainers. All Rights Reserved.