use of org.apache.cassandra.thrift.Mutation in project brisk by riptano.
the class HistoricalPriceInserter method genDaysPrices.
private Map<String, List<Mutation>> genDaysPrices(ByteBuffer date) {
Map<String, List<Mutation>> prices = new HashMap<String, List<Mutation>>();
Mutation m = new Mutation();
m.setColumn_or_supercolumn(new ColumnOrSuperColumn().setColumn(new Column().setName(date).setValue(ByteBufferUtil.bytes(String.valueOf((double) (Pricer.randomizer.nextDouble() * 1000)))).setTimestamp(System.currentTimeMillis())));
prices.put("StockHist", Arrays.asList(m));
return prices;
}
Aggregations