public class NestedGetAllFunction<Node,Result> extends NestedGetFunction<Node,Result>
Function implementations that want to simply retrieve
a collection of values in nested object, and then transform each element node into a tuple with declared fields.
The stringRootPointer value must point to a container node with one or more elements. Each element
will have values extracted and a new tuple will be emitted for each element.
For every field named in the fieldDeclaration Fields argument, there must be a corresponding
stringPointer value.
If failOnMissingNode is true and the root pointer is empty or the field pointer returns a
null value, the operation will fail.
If the fieldDeclaration Fields instance declares a type information, the nestedCoercibleType will be used
to coerce any referenced child value to the expected field type.
NestedGetFunction.Setter<Node>| Modifier and Type | Field and Description |
|---|---|
protected heretical.pointer.path.NestedPointer<Node,Result> |
rootPointer |
failOnMissingNode, pointersnestedCoercibleType| Constructor and Description |
|---|
NestedGetAllFunction(NestedCoercibleType<Node,Result> nestedCoercibleType,
java.lang.String stringRootPointer,
cascading.tuple.Fields fieldDeclaration,
boolean failOnMissingNode,
java.lang.String... stringPointers)
Constructor NestedGetAllFunction creates a new NestedGetFunction instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
operate(cascading.flow.FlowProcess flowProcess,
cascading.operation.FunctionCall<cascading.tuple.Tuple> functionCall) |
asArray, asFields, extractResult, extractResult, prepare, setInto, verifydeepCopy, getCoercibleType, getLiteralNode, getNestedPointerCompiler, getRootNode, iterable, sizecleanup, equals, flush, getFieldDeclaration, getNumArgs, getTrace, hashCode, isSafe, printOperationInternal, toString, toStringInternalprotected heretical.pointer.path.NestedPointer<Node,Result> rootPointer
public NestedGetAllFunction(NestedCoercibleType<Node,Result> nestedCoercibleType, java.lang.String stringRootPointer, cascading.tuple.Fields fieldDeclaration, boolean failOnMissingNode, java.lang.String... stringPointers)
nestedCoercibleType - of NestedCoercibleTypestringRootPointer - of type StringfieldDeclaration - of type FieldsfailOnMissingNode - of type booleanstringPointers - of type String...public void operate(cascading.flow.FlowProcess flowProcess, cascading.operation.FunctionCall<cascading.tuple.Tuple> functionCall)
operate in interface cascading.operation.Function<cascading.tuple.Tuple>operate in class NestedGetFunction<Node,Result>Copyright © 2007-2021 Cascading Maintainers. All Rights Reserved.