public void deleteSubColumn(N columnName) { mutator.addSubDelete( getCurrentKey(), template.getColumnFamily(), getCurrentSuperColumn(), columnName, template.getTopSerializer(), template.getSubSerializer()); }
/** 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()); }
/** 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); } }