Example #1
0
 /** collapse the state of the active HSuperColumn */
 void updateInternal() {
   // HSuperColumnImpl needs a refactor, this construction is lame.
   // the value serializer is not used in HSuperColumnImpl, so this is safe for name
   if (!subColumns.isEmpty()) {
     log.debug(
         "Adding column {} for key {} and cols {}",
         new Object[] {getCurrentSuperColumn(), getCurrentKey(), subColumns});
     HSuperColumnImpl<SN, N, ?> column =
         new HSuperColumnImpl(
             getCurrentSuperColumn(),
             subColumns,
             0,
             template.getTopSerializer(),
             template.getSubSerializer(),
             TypeInferringSerializer.get());
     mutator.addInsertion(getCurrentKey(), template.getColumnFamily(), column);
   }
 }
Example #2
0
 public MutatorImpl(Keyspace keyspace) {
   this(keyspace, TypeInferringSerializer.<K>get());
 }