public abstract class NestedCreateFunction<Node,Result> extends NestedBaseFunction<Node,Result>
Function
implementations that want to simply store
values in a new nested object tree.
All argument values referenced by the pointerMap
will be set on a new instance of the root node.
That is, every Fields instance in the pointer map is expected to have a corresponding argument passed to the operation.
The pointer path mapped to any given Fields instance in the pointerMap
will be used as the location to set on the
root node.
If a pointerMap
is not provided, the resolved argument fields will be mapped to the root of the node. This is a
convenience for quickly pivoting a Tuple into an nested object with the same attributes.
NestedBaseFunction.Context
pointers, rootPointer
nestedCoercibleType
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
NestedCreateFunction(NestedCoercibleType<Node,Result> nestedCoercibleType,
Fields fieldDeclaration) |
NestedCreateFunction(NestedCoercibleType<Node,Result> nestedCoercibleType,
Fields fieldDeclaration,
java.lang.String rootPointer) |
NestedCreateFunction(NestedCoercibleType nestedCoercibleType,
Fields fieldDeclaration,
java.util.Map<Fields,java.lang.String> pointerMap) |
Modifier and Type | Method and Description |
---|---|
protected Node |
getNode(TupleEntry arguments) |
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
public NestedCreateFunction(NestedCoercibleType<Node,Result> nestedCoercibleType, Fields fieldDeclaration)
public NestedCreateFunction(NestedCoercibleType<Node,Result> nestedCoercibleType, Fields fieldDeclaration, java.lang.String rootPointer)
public NestedCreateFunction(NestedCoercibleType nestedCoercibleType, Fields fieldDeclaration, java.util.Map<Fields,java.lang.String> pointerMap)
protected Node getNode(TupleEntry arguments)
getNode
in class NestedBaseFunction<Node,Result>
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.