Package org.cassandraunit.dataset.commons

Examples of org.cassandraunit.dataset.commons.ParsedRow


    return parsedColumnFamily;
  }

  private ParsedRow constructSuperRow() {
    ParsedRow parsedRow = new ParsedRow();
    parsedRow.setKey("key02");
    List<ParsedSuperColumn> superColumns = new ArrayList<ParsedSuperColumn>();
    superColumns.add(constructSuperColumn());
    parsedRow.setSuperColumns(superColumns);
    return parsedRow;
  }
View Full Code Here


    columnFamily1.setType(ColumnType.STANDARD);
    columnFamily1.setKeyType("UTF8Type");
    columnFamily1.setComparatorType("UTF8Type");
    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");
View Full Code Here

TOP

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

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.