public class JSONCreateFunction extends NestedCreateFunction<JsonNode,ArrayNode>
for more details.
,
Serialized FormNestedBaseFunction.Context
pointers, rootPointer
nestedCoercibleType
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
JSONCreateFunction(Fields fieldDeclaration)
Creates a new JSONCreateFunction instance that will pivot all resolved arguments fields into
a new JSON object, where all the JSON object attributes are the argument field names.
|
JSONCreateFunction(Fields fieldDeclaration,
Fields fromFields,
java.lang.String stringPointer)
Creates a new JSONCreateFunction instance that maps the given
fromFields value to the location
declared by the stringPointer . |
JSONCreateFunction(Fields fieldDeclaration,
java.util.Map<Fields,java.lang.String> pointerMap)
Creates a new JSONCreateFunction instance that maps all the Fields declared in the
pointerMap to the declared path pointers. |
JSONCreateFunction(Fields fieldDeclaration,
java.lang.String rootPointer)
Creates a new JSONCreateFunction instance that will pivot all resolved arguments fields into
a new JSON object, where all the JSON object attributes are the argument field names.
|
getNode
operate, prepare
deepCopy, getCoercibleType, getLiteralNode, getNestedPointerCompiler, getRootNode, iterable
cleanup, equals, flush, getFieldDeclaration, getNumArgs, getTrace, hashCode, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value="fieldDeclaration") public JSONCreateFunction(Fields fieldDeclaration)
fieldDeclaration
- of Fields@ConstructorProperties(value={"fieldDeclaration","rootPointer"}) public JSONCreateFunction(Fields fieldDeclaration, java.lang.String rootPointer)
The rootPointer
values specifies the base name of the final pointer path. If rootPointer
is
"/person" and and argument is passed with field name "fullName", the value will be placed in "/person/fullName".
fieldDeclaration
- of FieldsrootPointer
- of String@ConstructorProperties(value={"fieldDeclaration","fromFields","stringPointer"}) public JSONCreateFunction(Fields fieldDeclaration, Fields fromFields, java.lang.String stringPointer)
fromFields
value to the location
declared by the stringPointer
.fieldDeclaration
- of FieldsfromFields
- of FieldsstringPointer
- of String@ConstructorProperties(value={"fieldDeclaration","pointerMap"}) public JSONCreateFunction(Fields fieldDeclaration, java.util.Map<Fields,java.lang.String> pointerMap)
pointerMap
to the declared path pointers.fieldDeclaration
- of FieldspointerMap
- of MapCopyright © 2007-2017 Cascading Maintainers. All Rights Reserved.