Examples of CqlKeySpace


Examples of org.cyclop.model.CqlKeySpace

  }

  @Test
  public void testNoValidation() throws Exception {
    assertNull(null, service.novalidation(null));
    assertEquals(new CqlKeySpace(" "), service.novalidation(new CqlKeySpace(" ")));
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

  }

  public void verifyContainsAllKeyspaces(Collection<? extends CqlPart> col, boolean contains, String postfix) {
    col = asHahsCol(col);
    assertNotNull(col);
    assertEquals(col.toString(), contains, col.contains(new CqlKeySpace("cqldemo" + postfix)));
    assertEquals(col.toString(), contains, col.contains(new CqlKeySpace("system" + postfix)));
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    String space = cqlLc.substring(3, cqlLc.length()).trim();
    space = StringUtils.trimToNull(space);
    if (space == null) {
      return Optional.empty();
    }
    CqlKeySpace exspace = new CqlKeySpace(space);
    LOG.debug("Extrancted space {} from {}", exspace, query);
    return Optional.of(exspace);
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    candidate = StringUtils.trimToNull(candidate);
    if (candidate == null) {
      return Optional.empty();
    }

    CqlKeySpace space = new CqlKeySpace(candidate);
    return Optional.of(space);
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    builder.all(tables);

    ImmutableSortedSet<CqlKeySpace> keyspaces = queryService.findAllKeySpaces();
    for (CqlKeySpace ks : keyspaces) {
      builder.min(ks);
      builder.full(new CqlKeySpace(ks.partLc + "."));
    }

    return builder;
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    vh.verifyContainsCompoundTestColumns(resp, false);
  }

  @Test(expected = BeanValidationException.class)
  public void testFindTableNames_SpaceCqlDemo_Violation_Incorrect() {
    qs.findTableNames(Optional.of(new CqlKeySpace(" ")));
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    qs.findTableNames(null);
  }

  @Test
  public void testFindTableNames_SpaceCqlDemo() {
    ImmutableSortedSet<CqlTable> col = qs.findTableNames(Optional.of(new CqlKeySpace("cqldemo")));
    vh.verifyContainsTableNamesCqlDemo(col, true);
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    vh.verifyContainsTableNamesCqlDemo(col, true);
  }

  @Test
  public void testFindTableNames_SpaceSystem() {
    ImmutableSortedSet<CqlTable> col = qs.findTableNames(Optional.of(new CqlKeySpace("system")));
    vh.verifyContainsTableNamesSystem(col, true);
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    vh.verifyContainsTableNamesSystem(col, true);
  }

  @Test
  public void testFindTableNames_SpaceDoesNotExist() {
    ImmutableSortedSet<CqlTable> col = qs.findTableNames(Optional.of(new CqlKeySpace("abcx")));
    vh.verifyIsEmpty(col);
  }
View Full Code Here

Examples of org.cyclop.model.CqlKeySpace

    vh.verifyIsEmpty(col);
  }

  @Test
  public void testFindAllIndexes_CqlDemo() {
    ImmutableSortedSet<CqlIndex> index = qs.findAllIndexes(Optional.of(new CqlKeySpace("cqldemo")));
    vh.verifyContainsIndexFromCqlDemo(index, true);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.