Examples of CqlColumnValue


Examples of org.cyclop.model.CqlColumnValue

    return comp;
  }

  private Component createForSingleValue(Row row, CqlPartitionKeyValue cqlPartitionKeyValue,
      CqlExtendedColumnName column, String componentId) {
    CqlColumnValue cqlColumnValue = extractor.extractSingleValue(row, column);
    Component component = new ColumnValuePanel(componentId, cqlPartitionKeyValue, cqlColumnValue, false);
    return component;
  }
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    ListView<Map.Entry<CqlColumnValue, CqlColumnValue>> cqlCollectionListEntry = new ListView<Map.Entry<CqlColumnValue, CqlColumnValue>>(
        "cqlMapEntry", keysList) {
      @Override
      protected void populateItem(ListItem<Map.Entry<CqlColumnValue, CqlColumnValue>> item) {
        Map.Entry<CqlColumnValue, CqlColumnValue> entry = item.getModelObject();
        CqlColumnValue key = entry.getKey();
        CqlColumnValue value = entry.getValue();

        Component cqlMapKeyComp = new ColumnValuePanel("cqlMapKey", cqlPartitionKeyValue, key, true);
        item.add(cqlMapKeyComp);

        Component cqlMapValueComp = new ColumnValuePanel("cqlMapValue", cqlPartitionKeyValue, value, true);
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    super.onInitialize();

    ListView<CqlColumnValue> cqlCollectionListEntry = new ListView<CqlColumnValue>("listEntry", content) {
      @Override
      protected void populateItem(ListItem<CqlColumnValue> item) {
        CqlColumnValue cqlColumnValue = item.getModelObject();
        Component entry = new ColumnValuePanel("entryValue", cqlPartitionKeyValue, cqlColumnValue, true);
        item.add(entry);
      }
    };
    add(cqlCollectionListEntry);
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    StringBuilder mapBuf = new StringBuilder();
    while (it.hasNext()) {
      Map.Entry<CqlColumnValue, CqlColumnValue> entry = it.next();

      CqlColumnValue key = entry.getKey();
      String keyText = esc(converter.convert(key.value));
      mapBuf.append(keyText);

      mapBuf.append(conf.separatorMap);

      CqlColumnValue val = entry.getValue();
      String valText = esc(converter.convert(val.value));
      mapBuf.append(valText);

      if (it.hasNext()) {
        mapBuf.append(conf.separatorList);
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    ImmutableList<CqlColumnValue> content = extractor.extractCollection(row, column);
    LOG.trace("Appending {}", content);
    Iterator<CqlColumnValue> contentIt = content.iterator();
    StringBuilder listBuild = new StringBuilder();
    while (contentIt.hasNext()) {
      CqlColumnValue cqlColumnValue = contentIt.next();
      String valText = esc(converter.convert(cqlColumnValue.value));
      listBuild.append(valText);
      if (contentIt.hasNext()) {
        listBuild.append(conf.separatorList);
      }
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    LOG.trace("Append collection: {}", colVal);
    out.append(colVal);
  }

  private void appendSingleValue(PrintWriter out, Row row, CqlExtendedColumnName column) {
    CqlColumnValue cqlColumnValue = extractor.extractSingleValue(row, column);
    String valText = esc(converter.convert(cqlColumnValue.value));
    LOG.trace("Append single value: {}", valText);
    out.append(valText);
  }
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    Collection<?> objCont = dataType.name == DataType.Name.SET ? row.getSet(partLc, dataType.keyClass) : row
        .getList(partLc, dataType.keyClass);

    ImmutableList<CqlColumnValue> collection = objCont.stream()
        .map(o -> new CqlColumnValue(dataType.keyClass, o, column)).collect(toImmutableList());

    LOG.trace("Extracted collection: {}", collection);
    return collection;
  }
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

   
    ImmutableMap<CqlColumnValue, CqlColumnValue> map = unconverted
        .entrySet()
        .stream()
        .collect(
            toImmutableMap(e -> new CqlColumnValue(dataType.keyClass, e.getKey(), column),
                e -> new CqlColumnValue(dataType.valueClass, e.getValue(), column)));

    LOG.trace("Extracted map: {}", map);
    return map;
  }
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    LOG.trace("Extracted map: {}", map);
    return map;
  }

  public @NotNull CqlPartitionKeyValue extractPartitionKey(@NotNull Row row, @NotNull CqlPartitionKey partitionKey) {
    CqlColumnValue colSv = extractSingleValue(row, partitionKey);
    CqlPartitionKeyValue key = new CqlPartitionKeyValue(colSv.valueClass, colSv.value, partitionKey);
    LOG.trace("Extracted: {}", key);
    return key;
  }
View Full Code Here

Examples of org.cyclop.model.CqlColumnValue

    if (extracted == null) {
      extracted = "";
    }

    Class<?> eClass = extracted.getClass();
    CqlColumnValue cqlColumnValue = new CqlColumnValue(eClass, extracted, column);

    LOG.debug("Extracted: {}", cqlColumnValue);
    return cqlColumnValue;
  }
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.