Package org.cyclop.model

Examples of org.cyclop.model.CqlCompletion$BuilderTemplate


      columnNames = queryService.findAllColumnNames();
    }

    builder.all(columnNames);

    CqlCompletion cmp = builder.build();
    return cmp;
  }
View Full Code Here


        break;
      }
    }
    ContextCqlCompletion cqc = null;
    if (lastMatchingCompletion != null) {
      CqlCompletion cqlCompletion = lastMatchingCompletion.getCompletion(cqlQuery);
      cqc = new ContextCqlCompletion(dls.queryName(), cqlCompletion);
      LOG.debug("Completion found: {}", cqc);
    } else {
      LOG.debug("Completion not found");
    }
View Full Code Here

    Optional<CqlTable> table = extractTableName(CqlKeyword.Def.UPDATE.value, query);
    ImmutableSortedSet<CqlColumnName> columnNames = queryService.findColumnNames(table);
    builder.all(columnNames);

    CqlCompletion cmp = builder.build();
    return cmp;
  }
View Full Code Here

    Optional<CqlTable> table = extractTableName(CqlKeyword.Def.FROM.value, query);
    SortedSet<CqlColumnName> columnNames = queryService.findColumnNames(table);
    builder.all(columnNames);

    CqlCompletion cmp = builder.build();
    return cmp;
  }
View Full Code Here

    Optional<CqlTable> table = extractTableName(CqlKeyword.Def.FROM.value, query);
    SortedSet<CqlColumnName> columnNames = queryService.findColumnNames(table);
    builder.all(columnNames);

    CqlCompletion cmp = builder.build();
    return cmp;
  }
View Full Code Here

    Optional<CqlTable> table = extractTableName(CqlKeyword.Def.UPDATE.value, query);
    SortedSet<CqlColumnName> columnNames = queryService.findColumnNames(table);

    cb.all(columnNames);
    CqlCompletion cmp = cb.build();
    return cmp;
  }
View Full Code Here

    Optional<CqlTable> table = extractTableName(CqlKeyword.Def.FROM.value, query);
    SortedSet<CqlColumnName> columnNames = queryService.findColumnNames(table);
    builder.all(columnNames);

    CqlCompletion cmp = builder.build();
    return cmp;
  }
View Full Code Here

    Optional<CqlTable> table = extractTableName(CqlKeyword.Def.FROM.value, query);
    SortedSet<CqlColumnName> columnNames = queryService.findColumnNames(table);
    builder.all(columnNames);

    CqlCompletion cmp = builder.build();
    return cmp;
  }
View Full Code Here

  public CqlCompletion getCompletion(CqlQuery query) {

    Optional<CqlTable> table = extractTableName(CqlKeyword.Def.INSERT_INTO.value, query);
    ImmutableSortedSet<CqlColumnName> columnNames = queryService.findColumnNames(table);

    CqlCompletion cmp = CqlCompletion.Builder.naturalOrder().all(columnNames).build();
    return cmp;
  }
View Full Code Here

TOP

Related Classes of org.cyclop.model.CqlCompletion$BuilderTemplate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.