Package org.cyclop.model

Examples of org.cyclop.model.CqlColumnName


    verifyContainsCompoundTestColumns(cmp, all);
  }

  public void verifyContainsCompoundTestColumns(Collection<? extends CqlPart> col, boolean contains) {
    assertNotNull(col);
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("id2")));
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("id3")));
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("deesc")));
  }
View Full Code Here


      boolean contains, String... prefixes) {
    col = asHahsCol(col);
    assertNotNull(col);

    for (String colNam : columnNamesBasic) {
      assertEquals(colNam + " not found in: " + col.toString(), contains, col.contains(new CqlColumnName(colNam)));
    }

    for (String prefix : prefixes) {
      for (String colNam : columnNamesBasic) {
        String conNamFull = prefix + colNam;
View Full Code Here

  }

  public void verifyContainsSystemColumns(Collection<? extends CqlPart> col, boolean contains) {
    col = asHahsCol(col);
    assertNotNull(col);
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("truncated_at")));
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("tokens")));
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("peer")));
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("token_bytes")));
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("rpc_address")));
    assertEquals(col.toString(), contains, col.contains(new CqlColumnName("replicate_on_write")));
  }
View Full Code Here

    for (Row row : result.get()) {
      String name = StringUtils.trimToNull(row.getString("column_name"));
      if (name == null) {
        continue;
      }
      cqlColumnNames.add(new CqlColumnName(CqlDataType.create(DataType.text()), name));
    }

    loadPartitionKeyNames(table, cqlColumnNames);

    return cqlColumnNames.build();
View Full Code Here

    if (!table.isPresent()) {
      return;
    }
    ImmutableSet<String> partitionKeys = findPartitionKeyNamesLc(table.get());
    for (String partitionKey : partitionKeys) {
      cqlColumnNames.add(new CqlColumnName(CqlDataType.create(DataType.text()), partitionKey));
    }
  }
View Full Code Here

        JsFunctionBuilder
            .function("refreshPage")
            .arrayStr(ImmutableSet.of("123123", "param two"))
            .param("param 1")
            .param("param 2")
            .array(ImmutableSet.of(new CqlColumnName("col 1"), new CqlColumnName("col 1"),
                new CqlColumnName("col 1231"), new CqlColumnName("2col 41"))).param("param 4").build());
  }
View Full Code Here

    assertNull(JsUtils.escapeStrArray(null));
  }

  @Test
  public void testEscapeArray() {
    assertEquals("[\"col 1\",\"col 1231\",\"2col 41\"]", JsUtils.escapeArray(ImmutableSet.of(new CqlColumnName(
        "col 1"), new CqlColumnName("col 1"), new CqlColumnName("col 1231"), new CqlColumnName("2col 41"))));
  }
View Full Code Here

TOP

Related Classes of org.cyclop.model.CqlColumnName

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.