public class NestedSetFunction<Node,Result> extends NestedBaseFunction<Node,Result>
Function
implementations that want to simply store
values in an existing nested object tree.
All argument values referenced by the pointerMap will be set on the root node, a copy of the first argument to this operation.
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 |
---|
NestedSetFunction(NestedCoercibleType<Node,Result> nestedCoercibleType,
Fields fieldDeclaration) |
NestedSetFunction(NestedCoercibleType<Node,Result> nestedCoercibleType,
Fields fieldDeclaration,
java.lang.String rootPointer) |
NestedSetFunction(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 NestedSetFunction(NestedCoercibleType<Node,Result> nestedCoercibleType, Fields fieldDeclaration)
public NestedSetFunction(NestedCoercibleType<Node,Result> nestedCoercibleType, Fields fieldDeclaration, java.lang.String rootPointer)
public NestedSetFunction(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.