package com.altamiracorp.bigtable.model.accumulo;

import com.altamiracorp.bigtable.model.ColumnFamily;
import org.apache.accumulo.core.security.ColumnVisibility;

public class AccumuloColumnFamily extends ColumnFamily {

    /**
     * Decorator
     * @param columnFamily
     */
    public AccumuloColumnFamily (ColumnFamily columnFamily) {
        super(columnFamily.getColumnFamilyName());
    }

    public AccumuloColumnFamily (String columnFamilyName) {
        super(columnFamilyName);
    }

    public ColumnFamily set(String columnName, Object value, ColumnVisibility columnVisibility) {
        addColumn(new AccumuloColumn(columnName, value, columnVisibility));
        return this;
    }
}

@@ -384,24 +384,76 @@
 ilyName());%0A
+        this.addColumns(columnFamily.getColumns());%0A
     %7D%0A%0A    p

copy columns to new CF