APISonar


org.apache.nifi.expression.AttributeExpression.ResultType.DATE

> org > apache > nifi > expression > AttributeExpression > ResultType > DATE
org APIs apache APIs nifi APIs expression APIs AttributeExpression APIs ResultType APIs DATE APIs

Example 1
private DateEvaluator toDateEvaluator(final Evaluator<?> evaluator, final String location) {
        if (evaluator.getResultType() == ResultType.DATE) {
            return (DateEvaluator) evaluator;
        }

        return new DateCastEvaluator(evaluator);
    }
Example 2
public DateCastEvaluator(final Evaluator<?> subjectEvaluator) {
        if (subjectEvaluator.getResultType() == ResultType.BOOLEAN) {
            throw new AttributeExpressionLanguageParsingException("Cannot implicitly convert Data Type " + subjectEvaluator.getResultType() + " to " + ResultType.DATE);
        }

        this.subjectEvaluator = subjectEvaluator;
    }