columnFamily3.setName("columnFamilyWithSecondaryIndex");
columnFamily3.setType(ColumnType.STANDARD);
columnFamily3.setKeyType(ComparatorType.UTF8TYPE);
columnFamily3.setComparatorType(ComparatorType.UTF8TYPE);
columnFamily3.setDefaultColumnValueType(ComparatorType.UTF8TYPE);
columnFamily3.addColumnMetadata(new ColumnMetadataModel(
newUtf8GenericType("columnWithSecondaryIndexAndValidationClassAsLongType"), ComparatorType.LONGTYPE, ColumnIndexType.KEYS, null));
columnFamilies.add(columnFamily3);
/* column family 4 with index */
ColumnFamilyModel columnFamily4 = new ColumnFamilyModel();
columnFamily4.setName("columnFamilyWithSecondaryIndexAndIndexName");
columnFamily4.setType(ColumnType.STANDARD);
columnFamily4.setKeyType(ComparatorType.UTF8TYPE);
columnFamily4.setComparatorType(ComparatorType.UTF8TYPE);
columnFamily4.setDefaultColumnValueType(ComparatorType.UTF8TYPE);
columnFamily4.addColumnMetadata(new ColumnMetadataModel(
newUtf8GenericType("columnWithSecondaryIndexAndValidationClassAsUTF8Type"), ComparatorType.UTF8TYPE, ColumnIndexType.KEYS,
"columnWithSecondaryIndexHaveIndexNameAndValidationClassAsUTF8Type"));
columnFamilies.add(columnFamily4);
/* column family 5 with column validation class */
ColumnFamilyModel columnFamily5 = new ColumnFamilyModel();
columnFamily5.setName("columnFamilyWithColumnValidationClass");
columnFamily5.setType(ColumnType.STANDARD);
columnFamily5.setKeyType(ComparatorType.UTF8TYPE);
columnFamily5.setComparatorType(ComparatorType.UTF8TYPE);
columnFamily5.setDefaultColumnValueType(ComparatorType.UTF8TYPE);
columnFamily5.addColumnMetadata(new ColumnMetadataModel(
newUtf8GenericType("columnWithValidationClassAsUTF8Type"),
ComparatorType.UTF8TYPE, null, null));
columnFamilies.add(columnFamily5);