public final class AlignedMap extends AbstractProtelisAST<Tuple>
| Constructor and Description |
|---|
AlignedMap(HashingFunnel hasher,
Metadata metadata,
ProtelisAST<Field<?>> argument,
ProtelisAST<FunctionDefinition> filter,
ProtelisAST<FunctionDefinition> operation,
ProtelisAST<?> defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
Tuple |
evaluate(ExecutionContext context)
Evaluates this AST node.
|
Bytecode |
getBytecode() |
java.lang.String |
getName() |
java.lang.String |
toString() |
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, isNullable, stringForpublic AlignedMap(HashingFunnel hasher, Metadata metadata, ProtelisAST<Field<?>> argument, ProtelisAST<FunctionDefinition> filter, ProtelisAST<FunctionDefinition> operation, ProtelisAST<?> defaultValue)
hasher - a function producing a valid, reproducible, and unambiguous hash for arbitrary objectsmetadata - A Metadata object containing information about the code that generated this AST node.argument - the field on which AlignedMap should be appliedfilter - filtering functionoperation - function to rundefaultValue - default valuepublic Tuple evaluate(ExecutionContext context)
AbstractProtelisASTAbstractProtelisAST takes care of storing the necessary metadata.evaluate in class AbstractProtelisAST<Tuple>context - the execution contextpublic java.lang.String getName()
AbstractProtelisASTgetName in interface ProtelisAST<Tuple>getName in class AbstractProtelisAST<Tuple>public java.lang.String toString()
AbstractProtelisASTtoString in class AbstractProtelisAST<Tuple>