Package org.cassandraunit.dataset.commons

Examples of org.cassandraunit.dataset.commons.ParsedColumn


    parsedSuperColumn.setColumns(columns);
    return parsedSuperColumn;
  }

  private ParsedColumn constructColumn(String name, String value) {
    ParsedColumn parsedColumn = new ParsedColumn();
    parsedColumn.setName(name);
    parsedColumn.setValue(value);
    return parsedColumn;
  }
View Full Code Here


    columnFamily1.setDefaultColumnValueType(ParsedDataType.UTF8Type);
    List<ParsedRow> rows1 = new ArrayList<ParsedRow>();
    ParsedRow row1 = new ParsedRow();
    row1.setKey("key01");
    List<ParsedColumn> columns1 = row1.getColumns();
    ParsedColumn column1 = new ParsedColumn();
    column1.setName("columnName1");
    column1.setValue("columnValue1");
    columns1.add(column1);
    rows1.add(row1);
    columnFamily1.setRows(rows1);

    columnFamilies.add(columnFamily1);

    ParsedColumnFamily columnFamily2 = new ParsedColumnFamily();
    columnFamily2.setName("columnFamily1");
    columnFamily2.setType(ColumnType.SUPER);
    columnFamily2.setKeyType("UTF8Type");
    columnFamily2.setComparatorType("UTF8Type");
    columnFamily2.setDefaultColumnValueType(ParsedDataType.UTF8Type);
    List<ParsedRow> rows2 = new ArrayList<ParsedRow>();
    ParsedRow row2 = new ParsedRow();
    row2.setKey("key02");
    List<ParsedSuperColumn> superColumns = row2.getSuperColumns();
    ParsedSuperColumn superColumn2 = new ParsedSuperColumn();
    superColumn2.setName("superColumnName2");
    List<ParsedColumn> columns2 = superColumn2.getColumns();
    ParsedColumn column2 = new ParsedColumn();
    column2.setName("columnName2");
    column2.setValue("columnValue2");
    columns2.add(column2);
    superColumns.add(superColumn2);
    rows2.add(row1);
    columnFamily2.setRows(rows2);
    columnFamilies.add(columnFamily2);
View Full Code Here

TOP

Related Classes of org.cassandraunit.dataset.commons.ParsedColumn

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.