} else if (FunctionRegistry.isOpOr(node)) { return evaluateOrNode(node, skewedCols, cell, uniqSkewedValues); } else if (FunctionRegistry.isOpNot(node)) { return evaluateNotNode(node, skewedCols, cell, uniqSkewedValues); } else {
} else if (FunctionRegistry.isOpOr(node)) { return evaluateOrNode(node, skewedCols, cell, uniqSkewedValues); } else if (FunctionRegistry.isOpNot(node)) { return evaluateNotNode(node, skewedCols, cell, uniqSkewedValues); } else {
if (FunctionRegistry.isOpNot(fd)) { return handleUdfNot(ctx, fd, nodeOutputs); } else if (FunctionRegistry.isOpAnd(fd)) {
if (FunctionRegistry.isOpNot(fd)) { return handleUdfNot(ctx, fd, nodeOutputs); } else if (FunctionRegistry.isOpAnd(fd)) {
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { // If it's not some operator, pass it back if (!(nd instanceof ExprNodeGenericFuncDesc)) { return nd; } ExprNodeGenericFuncDesc func = (ExprNodeGenericFuncDesc) nd; // 'and' nodes need to be intersected if (FunctionRegistry.isOpAnd(func)) { return processAndOpNode(nd, nodeOutputs); // 'or' nodes need to be merged } else if (FunctionRegistry.isOpOr(func)) { return processOrOpNode(nd, nodeOutputs); } else if (FunctionRegistry.isOpNot(func)) { // TODO handle negations throw new IllegalArgumentException("Negations not yet implemented"); } else { return processExpression(func, nodeOutputs); } }
@Override public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs) throws SemanticException { // If it's not some operator, pass it back if (!(nd instanceof ExprNodeGenericFuncDesc)) { return nd; } ExprNodeGenericFuncDesc func = (ExprNodeGenericFuncDesc) nd; // 'and' nodes need to be intersected if (FunctionRegistry.isOpAnd(func)) { return processAndOpNode(nd, nodeOutputs); // 'or' nodes need to be merged } else if (FunctionRegistry.isOpOr(func)) { return processOrOpNode(nd, nodeOutputs); } else if (FunctionRegistry.isOpNot(func)) { // TODO handle negations throw new IllegalArgumentException("Negations not yet implemented"); } else { return processExpression(func, nodeOutputs); } }
} else if (FunctionRegistry.isOpOr(node)) { return evaluateOrNode(node, skewedCols, cell, uniqSkewedValues); } else if (FunctionRegistry.isOpNot(node)) { return evaluateNotNode(node, skewedCols, cell, uniqSkewedValues); } else {
ExprNodeGenericFuncDesc fd = (ExprNodeGenericFuncDesc) nd; if (FunctionRegistry.isOpNot(fd)) { assert (nodeOutputs.length == 1); NodeInfoWrapper wrapper = (NodeInfoWrapper) nodeOutputs[0];
ExprNodeGenericFuncDesc fd = (ExprNodeGenericFuncDesc) nd; if (FunctionRegistry.isOpNot(fd)) { assert (nodeOutputs.length == 1); NodeInfoWrapper wrapper = (NodeInfoWrapper) nodeOutputs[0];