Example #1
0
 public void deleteSubColumn(N columnName) {
   mutator.addSubDelete(
       getCurrentKey(),
       template.getColumnFamily(),
       getCurrentSuperColumn(),
       columnName,
       template.getTopSerializer(),
       template.getSubSerializer());
 }
Example #2
0
 /** Deletes the super column and all of its sub columns */
 public void deleteSuperColumn() {
   // template.getMutator().addDeletion(getCurrentKey(), template.getColumnFamily(),
   //    getCurrentSuperColumn(), template.getTopSerializer());
   mutator.addSuperDelete(
       getCurrentKey(),
       template.getColumnFamily(),
       getCurrentSuperColumn(),
       template.getTopSerializer());
 }
Example #3
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);
   }
 }