io.prestosql.sql.tree.Query.getLimit()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中io.prestosql.sql.tree.Query.getLimit方法的一些代码示例,展示了Query.getLimit的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getLimit方法的具体详情如下:
包路径:io.prestosql.sql.tree.Query
类名称:Query
方法名:getLimit

Query.getLimit介绍

暂无

代码示例

代码示例来源:origin: io.prestosql/presto-main

private PlanBuilder limit(PlanBuilder subPlan, Query node)
{
  return limit(subPlan, node.getOrderBy(), node.getLimit());
}

代码示例来源:origin: io.prestosql/presto-parser

@Override
protected Void visitQuery(Query node, Integer indentLevel)
{
  print(indentLevel, "Query ");
  indentLevel++;
  print(indentLevel, "QueryBody");
  process(node.getQueryBody(), indentLevel);
  if (node.getOrderBy().isPresent()) {
    print(indentLevel, "OrderBy");
    process(node.getOrderBy().get(), indentLevel + 1);
  }
  if (node.getLimit().isPresent()) {
    print(indentLevel, "Limit: " + node.getLimit().get());
  }
  return null;
}

代码示例来源:origin: prestosql/presto

@Override
protected Void visitQuery(Query node, Integer indentLevel)
{
  print(indentLevel, "Query ");
  indentLevel++;
  print(indentLevel, "QueryBody");
  process(node.getQueryBody(), indentLevel);
  if (node.getOrderBy().isPresent()) {
    print(indentLevel, "OrderBy");
    process(node.getOrderBy().get(), indentLevel + 1);
  }
  if (node.getLimit().isPresent()) {
    print(indentLevel, "Limit: " + node.getLimit().get());
  }
  return null;
}

代码示例来源:origin: prestosql/presto

private PlanBuilder limit(PlanBuilder subPlan, Query node)
{
  return limit(subPlan, node.getOrderBy(), node.getLimit());
}

代码示例来源:origin: prestosql/presto

private PlanBuilder sort(PlanBuilder subPlan, Query node)
{
  return sort(subPlan, node.getOrderBy(), node.getLimit(), analysis.getOrderByExpressions(node));
}

代码示例来源:origin: io.prestosql/presto-main

private PlanBuilder sort(PlanBuilder subPlan, Query node)
{
  return sort(subPlan, node.getOrderBy(), node.getLimit(), analysis.getOrderByExpressions(node));
}

代码示例来源:origin: io.prestosql/presto-parser

if (node.getLimit().isPresent()) {
  append(indent, "LIMIT " + node.getLimit().get())
      .append('\n');

代码示例来源:origin: prestosql/presto

if (node.getLimit().isPresent()) {
  append(indent, "LIMIT " + node.getLimit().get())
      .append('\n');

代码示例来源:origin: prestosql/presto

@Override
public Node visitQuery(SqlBaseParser.QueryContext context)
{
  Query body = (Query) visit(context.queryNoWith());
  return new Query(
      getLocation(context),
      visitIfPresent(context.with(), With.class),
      body.getQueryBody(),
      body.getOrderBy(),
      body.getLimit());
}

代码示例来源:origin: io.prestosql/presto-parser

@Override
public Node visitQuery(SqlBaseParser.QueryContext context)
{
  Query body = (Query) visit(context.queryNoWith());
  return new Query(
      getLocation(context),
      visitIfPresent(context.with(), With.class),
      body.getQueryBody(),
      body.getOrderBy(),
      body.getLimit());
}

相关文章