public class NestedGetFunction<Node,Result> extends NestedBaseOperation<Node,Result,Tuple> implements Function<Tuple>
Function
implementations that want to simply retrieve
values in nested object trees and return them as tuple fields.
For every field named in the fieldDeclaration Fields
argument, there must be a corresponding
stringPointer
value.
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.
Modifier and Type | Field and Description |
---|---|
protected boolean |
failOnMissingNode |
protected heretical.pointer.path.NestedPointer<Node,Result>[] |
pointers |
nestedCoercibleType
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
NestedGetFunction(NestedCoercibleType<Node,Result> nestedCoercibleType,
Fields fieldDeclaration,
boolean failOnMissingNode,
java.lang.String... stringPointers)
Constructor NestedGetFunction creates a new NestedGetFunction instance.
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String[] |
asArray(java.util.Collection<java.lang.String> values) |
protected static Fields |
asFields(java.util.Set<Fields> fields) |
void |
operate(FlowProcess flowProcess,
FunctionCall<Tuple> functionCall) |
void |
prepare(FlowProcess flowProcess,
OperationCall<Tuple> operationCall) |
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
protected boolean failOnMissingNode
public NestedGetFunction(NestedCoercibleType<Node,Result> nestedCoercibleType, Fields fieldDeclaration, boolean failOnMissingNode, java.lang.String... stringPointers)
nestedCoercibleType
- of NestedCoercibleTypefieldDeclaration
- of FieldsfailOnMissingNode
- of booleanstringPointers
- of String...public void prepare(FlowProcess flowProcess, OperationCall<Tuple> operationCall)
public void operate(FlowProcess flowProcess, FunctionCall<Tuple> functionCall)
protected static java.lang.String[] asArray(java.util.Collection<java.lang.String> values)
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.