• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java IsNotNullPredicate类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.facebook.presto.sql.tree.IsNotNullPredicate的典型用法代码示例。如果您正苦于以下问题:Java IsNotNullPredicate类的具体用法?Java IsNotNullPredicate怎么用?Java IsNotNullPredicate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

IsNotNullPredicate类属于com.facebook.presto.sql.tree包,在下文中一共展示了IsNotNullPredicate类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected RowExpression visitIsNotNullPredicate(IsNotNullPredicate node, Void context)
{
    RowExpression expression = process(node.getValue(), context);

    return call(
            Signatures.notSignature(),
            BOOLEAN,
            call(Signatures.isNullSignature(expression.getType()), BOOLEAN, ImmutableList.of(expression)));
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:11,
代码来源:SqlToRowExpressionTranslator.java

示例2: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
{
    Object value = process(node.getValue(), context);

    if (value instanceof Expression) {
        return new IsNotNullPredicate(toExpression(value, expressionTypes.get(node.getValue())));
    }

    return value != null;
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:12,
代码来源:ExpressionInterpreter.java

示例3: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected ExtractionResult visitIsNotNullPredicate(IsNotNullPredicate node, Boolean complement)
{
    if (!(node.getValue() instanceof QualifiedNameReference)) {
        return super.visitIsNotNullPredicate(node, complement);
    }

    Symbol symbol = Symbol.fromQualifiedName(((QualifiedNameReference) node.getValue()).getName());
    Type columnType = checkedTypeLookup(symbol);

    Domain domain = complementIfNecessary(Domain.notNull(columnType), complement);
    return new ExtractionResult(
            TupleDomain.withColumnDomains(ImmutableMap.of(symbol, domain)),
            TRUE_LITERAL);
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:16,
代码来源:DomainTranslator.java

示例4: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected Type visitIsNotNullPredicate(IsNotNullPredicate node, StackableAstVisitorContext<AnalysisContext> context)
{
    process(node.getValue(), context);

    expressionTypes.put(node, BOOLEAN);
    return BOOLEAN;
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:9,
代码来源:ExpressionAnalyzer.java

示例5: visitNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
public Node visitNullPredicate(SqlBaseParser.NullPredicateContext context)
{
    Expression child = (Expression) visit(context.value);

    if (context.NOT() == null) {
        return new IsNullPredicate(getLocation(context), child);
    }

    return new IsNotNullPredicate(getLocation(context), child);
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:12,
代码来源:AstBuilder.java

示例6: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected String visitIsNotNullPredicate(IsNotNullPredicate node, Void context)
{
    return "(" + process(node.getValue(), null) + " IS NOT NULL)";
}
 

开发者ID:ajoabraham,
项目名称:hue,
代码行数:6,
代码来源:VeroGenExpFormatter.java

示例7: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected String visitIsNotNullPredicate(IsNotNullPredicate node, StackableAstVisitorContext<Integer> indent)
{
    return "(" + process(node.getValue(), indent) + " IS NOT NULL)";
}
 

开发者ID:prestodb-rocks,
项目名称:presto-query-formatter,
代码行数:6,
代码来源:ExpressionFormatter.java

示例8: rewriteIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
public Expression rewriteIsNotNullPredicate(IsNotNullPredicate node, Void context, ExpressionTreeRewriter<Void> treeRewriter)
{
    Expression value = treeRewriter.rewrite(node.getValue(), context);
    return new NotExpression(new IsNullPredicate(value));
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:7,
代码来源:CanonicalizeExpressions.java

示例9: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected Boolean visitIsNotNullPredicate(IsNotNullPredicate node, Void context)
{
    return process(node.getValue(), context);
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:6,
代码来源:AggregationAnalyzer.java

示例10: visitIsNotNullPredicate

点赞 2

import com.facebook.presto.sql.tree.IsNotNullPredicate; //导入依赖的package包/类
@Override
protected String visitIsNotNullPredicate(IsNotNullPredicate node, Boolean unmangleNames)
{
    return "(" + process(node.getValue(), unmangleNames) + " IS NOT NULL)";
}
 

开发者ID:y-lan,
项目名称:presto,
代码行数:6,
代码来源:ExpressionFormatter.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)